Secret scanning
Automatically searching code, logs or files for passwords, keys and tokens that should not be there.
Secret scanning is an automatic search through code, logs or other stored files for things that look like passwords, API keys or access tokens. Most secrets have a recognisable shape, such as a fixed prefix or a long random string, so a program can spot them with patterns. Finding one means it has leaked somewhere it shouldn’t be, and the safe response is to replace it, not just delete the copy.
See also
- API key
- Regular expression (regex)
- Key rotation
- Allowlist
- Attack surface
- Back door
- Blast radius
- BurbSec
Sources
- About secret scanningGitHubofficial healthy, checked 2026-11-15 archived copy
- Secrets Management Cheat SheetOWASP healthy, checked 2026-11-15
In security catalogues
- T1552 Unsecured CredentialsMITRE ATT&CK healthy, checked 2026-11-15 archived copy
- CWE-532 Insertion of Sensitive Information into Log FileCWE healthy, checked 2026-11-15 archived copy