TL;DR: Agentic AI systems are acting on cloud resources, secrets, and builds with shared tokens, hardcoded credentials, and long-lived service accounts, making unmanaged NHIs a growing governance blind spot, according to P0 Security. Access review cycles assume stable, reviewable privilege, but autonomous actors can plan and execute faster than those controls can observe.
At a glance
What this is: This is an analysis of how agentic AI changes identity governance, with the core finding that autonomous software agents are already operating as unmanaged non-human identities.
Why it matters: It matters because IAM, PAM, and NHI programmes now have to govern machine-speed actors whose access paths, decision timing, and blast radius differ from both human users and traditional automation.
👉 Read P0 Security's analysis of ten identity and governance risks in agentic AI
Context
Agentic AI applications are software actors that can choose actions, call tools, and execute work across cloud and application environments. The identity problem is not just what they do, but what authority they do it under, because shared tokens, hardcoded secrets, and long-lived service accounts are now being used to carry that authority.
The governance gap is that most identity programmes still treat these actors like ordinary automation or like extended-service processes. That leaves NHI inventory, lifecycle control, access review, and auditability out of sync with how agentic systems actually behave at runtime.
Key questions
Q: How should security teams govern access for agentic AI systems?
A: Security teams should govern agentic AI systems as privileged non-human identities with unique ownership, explicit purpose, and a documented revocation path. The priority is to control the credentials that let an agent act, then constrain the environments and tools it can reach. Access should be reviewed by effective blast radius, not by role name alone.
Q: Why do agentic AI systems complicate least privilege programmes?
A: They complicate least privilege because the risky part is not only the initial entitlement, but the sequence of actions the agent can choose at runtime. A role that looks narrow on paper can still produce broad operational reach when the system chains tools, crosses environments, or modifies secrets. Least privilege must therefore be evaluated by reachable actions, not static labels.
Q: What breaks when AI agents rely on shared tokens and service accounts?
A: Ownership, auditability, and offboarding all break when multiple agents or workflows share the same credentials. If one token represents several actors, investigators cannot tell which system acted, and administrators cannot revoke access surgically. That turns identity governance into guesswork and leaves hidden persistence behind after the original use case ends.
Q: Who is accountable when an AI agent changes cloud resources or secrets?
A: Accountability should sit with the business owner of the agent, the identity team that issued the access, and the control owner that approved the action path. If no one can name those three roles, the governance model is incomplete. For regulated or high-risk environments, that missing accountability becomes an operational and audit problem.
Technical breakdown
Why agentic AI is not traditional automation
Traditional automation follows fixed logic, known triggers, and predictable execution paths. Agentic AI introduces runtime decision-making, which means the sequence of actions can change based on context, intermediate results, and tool output. That matters for identity because authorisation is no longer only about the initial permission set. Once an agent can decide what to do next, privilege becomes a moving target, and the effective blast radius depends on the actions the system selects mid-session. The security issue is therefore not just access assignment, but the combination of identity, action freedom, and downstream tool reach.
Practical implication: Treat agentic systems as runtime identities whose effective privilege must be evaluated in context, not only at provisioning time.
Why every agent behaves like a non-human identity
An agent that authenticates with tokens, API keys, or service principals is operating as a non-human identity even if the business presents it as a copilot or workflow helper. The article highlights a common failure pattern: shared tokens, hardcoded secrets, and long-lived service accounts are used to represent actors that should be individually governed. That creates invisibility in standard IAM reviews because the account is not clearly mapped to one actor, one purpose, or one lifecycle. When the same credentials support multiple agents or multiple workflows, accountability and revocation both degrade.
Practical implication: Inventory agent identities separately from human and application accounts, then break shared credentials into traceable, individually governed records.
Continuous context is now part of access control
The article points to environment, time, source, behavior, and request type as factors that should influence access decisions. That is a shift from static entitlement thinking to contextual authorisation. In practice, a deployment bot that is safe in development may be inappropriate in production, even if the role name is unchanged. For agentic systems, the old assumption that access scope is stable enough to be reviewed later is weak. The more the actor adapts at runtime, the more access control must react at runtime as well.
Practical implication: Build contextual access policies that differentiate by environment and task state, then deny reuse of the same privilege posture across all execution contexts.
Threat narrative
Attacker objective: The objective is to use agent authority to alter infrastructure, access secrets, or trigger actions at machine speed before human governance can intervene.
- Entry occurs through shared tokens, hardcoded secrets, or long-lived service accounts that let an agent operate as if it were a trusted workflow component.
- Escalation happens when the agent chains actions across tools and environments, widening its effective reach beyond the original approval scope.
- Impact follows when the agent modifies cloud resources, triggers builds, or changes secrets without sufficient governance visibility.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- Shai Hulud npm malware campaign — Shai Hulud campaign: npm malware exposed secrets on GitHub.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Agentic AI governance is an identity problem before it is an AI problem. The article describes software actors that can execute real-world actions across cloud and application systems, which makes their authority the primary security question. Once a system can plan and execute dynamically, identity, privilege, and auditability become inseparable. Practitioners should stop treating these systems as peripheral automation and start governing them as privileged actors.
Shared tokens and long-lived service accounts create identity debt for autonomous software. The article’s core operational weakness is not the existence of automation, but the reuse of credentials that cannot be cleanly attributed to one actor, one purpose, or one lifecycle. That pattern undermines audit, revocation, and ownership across NHI programmes. The implication is that governance breaks down when credential structure no longer matches actor structure.
Least privilege becomes less useful when runtime behaviour is the source of risk. The article shows that agents can move from read access to write actions, or from one environment to another, through chained execution. That means the meaningful risk unit is no longer the assigned role alone, but the agent’s effective blast radius across tools and contexts. Practitioners should judge identity risk by reachable action paths, not by role labels.
Continuous context is the named control gap that this topic exposes. Static authorisation was designed for actors whose intent and destination could be inferred at provisioning time. That assumption fails when the actor is autonomous because the next action is selected during execution, not before it. The implication is that access governance must be rethought around runtime state, not just entitlement snapshots.
Machine-speed governance is now the differentiator between visible and invisible risk. The article makes clear that alerts alone are not enough if the organisation cannot rotate, expire, decommission, or revoke agent access at the pace the agent operates. That is where NHI governance, PAM controls, and identity lifecycle discipline converge. Teams that cannot close the loop will keep discovering risk after the action has already completed.
From our research:
- The average estimated time to remediate a leaked secret is 27 days, despite 75% of organisations expressing strong confidence in their secrets management capabilities, according to The State of Secrets in AppSec.
- Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant behaviour gap, according to The State of Secrets in AppSec.
- For the governance angle behind that gap, see Ultimate Guide to NHIs for the lifecycle controls that turn discovery into enforceable identity policy.
What this signals
Ephemeral authority needs lifecycle logic, not just detection logic: when agents can create, use, and discard access within the same operational chain, review cadences alone do not close the gap. Teams should align agent onboarding, approval, rotation, and offboarding to the same control plane they use for privileged machine accounts, then measure whether revocation actually happens at task completion.
The practical signal is that agent governance will increasingly sit between IAM, PAM, and application security rather than inside any one programme. If those teams are not sharing the same inventory of credentials, environments, and action paths, the organisation will keep treating machine-speed risk as a series of disconnected findings instead of one control problem.
With 32.4% of security budgets already going to secrets management and code security in the research base, the programme question is no longer whether to invest, but where to place control ownership. Identity teams that connect agent access, secret lifecycle, and contextual authorisation will be better positioned to contain autonomous system risk before it becomes a post-incident cleanup exercise.
For practitioners
- Map every agent to a unique identity record Create a dedicated inventory for AI agents, service principals, tokens, and secrets so each actor has one owner, one purpose, and one revocation path. Eliminate shared credentials where possible, because shared access prevents clean audit and offboarding.
- Rebuild access reviews around effective blast radius Assess which cloud resources, build systems, and secret stores an agent can actually reach, not just which role it has on paper. Use environment and action-path analysis to determine whether a privilege is acceptable in dev but unsafe in prod.
- Enforce runtime context for privileged agent actions Gate sensitive actions on environment, source, and request type, then require stronger controls when an agent crosses from low-risk to high-risk workflows. Apply just-in-time elevation where the task genuinely needs it, and remove it immediately after the task completes.
- Automate credential rotation and revocation for agent accounts Tie token expiry, secret rotation, and access removal to agent lifecycle events rather than calendar-only reviews. If an agent is decommissioned, its credentials, service accounts, and downstream permissions should be removed as one controlled workflow.
Key takeaways
- Agentic AI systems are identity-bearing actors, so their governance belongs in IAM, PAM, and NHI programmes rather than in an isolated AI exception process.
- Shared credentials, long-lived tokens, and unmanaged service accounts are the practical failure modes that turn autonomous software into hidden privileged access.
- Organisations need contextual, lifecycle-aware controls that can revoke agent access at machine speed, or they will keep discovering risk after the action is complete.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST CSF 2.0 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | AGENT-01 | Agent runtime decisions and tool use create the core risk discussed here. |
| OWASP Non-Human Identity Top 10 | NHI-03 | Shared tokens and long-lived credentials are central failure modes in the article. |
| NIST CSF 2.0 | PR.AC-4 | Least privilege and contextual access decisions are central to the governance gap. |
Inventory and rotate agent credentials, then remove shared secrets from production paths.
Key terms
- Agentic AI: Software that can choose actions, call tools, and execute work with runtime autonomy rather than following a fixed script. In identity terms, it behaves like a privileged actor whose effective access must be governed by purpose, context, and revocation, not only by initial provisioning.
- Non-Human Identity: A machine or software identity used by systems, services, workloads, bots, or agents to authenticate and act. It includes secrets, tokens, certificates, and service accounts, and it becomes a governance issue when the identity is shared, unmanaged, or overprivileged across multiple execution paths.
- Effective Blast Radius: The real set of systems, data, and actions an identity can reach in practice, including chained actions and cross-environment movement. It is more useful than role names for assessing risk because it reflects what the actor can actually do, not what the policy description suggests.
- Continuous Context: An access-control approach that evaluates environment, source, behaviour, and request type at runtime instead of assuming a privilege decision made at provisioning will remain valid. For autonomous actors, this is essential because the next action can change as soon as the agent receives new input.
What's in the full article
P0 Security's full analysis covers the operational detail this post intentionally leaves for the source:
- How the article maps agentic AI behaviour to shared tokens, hardcoded secrets, and long-lived service accounts in real environments.
- Which identity and governance questions should be asked before operationalising copilots, bots, or infrastructure automation agents.
- The article's discussion of continuous context, just-in-time elevation, and access review as machine-identity controls.
- The source's framing of how agent output becomes an execution path when change control is bypassed.
Deepen your knowledge
NHI governance, agentic AI identity, and machine identity security are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
Published by the NHIMG editorial team on 2025-09-18.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org