TL;DR: Exposed secrets are usually detected quickly, but GitGuardian’s State of Secrets Sprawl 2026 shows that 64% of secrets discovered in 2022 were still active and exploitable four years later, underscoring a remediation problem rather than a detection problem. The practical lesson is that revocation, dependency mapping, and cleanup now matter more than alert speed alone.
NHIMG editorial — based on content published by Aembit: Secret remediation guide for exposed credentials and recovery
By the numbers:
- 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation.
Questions worth separating out
Q: How should security teams handle an exposed secret without causing outages?
A: Teams should map every dependent system first, then rotate the credential in a controlled sequence that updates production consumers before disabling the old value.
Q: Why do exposed secrets keep creating risk after they are detected?
A: Because detection does not stop a credential from remaining valid, and exposed values often persist in repositories, logs, backups, and configuration files.
Q: What breaks when teams rotate a secret but miss downstream systems?
A: Authentication breaks in the systems that still depend on the old value, and teams may create fallback paths that preserve the original exposure.
Practitioner guidance
- Build a credential dependency map Track every exposed secret back to the services, environments, and pipelines that consume it before you revoke anything.
- Automate revocation and replacement together Pair secret invalidation with the distribution of the new credential through the same workflow so production systems do not drift onto stale values.
- Remove all secondary secret traces Search code history, build logs, templates, wikis, snapshots, and backups for the exposed value and any copied variants.
What's in the full article
Aembit's full guide covers the operational detail this post intentionally leaves for the source:
- Step-by-step containment and rotation flow for vault-managed and unmanaged credentials
- Specific handling patterns for hardcoded secrets, dynamic secrets, and identity-based workload access
- Cleanup actions for code history, config files, logs, and backup systems
- Tooling guidance for CI/CD automation, incident coordination, and secret injection workflows
👉 Read Aembit's guide to secret remediation and exposed credential response →
Secret remediation: where exposed credentials still break operations?
Explore further
Secret remediation is really blast-radius governance, not incident cleanup. The article shows that exposed credential response is only partly about rotation. The real problem is identifying what a secret unlocks, what depends on it, and how long it remains viable after exposure. That makes lifecycle visibility the central control question for NHI programmes.
A few things that frame the scale:
- 24,008 unique secrets were exposed in MCP configuration files in 2025 alone, the protocol's first year of widespread adoption, according to The State of Secrets Sprawl 2026.
- AI-related credential leaks surged 81.5% year-over-year in 2025, with the surrounding AI infrastructure leaking 5x faster than core LLM providers.
A question worth separating out:
Q: Who is accountable when a leaked secret is still being used in production?
A: Accountability usually spans the security team that detected the leak, the application owners who know where the credential is consumed, and the platform team that controls rotation or revocation. Governance works only when those owners are defined in advance and the remediation runbook assigns each team a specific closure task.
👉 Read our full editorial: Secret remediation exposes why static credentials keep failing