Secrets are the prize
Many non-human identities are still backed by a secret. That makes secrets the thing attackers hunt for: a single leaked secret can grant full access to an organisation's most sensitive data, and an attacker holding a valid secret can log in without exploiting anything. Secret sprawl, credentials scattered across code, config, logs, images, and chat tools, is the surface that makes this so easy.
From sprawl to management
Secrets management is the discipline of getting secrets out of those scattered locations and into a managed vault where they are stored securely, access-controlled, audited, and rotated. It is the prerequisite for rotation and a major input to discovery. The end state is to need fewer secrets at all, by adopting workload identity so workloads authenticate without holding static credentials. See the full secrets management discipline.
Related: API key, SSH key, machine certificate and the API key governance playbook.
Frequently asked questions
What is a secret in non-human identity?
A secret is any sensitive credential used to authenticate, such as an API key, password, token or private key. A certificate is public; its private key is the secret. Secrets are what prove a non-human identity, which is why secret exposure is a direct way to compromise one.
What is secret sprawl?
Secret sprawl is the scattering of credentials across many uncontrolled locations, source code, configuration files, build logs, container images, and collaboration tools. It dramatically expands the attack surface because each copy is a potential leak, and it is the core problem that secrets management addresses.
Is a non-human identity a secret?
No. A non-human identity is the identity, such as a service account, workload identity or agent identity. A secret is a credential that identity uses to prove itself, such as an API key, password, token or private key. Some identities, such as managed identities and federated workloads, hold no stored secret at all, yet still need an owner and a review.
How many secrets leak on GitHub each year?
It depends on what is counted. GitGuardian, a vendor, reports 28,649,024 new secrets detected in public GitHub commits in 2025, up 34% on 2024, from scanning public commits. GitHub said more than 39 million secrets leaked across GitHub in 2024, without a public or private breakdown. GitGuardian also reports that internal repositories are about six times more likely than public ones to contain hardcoded secrets.
Sources
- OWASP Non-Human Identities Top 10 (2025), owasp.org
- OWASP NHI Top 10 (2025), full risk list, owasp.org
- NIST SP 800-53 Rev. 5, Security and Privacy Controls for Information Systems and Organizations (AC-2, AC-6, IA-5), csrc.nist.gov
Where a primary URL is not shown, we have not confirmed the figure against the publisher’s own document and say so on the page rather than linking a secondary source that paraphrases it. Paywalled standards (ISO/IEC, AICPA) are cited by clause and not linked. Corrections welcome: report an error.
Disclosure. This reference is free. No vendor pays for coverage, placement, or favourable treatment. HumanAudit Inc., which publishes this site, sells ISO/IEC 42001 documentation and plans NHI governance documentation packs, including an RFP kit that does not name, rank or recommend any vendor; it builds and sells no NHI scanner and no NHI discovery, monitoring or security tool (see About). Links to its offers appear in the header, in the site footer and in one marked box on guide pages; company profiles carry none. See our methodology, sourcing standards and corrections policy.