maxdraco

Secret scanning

Automatically searching code, logs or files for passwords, keys and tokens that should not be there.

Concept Security operations Identity and access

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 A secret string a program sends to prove which account it is calling an API as.
  • Regular expression (regex) A compact pattern language for finding text of a given shape, such as any run of digits.
  • Key rotation Replacing a password, key or token with a new one and retiring the old one.
  • Allowlist A list of the things that are explicitly permitted; everything not on it is refused.
  • Attack surface All the places where an attacker could try to get into or misuse a system.
  • Back door A hidden or forgotten way into a system that gets around its normal security checks.
  • Blast radius How much else breaks or is exposed when one part of a system fails or is compromised.
  • BurbSec A network of informal information-security meetups that started in the Chicago suburbs.

Sources

  1. About secret scanningGitHubofficial healthy, checked 2026-11-15 archived copy
  2. Secrets Management Cheat SheetOWASP healthy, checked 2026-11-15

In security catalogues