LeakLatch

Blog · November 15, 2026

Deleting a leaked key is not enough: revoke it first

If a secret key ever landed in a commit, deleting the line or the file does not fix it. The key stays in git history, forks, and every clone, and it keeps working until you revoke it at the provider.

GitGuardian's State of Secrets Sprawl 2026 found 28.65 million new hardcoded secrets in public GitHub commits in 2025, up 34%. Of the credentials it confirmed valid in 2022, more than 64% still worked in January 2026. Claude Code-assisted commits leaked secrets 3.2% of the time, versus a 1.5% baseline.

Fix order: revoke and reissue the key at the provider first, update your server environment variables, then clean history if you want. Add .env to .gitignore before your agent's first commit.

Source: https://blog.gitguardian.com/the-state-of-secrets-sprawl-2026/

Check whether a key is shipping in your live app with a free, read-only scan at https://leaklatch.vercel.app