TL;DR: Non-human identities outnumber humans by at least 45-to-one in enterprise environments, while leaked API keys, over-permissioned service accounts, and weak rotation practices keep expanding the attack surface, according to GitGuardian. IAM strategy is incomplete until it governs machine identities with the same lifecycle, privilege, and monitoring discipline as human accounts.
At a glance
What this is: This is an analysis of why traditional IAM leaves non-human identities under-governed and how that gap drives secrets sprawl, over-privilege, and weak lifecycle control.
Why it matters: It matters because service accounts, tokens, and API keys now sit inside the core identity perimeter, so IAM teams that ignore them leave a large part of access risk unmanaged.
By the numbers:
- At least 80% of modern breaches involve compromised or stolen identities.
- Non-human identities outnumber humans by at least 45-to-one in the enterprise.
- Some estimates place the ratio of non-human identities to humans as high as 100 to 1.
👉 Read GitGuardian's analysis of why IAM must extend to non-human identities
Context
Non-human identity governance is the control gap that appears when an organisation secures employees well but leaves service accounts, API keys, tokens, and automated workloads outside the same discipline. The primary keyword here is non-human identity governance, because that is where the real ownership problem sits for IAM teams: access exists, but lifecycle, ownership, and review often do not.
The article argues that the CISO has to own this problem because machine identities now form a large share of the enterprise identity surface. That is a reasonable conclusion for security practitioners, not a vendor slogan, because the same access paths used to run applications are also the paths attackers use once secrets sprawl, over-permissioning, or stale credentials go unchallenged.
For practitioners, the practical question is not whether NHIs matter. It is whether current IAM processes can actually inventory them, rotate them, and enforce least privilege at machine speed. That starting point is typical in organisations that grew cloud, DevOps, and automation faster than their identity governance model.
Key questions
Q: How should security teams govern non-human identities in IAM?
A: Security teams should govern NHIs with the same discipline used for human identities, but with automation, ownership, and lifecycle controls designed for machines. That means inventorying every service account, token, and API key, assigning an owner, enforcing least privilege, and proving that credentials are rotated or retired on schedule.
Q: What is the difference between human identity governance and NHI governance?
A: Human identity governance is built around people who join, change roles, and leave. NHI governance is built around machine credentials that can persist indefinitely, spread across systems, and outlive their original purpose. The practical difference is that machine identity control depends far more on discovery, automation, and continuous entitlement review.
Q: Why do non-human identities create more access risk than many teams expect?
A: NHIs often create hidden risk because they are easy to duplicate, hard to track, and frequently over-permissioned to keep workloads running. A single leaked secret can provide broad and durable access if the credential is long-lived or poorly scoped. That makes NHI risk a control and ownership problem, not just a secrets hygiene problem.
Q: When does zero trust fail for machine identities?
A: Zero trust fails for machine identities when long-lived credentials still carry standing access and no one rechecks whether that access is still justified. If the workload can authenticate once and keep using the same secret indefinitely, the organisation has preserved a trust shortcut. Continuous verification is required for the model to hold.
Technical breakdown
Why NHI lifecycle management breaks traditional IAM
Traditional IAM assumes identities are tied to people with clear onboarding, offboarding, and review events. Non-human identities do not follow that rhythm. Service accounts, API keys, and tokens often get created for a task, then linger because no owner feels responsible for retirement. That breaks the core lifecycle logic behind IAM governance, access certification, and entitlement cleanup. Once a credential exists, it can keep authenticating long after its original purpose has changed. The result is not just sprawl, but stale trust. In practice, lifecycle control for NHIs has to be automated, continuously observed, and tied to real workload dependencies rather than employment status.
Practical implication: Treat NHI lifecycle events as engineering controls, not administrative afterthoughts.
Secrets sprawl and over-privilege create the main NHI failure modes
Secrets sprawl means credentials are spread across code, logs, configuration files, vaults, and collaboration tools without a single authoritative view. That makes discovery hard and rotation inconsistent. Over-privilege compounds the problem because teams often grant extra permissions to keep workloads working, then never revisit them. The two issues reinforce each other: a secret that is easy to copy is also easy to overuse, and a broadly scoped credential is harder to contain once exposed. This is why NHI risk is not only about finding secrets, but about understanding where they live, what they can reach, and whether they still need that reach.
Practical implication: Map credential locations and permissions together, or you will only solve half the exposure problem.
Zero trust for machines requires continuous verification, not static trust
Zero trust architecture assumes no identity should receive persistent trust simply because it sits inside the network. For machines, that means credentials must be checked continuously and permissions should be narrow, ephemeral, and workload-specific. Long-lived API keys and static service account permissions are incompatible with that model because they create standing trust that attackers can reuse. The more distributed the environment, the more damaging that becomes, especially across cloud, CI/CD, and AI-enabled workflows. The architectural point is simple: zero trust for NHIs only works when identity, context, and privilege are re-evaluated often enough to matter.
Practical implication: Shift from permanent machine trust to short-lived access and continuous entitlement review.
Threat narrative
Attacker objective: The attacker wants durable access through a machine identity that is less monitored and easier to reuse than a human account.
- Entry occurs when an attacker finds a leaked API key, token, or service account secret in code, logs, or configuration.
- Escalation follows when that credential has broader permissions than the workload actually needs, letting the attacker move into connected systems.
- Impact lands when the compromised non-human identity is used for unauthorized access, data exposure, or lateral movement through the enterprise environment.
Breaches seen in the wild
- Dropbox Sign breach — compromised Dropbox Sign service account exposed API keys and OAuth tokens.
- Google Firebase misconfiguration breach — Firebase misconfigurations exposed 19.8M secrets across developer instances.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Non-human identity governance is now a core IAM discipline, not a niche cloud problem. The article is right that machine identities have outgrown the human-centric assumptions built into many IAM programmes. Once APIs, service accounts, and automation are part of the access fabric, security teams need the same governance logic they apply to employees, but with automation and telemetry tuned to machine scale. The practitioner conclusion is straightforward: if your IAM model cannot describe or control NHIs, it is incomplete.
Secrets sprawl creates identity blast radius, and that is the real control problem. The issue is not just that secrets exist in too many places. It is that every duplicated credential, stale token, or hidden API key enlarges the blast radius of a single compromise. That changes how teams should think about governance, because discovery without enforced rotation still leaves active exposure. The practitioner conclusion is to manage the blast radius, not just the inventory.
Least privilege for NHIs has to be verified continuously, not assumed at provision time. A workload that was correctly scoped six months ago may now have broader access than its current function requires. Continuous review matters because modern delivery pipelines mutate faster than manual access recertification can keep up. The practitioner conclusion is to treat entitlement drift as a standing condition, not an occasional exception.
Zero trust is only credible when machine identities are included in the trust model. The article correctly notes that persistent credentials undermine zero trust principles. If NHIs still carry long-lived access, then the organisation has replaced one static trust boundary with another. The field should stop treating machine identity as an implementation detail and start treating it as an architectural control point. The practitioner conclusion is to make NHI verification part of the zero trust operating model.
Identity ownership has to move closer to security when no business owner can clearly claim the credential. NHIs often fall between development, platform, and infrastructure teams, which is why they linger unmanaged. That ownership ambiguity is itself a security issue. Governance needs named accountability, evidence of active use, and retirement rules that do not depend on memory. The practitioner conclusion is to assign machine identity ownership explicitly before the next audit or incident forces the issue.
From our research:
- Only 1.5 out of 10 organisations are highly confident in their ability to secure NHIs, compared to nearly 1 in 4 for securing human identities, according to The State of Non-Human Identity Security.
- 85% of organisations lack full visibility into third-party vendors connected via OAuth apps, according to The State of Non-Human Identity Security.
- For a broader breach lens, 52 NHI Breaches Analysis shows how exposed credentials and weak lifecycle control turn identity gaps into incident patterns.
What this signals
Non-human identity governance will increasingly sit inside core IAM programmes, not beside them. Organisations that separate machine identity from identity governance will keep inheriting blind spots in reviews, audits, and response workflows. The practical shift is toward unified identity policy, where humans and workloads are governed through different mechanics but the same accountability model.
Ephemeral credential trust debt is the next operational problem for IAM teams. The longer an organisation tolerates static API keys and never-ending service accounts, the more remediation it postpones into future releases and future incidents. Pairing control expectations with the NIST Cybersecurity Framework 2.0 and NIST SP 800-207 Zero Trust Architecture gives practitioners a cleaner way to justify shorter credential lifetimes and tighter verification.
With 72% of organisations having experienced or suspecting a breach of non-human identities in our research, the governance gap is no longer abstract. Teams should prepare for more audit scrutiny around ownership, rotation evidence, and exception handling, especially where machine credentials support cloud-native and AI-enabled workflows.
For practitioners
- Build a complete NHI inventory Catalog service accounts, API keys, tokens, certificates, and workload identities across code, vaults, CI/CD systems, and collaboration tools. Include creator, owner, last-used time, and associated permissions so you can distinguish active identities from dormant ones.
- Centralise credential governance Move toward a single enterprise view for secrets management so rotation, revocation, and audit evidence are not fragmented across teams. Where credentials remain outside the vault, require a documented exception and a retirement date.
- Enforce least privilege continuously Revalidate permissions after each deployment, secret rotation, or workload change. Review write, delete, and admin rights separately from read access, and remove access that is not required for the current function.
- Shorten credential lifetime wherever possible Replace persistent machine credentials with short-lived access patterns tied to workload context. If an application cannot yet support ephemeral credentials, at minimum enforce aggressive rotation and clear retirement rules.
- Map NHI governance to zero trust controls Tie machine identity review to segmentation, continuous authentication, and workload-specific authorization checks. Use the NIST Cybersecurity Framework 2.0 and NIST SP 800-207 Zero Trust Architecture to align governance with broader security architecture.
Key takeaways
- Non-human identities are now large enough to distort IAM strategy if they are left outside governance.
- Secrets sprawl, over-privilege, and stale credentials are the control failures that turn NHIs into a repeatable breach path.
- The response is not a separate tool category first, but a stronger operating model for inventory, ownership, rotation, and least privilege.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Non-Human Identity Top 10 | NHI-03 | Rotation and retirement failures are central to the article's NHI risk model. |
| NIST CSF 2.0 | PR.AC-1 | The article focuses on controlling access and ownership across humans and machines. |
| NIST Zero Trust (SP 800-207) | Zero trust is a central theme because persistent machine credentials undermine continuous verification. |
Review NHI-03 controls and shorten rotation intervals for every credential that supports production access.
Key terms
- Non-Human Identity: A non-human identity is a machine or software identity used by applications, services, bots, or AI agents to authenticate and access resources. In practice, this includes service accounts, API keys, tokens, certificates, and workload identities that need ownership, lifecycle control, and monitoring just like human accounts.
- Secrets Sprawl: Secrets sprawl is the uncontrolled spread of credentials across code, logs, vaults, collaboration tools, and cloud services. It becomes a governance problem when no one can reliably see where credentials exist, who uses them, or whether rotation and revocation are actually enforced.
- Least Privilege: Least privilege means giving an identity only the permissions needed to do a specific job, and nothing more. For NHIs, that requires continual review because workloads change quickly and a credential that was once tightly scoped can become over-permissioned as systems evolve.
- Zero Trust Architecture: Zero Trust Architecture is a security model that assumes trust should never be implicit, even inside the network. For machine identities, that means credentials, context, and authorisation must be checked continuously instead of allowing long-lived access to persist by default.
What's in the full article
GitGuardian's full blog post covers the operational detail this post intentionally leaves for the source:
- Step-by-step guidance on discovering NHIs across code, vaults, and collaboration tools
- Practical examples of centralising secrets management across multiple vault instances
- The phased IAM roadmap for moving from discovery to continuous monitoring and zero trust
- Application-level examples for cloud-native and multi-cloud identity control
Deepen your knowledge
Non-human identity governance, least privilege, and lifecycle control are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building a governance programme from the same starting point, it is worth exploring.
Published by the NHIMG editorial team on 2025-02-10.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org