By NHI Mgmt Group Editorial TeamPublished 2026-04-20Domain: Governance & RiskSource: Token Security

TL;DR: Breaches often begin with valid credentials, and organisations can spend more than two hundred days identifying an intrusion, according to the latest breach research cited by Token Security. The real control failure is hidden NHI sprawl, standing privilege, and unmanaged AI agent access, not the alert that arrives months later.


At a glance

What this is: This is an analysis of why access control degrades before security teams detect a breach, with non-human identities, secret sprawl, and overprovisioned AI agent access as the core failure modes.

Why it matters: For IAM and NHI practitioners, it shows why detection tooling alone cannot stop abuse if identities, secrets, and privileges are already out of control.

By the numbers:

  • 44% of NHI tokens are exposed in the wild, being sent or stored over platforms like Teams, Jira tickets, Confluence pages, and code commits.
  • 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation.

👉 Read Token Security's analysis of why access control fails before breach detection


Context

In NHI governance, the breach problem often starts before any alert fires because credentials, tokens, and service accounts can be created faster than security teams can inventory them. When access is provisioned without lifecycle oversight, the environment accumulates silent trust debt that later appears as an incident.

This article argues that the real failure is not detection but control drift across machines and autonomous agents. That framing is typical of modern cloud environments, where NHIs are created programmatically, secrets are copied into work systems, and standing access outlives the task it was meant to support.


Key questions

Q: How should security teams reduce risk from exposed NHI credentials?

A: Security teams should inventory all non-human credentials, rotate or revoke anything exposed outside approved vaults, and shorten credential lifetime wherever possible. The important shift is to treat secrets as live access paths, not static configuration. Once a token or API key leaves governed storage, its exposure window becomes part of the risk model, not an exception.

Q: When does JIT access help more than permanent machine credentials?

A: JIT access helps when a workload, bot, or AI agent only needs privileges for a narrow task and does not require persistent connectivity. It reduces blast radius by ensuring credentials expire quickly after use. It is less effective if teams keep broad roles underneath the JIT layer, because the underlying privilege model still remains too wide.

Q: What is the difference between detection and access governance for NHIs?

A: Detection looks for suspicious behaviour after an identity is already in use, while access governance limits what the identity can do in the first place. For NHIs, governance is usually more valuable because many abuses look like normal authentication. If a token is overprivileged or abandoned, no alert can undo the fact that it still works.

Q: Why do AI agents require stronger identity controls than standard applications?

A: AI agents can choose actions, call tools, and chain operations, so their identity is not just a login mechanism. If they are overprivileged, one prompt injection or workflow abuse can turn into broad enterprise misuse. Teams should therefore constrain agent permissions, use short-lived credentials, and treat agent access as privileged by default.


Technical breakdown

Why valid credentials are the attacker’s easiest entry point

Attackers often avoid malware and instead use credentials that are already valid, because authentication bypasses many detection controls. In NHI-heavy environments, API keys, tokens, certificates, and service accounts can grant direct access to cloud services, data stores, and internal APIs. Once a credential is exposed in a repository, ticketing system, chat channel, or configuration file, the attacker inherits the same trust the system gave to the workload. That makes the control failure architectural, not merely operational. Security tools may notice unusual behaviour later, but they do not prevent the initial misuse of legitimate identity material.

Practical implication: Treat every valid secret as a live access path and remove it from unsecured collaboration and code locations immediately.

How privilege creep turns machine identities into blast-radius multipliers

Privilege creep occurs when an identity receives more access than it actually uses, then keeps accumulating permissions over time. For service accounts and AI agents, this usually happens because teams optimise for deployment success instead of least privilege. The result is standing access that remains active even when the workload is idle or retired. When that identity is compromised, the attacker does not need to escalate far. The permissions are already there. This is why access reviews for machines must be usage-based, continuous, and tied to task scope, not annual paperwork.

Practical implication: Right-size machine permissions based on observed use and revoke access when behaviour no longer matches the approved task.

Why AI agents force a rework of authentication and authorisation

Autonomous AI agents change the access model because they do not operate like fixed scripts. They can chain actions, call tools, and make decisions across multiple systems, which means a single overprivileged agent identity can become a wide attack surface. If the agent is manipulated through prompt injection or tool misuse, the attacker inherits the agent’s permissions and workflow context. That is why agent identity must be governed with the same discipline as privileged human access, but with tighter runtime constraints and shorter-lived credentials. Static access assumptions fail quickly once agents can execute independently.

Practical implication: Assign agents ephemeral, task-scoped permissions and bind them to explicit approval, logging, and revocation controls.


Threat narrative

Attacker objective: Use legitimate access to remain inside the environment long enough to steal data or execute actions without triggering early alarms.

  1. Entry occurs when an attacker finds a hardcoded API key, orphaned token, or overprivileged service account in a repository, ticket, or chat system.
  2. Escalation follows when the compromised identity already has broad standing access, allowing the attacker to move directly into cloud services, data stores, or internal APIs.
  3. Impact lands as quiet data access or destructive action while defenders are still relying on detection tooling that sees the abuse only after valid login activity has already occurred.

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


NHI Mgmt Group analysis

Access control loss is now an identity lifecycle problem, not a detection problem. Organisations do not usually lose control at the moment of compromise. They lose it when identities are created without review, left active after use, or granted broader rights than the task requires. That makes lifecycle governance the first line of defence, not a back-end cleanup activity. Practitioners should treat inventory, approval, usage review, and revocation as one control loop, not separate projects.

