Leaked Secrets Linger for Years When Teams Fear Breaking Things
Written by AI from the linked story. Not reviewed by an editor. How this works
GitGuardian's 2026 research found that more than 64% of credentials exposed in 2022 were still active four years later, not because teams were unaware, but because they feared breaking dependent systems if they revoked them. This 'better the devil you know' paralysis transforms a temporary exposure into a permanent open door for attackers. Prioritising remediation by impact—what a secret can access and whether it leaked publicly—catches nearly half the critical secrets that validity-only triage misses. The fix requires a disciplined rotate-migrate-revoke workflow anchored in a secrets vault, so teams can safely cut over to new credentials before retiring the old ones.
Tactical Insight
Immediate actions
- Audit all discovered secrets and triage them by blast radius (what systems they access and whether they were publicly exposed) rather than by validity alone.
- Begin issuing replacement credentials immediately for any secret confirmed to have leaked publicly, using a vault to manage the rollover.
Long-term improvements
- Adopt a secrets management vault (e.g., HashiCorp Vault, AWS Secrets Manager) so every consumer of a credential can be migrated atomically before the original is revoked.
- Establish a maximum credential lifetime policy and automate rotation enforcement so no secret can remain unchanged beyond a defined threshold.
- Maintain a dependency map of which services consume which credentials to eliminate the uncertainty that causes revocation delays.
Detection measures
- Integrate secret-scanning tools into CI/CD pipelines and source-code repositories to detect newly committed credentials before they reach production.
- Monitor authentication logs for continued use of a credential after its scheduled revocation to confirm it is truly inactive before closing the incident.