agency-secrets-credential-hygiene-engineer

Detect, vault, rotate, and remediate leaked secrets across code, CI, and cloud providers.

Updated Jul 27, 2026
One-click install
npx skills add https://github.com/imMamdouhaboammar/Mimera --skill agency-secrets-credential-hygiene-engineer-immamdouhaboammar
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agency-secrets-credential-hygiene-engineer
Source: https://github.com/imMamdouhaboammar/Mimera/tree/main/.agents/skills/security-secrets-credential-engineer
Command: npx skills add https://github.com/imMamdouhaboammar/Mimera --skill agency-secrets-credential-hygiene-engineer-immamdouhaboammar

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Hardcoded credentials, long-lived static keys, and secrets committed to git history are the root cause of most breaches, and teams often stop at deleting the value from code without rotating it at the provider. This Skill manages the full secret lifecycle — detection, prevention, vaulting, rotation, and leak response — so credentials stay short-lived, least-privilege, and out of the codebase. ## Core Features & Use Cases - Secret Scanning Gates: Configure pre-commit hooks and CI checks with gitleaks to block secrets before they reach the default branch, with tuned allowlists that keep false positives low. - Vaulting and Dynamic Credentials: Migrate static keys into brokers like HashiCorp Vault or cloud KMS, issuing short-lived, least-privilege database and cloud credentials that expire in minutes. - Leak-Response Runbooks: Execute a five-step response that rotates at the provider first, then removes from code, purges git history, and audits usage across the exposure window. - Use Case: A developer accidentally commits an AWS key. The Skill guides you to revoke it in IAM immediately, replace it with a broker reference, purge it from history with filter-repo, and audit CloudTrail for use during the exposure window. ## Quick Start Ask the agent to audit this repository for exposed secrets and set up pre-commit and CI scanning with a rotation plan for any credentials found.

Frequently Asked Questions about agency-secrets-credential-hygiene-engineer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I prevent secrets from being committed to git?

Install a gitleaks pre-commit hook that scans staged changes and fails the commit on a hit, plus a CI workflow that scans full history on every push. Tune the ruleset and allowlist known-public values so the gate stays trusted.

What should I do when an API key is leaked in git history?

Rotate the key at the provider first, since the committed value is compromised from the commit timestamp. Then replace it in code with a broker reference, purge history with filter-repo or BFG, and audit usage during the exposure window.

How do I replace static database passwords with dynamic credentials?

Use Vault's database secrets engine to issue credentials with short TTLs, such as 15 minutes, created per session with least-privilege grants. A leaked credential then expires before an attacker can use it.

Is deleting a secret from the latest commit enough to fix a leak?

No. Git history, clones, CI logs, and forks still hold the value, so deletion alone changes nothing for an attacker. The leak is resolved only when the credential is revoked at the provider and a fresh one is deployed.

Why does my secret scanner flag public keys like Supabase anon keys?

Publishable or anon keys are designed to be exposed, so flagging them is a false positive. Allowlist these known-public values so the scanner keeps high precision and developers do not learn to bypass it.

Can I eliminate long-lived cloud keys in CI entirely?

Yes. Use OIDC workload federation, such as GitHub Actions to AWS or GCP, so CI assumes a short-lived role instead of storing a static access key. This removes the long-lived secret from the pipeline entirely.