Identity blast radius: the real risk is how far one exposed credential can travel. The article’s core insight is that a single token or service account can inherit far more trust than the team intended. That is especially dangerous in cloud and agentic environments where machine identities are stitched into automation, deployment, and data access. The practical answer is not more alerting after the fact. It is to reduce the amount of privilege attached to any one identity before compromise occurs.

Standing privilege remains the structural weakness in most NHI programmes. Teams still issue persistent access because it is easier than building approval and revocation flows that match machine speed. But standing access turns every exposed secret into a reusable foothold. The governance standard should be task-scoped access with enforced expiry, backed by reviewable logs and automated deprovisioning.

AI agents make unmanaged access more dangerous because they can convert trust into action immediately. An overprivileged agent is not just another workload. It is an execution layer with tool access and decision authority, which means prompt injection or workflow abuse can translate directly into misuse of enterprise privileges. Practitioners should align agent governance with privileged access controls, not generic application onboarding.

From our research:

  • 44% of NHI tokens are exposed in the wild, being sent or stored over platforms like Teams, Jira tickets, Confluence pages, and code commits, according to the 2025 State of NHIs and Secrets in Cybersecurity.
  • 64% of valid secrets leaked in 2022 are still valid and exploitable today, which means exposure without revocation remains an active control failure.
  • Use Guide to the Secret Sprawl Challenge to turn discovery findings into a revocation and rotation workflow for exposed secrets.

What this signals

Ephemeral credential trust debt is the accumulation of temporary access that never gets fully retired, and it is becoming one of the clearest indicators that NHI programmes are out of sync with cloud operations. With 44% of NHI tokens already exposed in collaboration tools, tickets, and repositories, the programme risk is not only leakage but lingering validity after exposure.

Security leaders should expect agentic systems to widen the gap between creation speed and governance speed. That makes continuous discovery, expiry enforcement, and owner-based review central to every IAM roadmap, with zero trust and least privilege acting as operational guardrails rather than abstract principles.


For practitioners

  • Inventory all machine identities continuously Scan code repositories, CI/CD systems, cloud accounts, and SaaS platforms for service accounts, tokens, and certificates so hidden access paths do not sit outside the control plane. Tie discovery to ownership and expiry dates.
  • Replace standing access with task-scoped permissions Use just-in-time approval and short-lived credentials for workloads and agents that only need access for a bounded operation. Remove default administrator grants and validate the permissions actually used during execution.
  • Automate revocation for unused or abandoned identities Flag identities with no activity for a defined period, then disable or rotate them automatically after owner confirmation or policy timeout. This closes the gap between project end and credential retirement.
  • Review AI agent permissions as privileged access Treat agents that can call tools or modify data as high-risk identities and require approvals, logging, and explicit scope limits before production use. Map their permissions to the same review process used for elevated human access.

Key takeaways

  • Modern breaches often start with valid access that was never governed tightly enough, not with a visible intrusion event.
  • Non-human identities, secrets sprawl, and standing privilege create the silent control loss that detection tools usually find too late.
  • Practical defence starts with continuous discovery, short-lived access, and automated revocation for workloads and AI agents.

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.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01Secret exposure and unmanaged identity creation map directly to NHI inventory and lifecycle controls.
NIST CSF 2.0PR.AC-4Least privilege and access restriction are central to preventing overprovisioned machine identities.
NIST Zero Trust (SP 800-207)PR.AA-1Continuous verification is needed when workload access is dynamic and ephemeral.

Inventory all NHIs, map owners, and remove exposed credentials as soon as they are discovered.


Key terms

  • Non-Human Identity: A non-human identity is an account or credential used by software instead of a person. It includes service accounts, API keys, tokens, certificates, bots, workloads, and autonomous agents. In practice, these identities often outnumber human accounts and need lifecycle control, ownership, and revocation like any other access path.
  • Secret Sprawl: Secret sprawl is the uncontrolled distribution of credentials across code, chat, tickets, wikis, and other places that are not designed to protect them. It increases the chance of exposure, reuse, and delayed revocation because the same secret can exist in multiple unmanaged locations at once.
  • Standing Privilege: Standing privilege is access that remains active all the time instead of being granted only when needed. For NHIs and AI agents, it creates a large blast radius because a compromised identity can act immediately without additional approval, making least privilege and expiry controls essential.
  • Just-in-Time Access: Just-in-time access is a pattern where credentials or permissions are issued only for the short period needed to complete a task. It reduces exposure time and limits what an attacker can use if the identity is compromised, provided the underlying role is tightly scoped.

What's in the full article

Token Security's full blog covers the operational detail this post intentionally leaves for the source:

  • The article’s step-by-step timeline of how access loss becomes a breach, from creation to exploitation.
  • The vendor’s comparison of reactive detection versus proactive governance for machine identities.
  • The JIT access model described for AI agents and how temporary tokens are meant to expire after task completion.
  • The FAQ section’s practical examples of secret sprawl, standing access, and machine identity lifecycle failures.

👉 Token Security's full post covers the breach timeline, machine identity gaps, and JIT access model in more operational detail.

Deepen your knowledge

Access control for non-human identities is a core topic in our NHI Foundation Level course, the industry's only accredited NHI security programme. If your team is dealing with secrets sprawl, standing privilege, or AI agent access, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-04-20.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org