TL;DR: GitGuardian argues that non-human identities now outnumber humans by at least 45:1 in enterprise environments, while secrets sprawl, over-permissioned service accounts, and weak lifecycle controls leave IAM strategy incomplete. Traditional identity governance assumes stable ownership and review cycles; machine identities break both assumptions.
At a glance
What this is: This is an analysis of why IAM programmes miss a major blind spot when they stop at human accounts and fail to govern non-human identities.
Why it matters: It matters because machine identities carry real access, privilege, and compliance risk, so IAM teams need the same lifecycle and governance discipline they apply to people.
👉 Read GitGuardian's analysis of non-human identity governance in IAM strategy
Context
IAM was built around human users, but modern enterprises now depend heavily on service accounts, API keys, tokens, certificates, and automated workloads. That creates a governance gap when identity programmes still treat machine access as an operational detail rather than a core security domain.
The article argues that this gap matters because non-human identities often persist longer than they should, accumulate excessive privilege, and spread across multiple secret stores and code paths. For IAM and security teams, the issue is not just visibility. It is ownership, lifecycle control, and enforceable policy across all identities.
Key questions
Q: What breaks when non-human identities are managed outside the IAM operating model?
A: What breaks is accountability. Without IAM ownership, non-human credentials drift into fragmented secrets tools, inconsistent review cycles, and orphaned access that persists after the workload changes. That is how machine identities become invisible trust dependencies.
Q: What problem does ownership attribution solve for service accounts and API keys?
A: It closes the gap between exposure detection and accountable remediation. Many organisations can find the secret, but not the human who introduced it, maintains it, or can safely replace it. Ownership attribution gives security teams a practical way to assign action without relying on informal knowledge that disappears during staff changes.
Q: How can organisations tell whether NHI governance is actually working?
A: NHI governance is working when every machine identity has an owner, a purpose, a minimum-necessary entitlement, and evidence of rotation and review. If teams can produce that chain without manual reconstruction, the programme is mature enough to withstand audit pressure. If they cannot, the governance model is still fragmented.
Q: Should organisations manage human and machine identities under the same access governance model?
A: They should govern them under the same programme, but not with identical controls. The shared requirement is visibility into who or what is authorised. The difference is that machine identities usually need tighter ownership, shorter lifecycle expectations, and clearer operational handoff. A single programme works best when it distinguishes subject type while keeping one governance record.
Technical breakdown
Why human-centric IAM assumptions fail for non-human identities
Human IAM assumes a predictable lifecycle, a named owner, and interaction patterns that fit onboarding, access reviews, and offboarding. Non-human identities do not behave that way. Service accounts, API keys, and workload credentials can outlive the application they support, move between teams, and remain active with no clear business owner. That breaks governance models built around employee records and periodic certification. In practice, the identity is often embedded in code, infrastructure, or a vault rather than attached to a person. Practical implication: model machine identities as governed assets with explicit ownership and lifecycle states, not as incidental credentials.
Practical implication: model machine identities as governed assets with explicit ownership and lifecycle states, not as incidental credentials.
How secrets sprawl creates hidden IAM risk
Secrets sprawl is the uncontrolled spread of API keys, tokens, and certificates across repositories, chat tools, ticketing systems, and multiple vaults. The problem is not only leakage. Sprawl also fragments control, so the same secret may exist in several places with no single authoritative source for rotation, revocation, or inventory. That makes incident response slower and audit evidence weaker. It also means teams can believe a secret is managed when it is still active elsewhere. Practical implication: build a complete secret inventory across code, collaboration tools, and vaults before attempting rotation or policy enforcement.
Practical implication: build a complete secret inventory across code, collaboration tools, and vaults before attempting rotation or policy enforcement.
Why least privilege and rotation are harder for machine identities
Least privilege for non-human identities is difficult because developers often grant broader access to make systems work quickly, then leave those permissions in place. Rotation adds another layer of risk because every credential change can introduce drift, duplicate secrets, or broken dependencies if the estate is not mapped. Long-lived credentials are especially dangerous because they widen the attacker’s usable window and reduce the value of authentication controls. The governance challenge is not just to rotate more often, but to verify that the new secret still reflects the intended scope. Practical implication: tie privilege review to every rotation event and validate both scope and usage after each change.
Practical implication: tie privilege review to every rotation event and validate both scope and usage after each change.
Threat narrative
Attacker objective: The attacker’s objective is to turn unmanaged machine credentials into durable access that can be reused across systems and workloads.
- Entry begins when attackers obtain leaked API keys, tokens, or service account credentials from code, logs, or exposed collaboration systems.
- Escalation follows when those credentials carry more privilege than the workload actually needs, allowing access to adjacent data or systems.
- Impact occurs when long-lived machine identities are reused across environments, giving attackers persistent access and making containment slower.
Breaches seen in the wild
- PyPI secrets exposure 2023: Researchers found 3,938 unique secrets in published PyPI packages, 768 still valid; a new release or yank does not remove them.
- Azure Key Vault Contributor escalation 2024: Datadog found Azure Key Vault Contributor could add itself to access policies and read every secret, key and certificate in a vault.
Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Non-human identity governance is now a core IAM control plane, not a side concern. IAM programmes that stop at employees and contractors are already incomplete because a large share of enterprise access is exercised by machines. Those identities carry real privilege, real blast radius, and real audit obligations. The practitioner conclusion is straightforward: if the governance model does not cover service accounts, API keys, tokens, and certificates, it is not an enterprise IAM model.
Secrets sprawl creates identity fragmentation before it creates leakage. The deeper problem is not simply that credentials escape into logs, tickets, or source code. It is that nobody can prove which secret is current, where it is still valid, or who owns its retirement. That is an operational governance failure, not just a hygiene issue. The practitioner conclusion is to treat inventory and authoritative source control as prerequisites for any meaningful NHI programme.
Least privilege for NHIs is a moving target, not a provisioning event. Machine identities are often granted broad access to keep workflows moving, then left to accumulate scope as systems change. Rotation can also reintroduce excess privilege if the new credential is copied forward without revalidation. The practitioner conclusion is that access review for NHIs must be tied to lifecycle events, not to annual compliance cycles.
Traditional access review assumptions break when identities are non-human. Access certification was designed for accounts that belong to people and persist long enough to be reviewed on a schedule. That assumption fails when credentials are embedded in automation, deployed across vaults, and reused by workloads that outlive their original purpose. The implication is that governance has to shift from reviewing users to controlling issuance, scope, and retirement of machine access.
Identity blast radius: The real governance unit is not the individual secret but the combined reach of all credentials tied to a workload, service, or pipeline. Once those credentials are duplicated across tools and environments, the attacker’s usable surface expands faster than the IAM team’s visibility. The practitioner conclusion is to manage machine identity as an interconnected access system, not as isolated credentials.
From our research library:
- 68% of organisations do not know how to fully address NHI risks, according to the Ultimate Guide to NHIs.
- Enterprises manage far more machine secrets than human ones: 20 times as many according to Enterprise Strategy Group, and 45 times according to GitGuardian.
- Read next: Ultimate Guide to NHIs
What this signals
Non-human identity governance will become the dividing line between mature IAM and symbolic coverage. Programmes that still equate identity security with user access management will keep missing the credentials that actually drive application and workload access. The operating question is no longer whether NHIs exist, but whether each one has a lifecycle, a purpose, and a revocation path.
Vault centralisation alone does not solve machine identity risk. Once secrets are duplicated across repositories, collaboration tools, and multiple vault instances, the governance problem becomes authority, not storage. Teams need a single source of truth for machine credentials, or rotation and offboarding will remain partial and slow.
For practitioners
- Inventory every non-human identity Map service accounts, API keys, tokens, and certificates across code, chat, ticketing, and vault systems so you can identify where machine access actually exists.
- Establish a single authoritative secret source Consolidate duplicate credentials into the approved enterprise secrets manager and remove unmanaged copies from other stores and repositories.
- Tie rotation to privilege revalidation Review permissions whenever a machine credential is rotated so the replacement secret does not inherit excess access from the old one.
- Assign accountable ownership for each machine identity Record who can approve changes, who can retire the identity, and which application or workload depends on it.
- Extend zero trust to machine access paths Require continuous verification, narrow workload segmentation, and short-lived authentication patterns for every service identity that reaches critical systems.
Key takeaways
- Non-human identities create a governance blind spot when IAM programmes are still built around people rather than credentials that power workloads and automation.
- Secrets sprawl, weak ownership, and over-permissioned machine accounts widen both the attack surface and the audit gap.
- The practical fix is to govern machine identities as first-class assets with inventory, ownership, lifecycle control, and privilege revalidation.
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 addresses the attack and risk surface, while NIST SP 800-53 Rev 5, 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-01 — Improper Offboarding | The article stresses that machine identities often persist after their purpose ends. |
| NHI-05 — Overprivileged NHI | Over-permissioned service accounts are a central risk discussed in the article. | |
| NHI-07 — Long-Lived Secrets | The article highlights API keys and tokens that remain active for years. | |
| Recommendation — Define offboarding steps for every machine identity and revoke access when its workload ends. Review machine permissions regularly and reduce every identity to the minimum access it needs. Replace long-lived machine secrets with short-lived credentials and enforce rotation governance. | ||
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | The article centres on managing API keys, tokens, and rotation lifecycle. |
| Recommendation — Apply authenticator management controls to track issuance, rotation, and retirement of machine credentials. | ||
| NIST CSF 2.0 | PR.AA-05 — Access Permissions, Entitlements and Authorizations | The article is fundamentally about governing entitlements for non-human identities. |
| Recommendation — Document and review machine entitlements so access remains aligned to workload purpose. | ||
| NIST Zero Trust (SP 800-207) | Zero Trust Architecture — Zero Trust Architecture | The article explicitly ties NHI governance to zero trust principles. |
| Recommendation — Use zero trust principles to verify every machine identity continuously before granting access. | ||
Key terms
- Non-Human Identity (NHI): A digital identity assigned to a non-human entity such as a software application, service account, API key, bot, machine, or AI agent that enables it to authenticate and interact with systems without direct human involvement. NHIs now outnumber human identities in most enterprises by 25 to 50 times.
- Secrets Sprawl: The uncontrolled proliferation of sensitive credentials, API keys, tokens, passwords, certificates, across codebases, cloud environments, CI/CD pipelines, and configuration files. In 2024, over 50 million leaked secrets were found on the dark web.
- Standing Access: Standing access is persistent privilege that remains available without fresh approval or contextual checks. In NHI environments, standing access usually appears as long-lived tokens, reusable service accounts, or broad roles attached to automation. It is convenient operationally, but it expands risk when conditions change or secrets leak.
- Lifecycle Governance: Lifecycle governance is the set of controls that cover creation, assignment, review, rotation, and retirement of identities and credentials. For NHIs, it is the difference between a temporary automation asset and a persistent access risk. Strong lifecycle governance keeps ownership and expiry tied to actual business use.
What's in the full article
GitGuardian's full article covers the operational detail this post intentionally leaves for the source:
- The article's phased roadmap for discovering, centralising, and governing non-human identities across enterprise environments.
- Examples of how to map where NHI secrets are stored, when they were created, and whether they are still in use.
- The article's discussion of zero trust, SPIFFE, and lifecycle management as implementation directions for machine identities.
- The sector-specific IAM considerations and breach examples that support the article's governance argument.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are building or maturing an IAM programme, it is worth exploring.
Published by the NHIMG editorial team on June 1, 2026.
Updated on October 7, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org