By NHI Mgmt Group Editorial TeamBased on Token Security: “Machine Identity Governance: Best Practices for Non-Human Entities” (May 31, 2026)

TL;DR: Machine identities now outnumber humans by roughly 45 to 1 in many enterprises, while 28.65 million new hardcoded secrets were detected in public GitHub commits in 2025, according to GitGuardian and Token Security’s analysis of machine identity governance. The governance gap is no longer theoretical: discovery, ownership, rotation, and access review must move from manual review to policy-driven control.


At a glance

What this is: This blog frames machine identity governance as the missing control layer for non-human identities, arguing that discovery, ownership, rotation, and access review must move from ad hoc handling to policy-driven governance.

Why it matters: It matters because IAM teams cannot secure AI agents, service accounts, and API keys at modern scale without treating machine identity governance as a core programme, not a side task.


Context

Machine identity governance is the policy layer that decides who or what can create, use, rotate, and revoke non-human identities. The article argues that this has become a core identity governance problem because service accounts, API keys, bots, containers, and AI agents now do work that used to sit behind human-operated controls.

The governance gap is not only scale, it is lifecycle drift. NHIs are often created ad hoc, granted broad privilege, hard-coded into pipelines, and left active after the work they supported has changed, which makes manual IAM processes increasingly unreliable for machine-first environments.


Key questions

Q: What breaks when machine identities have no clear owner?

A: When machine identities have no clear owner, offboarding, remediation, and accountability all fail together. Credentials may still be logged, but no one is responsible for validating purpose, reducing scope, or revoking access when the system changes. That creates governance debt and makes incident response slower and less reliable.

Q: Why do overprivileged service accounts create such persistent cloud risk?

A: Overprivileged service accounts create persistent risk because they combine standing access, weak ownership, and broad lateral movement potential. When those accounts are not tightly reviewed, an attacker or insider can move from a small foothold to broader cloud access. The issue is not only permission size, but how long that privilege remains valid.

Q: How do security teams know if NHI controls are actually working?

A: Look for complete inventory coverage, clear ownership, enforced rotation, and evidence that unused credentials are removed on time. If secrets remain active after changes to applications, vendors, or pipelines, the control is not working. Monitoring should also show whether machine access stays within the expected workload scope.

Q: Should organisations prioritise secret rotation or access review first

A: They should do both, but access review should come first when unknown or over-privileged identities already exist. Rotation reduces exposure window, but review reduces entitlement sprawl and clarifies ownership. If a team rotates secrets without fixing who can use them, it preserves the same risk pattern with a fresher credential.


Technical breakdown

Why machine identity sprawl breaks manual governance

Machine identities are not a niche credential class anymore. They now include service accounts, API keys, short-lived workload credentials, bots, containers, and AI agents, often spread across cloud platforms, CI/CD systems, SaaS tools, and code repositories. Manual review models work for humans because the population is comparatively stable and owned. Machine identities are created faster, change more frequently, and often have no obvious business owner, which makes spreadsheet governance brittle. Once identities become numerous and transient, the control problem shifts from review cadence to continuous discovery and policy enforcement.

Practical implication: treat inventory and ownership as live controls, not periodic documentation.

How rotation and revocation reduce the blast radius of exposed secrets

Static credentials are the weakest part of most NHI programmes because they turn a single leak into a long-lived access path. The article’s rotation model is straightforward: detect exposure, issue a replacement, update the consuming workload, validate the new credential, and revoke the old one. That matters because a hard-coded key in a repository or a dormant token in a vault can persist long after the original developer has moved on. Governance here is not about secret storage alone, but about enforcing a finite lifespan for every authenticator that can be copied or reused.

Practical implication: enforce time-bounded credentials and immediate revocation paths for exposed secrets.

Why policy-driven access reviews are different for NHIs

Human access reviews assume a manager can judge whether a person still needs access. Machine identity governance has to ask the logs instead: has the service account actually used this permission recently, and does the workload still justify it? That turns access review into evidence-based right-sizing rather than subjective approval. The article also points to policy-as-code and pipeline enforcement, which matters because entitlement decisions are best made before deployment, not after drift accumulates. For NHIs, standing privilege is often the default failure mode, so access review has to remove unused entitlements continuously.

Practical implication: move entitlement review into automated utilisation checks and deployment policy gates.


  • Dropbox Sign breach 2024: A compromised back-end service account gave attackers Dropbox Sign customer data, including API keys, OAuth tokens and MFA information.
  • iOS apps leaking hard-coded secrets: Cybernews found 71% of 156,080 iOS apps leak hard-coded secrets, with open cloud storage and Firebase databases exposing user data.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Machine identity governance is now the control plane for non-human access. The article correctly reframes NHIs as the operational layer where modern enterprise work actually happens. That means identity governance can no longer stop at human joiner-mover-leaver processes, because workloads, keys, and agents now carry real business authority. The practitioner conclusion is that NHI governance must be treated as a primary security architecture, not a subfeature of IAM.

