TL;DR
- The controls that protect people do not transfer. MFA, session timeout and joiner-mover-leaver all assume a human is present. None of them applies to a credential in a config file.
- Secrets leak from more places than code. Repositories, CI logs, container images, chat, and increasingly context supplied to AI models.
- Over-privilege is the multiplier. A leaked credential is a minor incident or a breach depending entirely on what it was allowed to reach.
- Detection assumes a baseline. Machine behaviour is regular, which makes anomalies easier to spot than for humans, and almost nobody models it.
What NHI security is
NHI security is the practice of protecting the digital identities used by software, service accounts, API keys, OAuth tokens, cloud IAM roles, Kubernetes service accounts, certificates, SSH keys, workload identities, and AI agents, from compromise, misuse, over-privileging, and orphaning. It is adjacent to but distinct from classical identity and access management (IAM), which was designed for human users.
Why it moved from edge concern to top priority
In 2023 to 2025, non-human identities became the leading root cause of enterprise breach. Salesloft/Drift (2025, 700+ orgs). Snowflake UNC5537 (2024, 165 customers). Microsoft Storm-0558 (2023, 60,000 US State Department emails). Shai-Hulud 2.0 (2025, credentials from ~25,000 repositories across ~1,195 organisations (Entro Security)). In every case, the initial access vector was an NHI credential, not a phished user, not a zero-day, not a perimeter-appliance vulnerability.
Meanwhile, NHIs have scaled faster than humans. The commonly-cited ratio is 45-to-1, 45 non-human identities for every human user, on average, in the enterprise. Cloud-native, SaaS-heavy, and AI-enabled organisations run higher ratios still. The defender's surface area has grown faster than the defender's tooling.
The three attack patterns that dominate
Real-world NHI breaches cluster into three patterns. If you are doing a quick risk scan, these are what you are looking for:
- Leaked static credentials. An API key, service-account password, or long-lived token ends up somewhere an attacker can reach, public GitHub, a container image, a developer laptop, a breached SaaS. The credential has no MFA and no short expiry, so the attacker uses it freely. Codecov, Shai-Hulud.
- Orphaned identities. An NHI is created for a purpose, the purpose ends, the identity keeps living. Years later it is still valid, still privileged, and nobody knows it exists. Microsoft Storm-0558 used a 2016-issued signing key in 2023.
- Over-privileged NHIs used for lateral movement. A narrowly-needed NHI is granted broad permissions for convenience. When compromised, the attacker inherits those permissions and can pivot. Snowflake UNC5537 exploited broad customer-side permissions harvested via infostealers.
The OWASP NHI Top 10, 30-second summary
The 2025 OWASP Non-Human Identities Top 10 is the most useful shared taxonomy the field has. The ten risks:
NHI1, Improper offboarding. NHI2, Secret leakage. NHI3, Vulnerable third-party NHI. NHI4, Insecure authentication. NHI5, Overprivileged NHI. NHI6, Insecure cloud deployment. NHI7, Long-lived secrets. NHI8, Environment isolation. NHI9, NHI reuse. NHI10, Human use of NHI.
Full walkthrough and self-audit here.
The seven controls that move the needle
- Inventory. Automated, continuous, across all source systems. Foundation, nothing else works without it.
- Ownership. Every NHI has a current human owner. No orphans at creation.
- Credential rotation. Scheduled, automated. Where possible, short-lived or workload-bound instead of static.
- Least privilege. Permissions granted at minimum; drift detected; reviewed regularly.
- Lifecycle automation. Decommissioning tied to identifiable events (HR termination, application retirement, integration removal).
- Behavioural monitoring. NHIs baselined; anomalies alerted.
- Third-party integration governance. OAuth apps reviewed on install, re-reviewed on change, revoked on deprecation.
Why traditional IAM doesn't cover this
Human IAM assumes a second factor, a manager, a baseline population, and an HR event for offboarding. NHIs have none of those. Every IAM control that silently depends on one of these assumptions becomes ineffective in the NHI case, which is why mature human IAM programmes still produce the kinds of breaches in the breach catalog.
Where to go next
- Run the 5-stage maturity assessment (4 minutes) to calibrate where your programme sits.
- Read the full NHI security pillar for the detailed treatment.
- Audit against the OWASP NHI Top 10.
- Study the breach catalog for what actually happens when controls fail.