Ownership is the first governance failure, not the last one. Machine identities without a named owner become orphaned by design, which is why dormant service accounts and forgotten tokens linger after projects end. This is not just inventory debt, it is accountability debt. The implication is that every NHI control set should start with durable ownership mapping before privilege and rotation controls can be trusted.

Identity blast radius is the right concept for machine risk. The article’s discussion of over-privileged service accounts shows that the real problem is not merely exposure, but how far a compromised identity can move once used. Least privilege and JIT are therefore not abstract ideals in NHI governance, they are the controls that determine whether a single credential issue remains local or becomes an enterprise incident. Practitioners should measure blast radius, not just credential count.

Policy-as-code is where NHI governance becomes operational instead of aspirational. NHIs are created and consumed inside pipelines, infrastructure templates, and automation workflows, so governance that waits for human review will always lag the work. The useful shift is to make identity policy executable at the same point where the identity is created or used. The practitioner conclusion is that NHI governance must be embedded in delivery paths, not layered on afterward.

From our research library:

What this signals

Identity blast radius: the useful unit of NHI risk is not the number of credentials, but how far one compromised machine identity can move before detection. When privilege and lifecycle are handled manually, blast radius expands faster than most IAM teams can review it.

Machine-first environments force IAM teams to shift from periodic governance to continuous control. The organisations that will cope best are the ones that make ownership, rotation, and utilisation checks executable inside delivery and runtime workflows, not after the fact.


For practitioners

  • Define named ownership for every machine identity Map each service account, API key, token, and workload credential to a responsible team or business unit, and block deployment of identities that cannot be assigned an owner at creation time.
  • Replace standing credentials with finite lifetimes Set explicit rotation and revocation rules for exposed or high-value secrets so that every credential has a short, enforceable lifespan and an immediate removal path.
  • Move access review from approval to utilisation Use recent log activity to determine whether a permission is still needed, then remove unused entitlements from service accounts and other non-human identities.
  • Embed NHI policy checks into delivery pipelines Scan code, Terraform plans, and CI/CD steps for hard-coded secrets, over-privileged identities, and unmanaged machine credentials before they reach production.

Key takeaways

  • Machine identity governance becomes necessary when service accounts, keys, and agents start carrying the operational load that once sat behind human identity controls.
  • The article shows that unmanaged NHIs create a lifecycle problem as much as a privilege problem, because orphaned identities and static secrets can remain active long after their purpose has changed.
  • The practical response is to tie ownership, rotation, and entitlement reduction to policy-driven automation so machine access can be governed at the same pace it is created.

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 CSF 2.0 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-05 — Overprivileged NHIThe article centres on excessive permissions for service accounts and other machine identities.
NHI-07 — Long-Lived SecretsStatic keys and dormant credentials are a core risk throughout the article.
NHI-01 — Improper OffboardingThe article repeatedly describes forgotten, dormant, and unowned NHIs that remain active.
Recommendation — Reduce standing access for machine identities and scope each credential to the minimum required task. Shorten credential lifetimes and revoke machine secrets as soon as their purpose changes. Offboard machine identities when projects end and ensure no orphaned access paths remain.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is about governing permissions and entitlement scope for non-human identities.
Recommendation — Continuously right-size NHI entitlements and remove permissions that are no longer used.
CIS Controls v8CIS-5 — Account ManagementThe article is fundamentally about controlling the lifecycle of machine accounts and secrets.
Recommendation — Maintain an inventory of machine accounts and remove unused or unmanaged identities promptly.

Key terms

  • Machine Identity Governance: Machine Identity Governance is the discipline of controlling how non-human identities are created, used, monitored, and retired. It covers service accounts, API keys, certificates, tokens, workloads, and automation identities, with policies for ownership, lifecycle, least privilege, rotation, attestation, and auditability across cloud, application, and infrastructure environments.
  • Identity Blast Radius: The amount of damage a compromised identity can cause across systems, data, and infrastructure. In NHI environments, it is shaped by permissions, network reach, and administrative capability rather than by the credential alone. Reducing blast radius is a containment strategy that limits lateral movement and data exposure.
  • Orphaned Identity: An orphaned identity is a service account, token, or other machine credential that no longer has a clear owner, purpose, or retirement path. These identities create compliance and security risk because they are easy to forget, difficult to review, and often remain active long after they should have been removed.
  • Policy as Code: Policy as code stores authorization logic in version control and evaluates it through testable, reviewable rules. For agent governance, it makes runtime decisions reproducible and measurable, which is critical when actions can be triggered by untrusted content and executed at machine speed.

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.
NHIMG Editorial Note
Published by the NHIMG editorial team on July 6, 2026.
Updated on October 6, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org