TL;DR: AI can dynamically compose actions across live data, and Delinea’s October 2025 analysis shows that orphaned agents, exposed session tokens, and overly broad access create breach and compliance risk when authorization is reduced to a single gate. The real issue is that identity programmes still assume access is stable, reviewable, and human-paced.
At a glance
What this is: This is an analysis of why AI agent behaviour and live-data access break gate-based authorization models, with examples ranging from exposed session tokens to orphaned agents.
Why it matters: It matters because IAM, PAM, and NHI teams need controls that govern what an identity can do inside a session, not just whether it can enter one.
👉 Read Delinea's analysis of AI guardrails, session tokens, and orphaned agents
Context
AI agent identity risk is increasingly about what happens after access is granted, not just whether authentication succeeds. When an AI system can compose actions dynamically, traditional authorization assumptions start to fail because the identity may chain tools, pull live data, or continue operating without clear human oversight.
For IAM, NHI, and PAM programmes, the problem is not abstract. The article’s examples show why controls built for fixed request-response patterns struggle when an agent behaves more like an active runtime executor than a static workload or human user.
Key questions
Q: How should security teams govern AI agents that can chain actions across live systems?
A: Teams should govern AI agents as runtime actors, not as static accounts with a one-time approval. The control model needs to evaluate intent, asset sensitivity, and action scope inside the session. That means pairing access approval with ongoing authorization checks, clear ownership, and fast revocation when behaviour exceeds the approved task.
Q: Why do AI agents complicate least privilege in IAM programmes?
A: AI agents complicate least privilege because their exact action path is often not knowable before execution begins. Human and workload models assume privilege can be defined up front, but agents may choose tools and sequence actions dynamically. That makes least privilege a moving target unless the programme can constrain runtime behaviour.
Q: What breaks when session tokens are exposed in AI workflows?
A: When session tokens are exposed, an attacker can replay the token and inherit the authenticated session without defeating login controls again. In AI workflows, that is especially dangerous because one token may unlock multiple connected systems or privileged commands. The failure mode is direct impersonation through bearer credential reuse.
Q: Who is accountable when an orphaned AI agent keeps accessing live data?
A: Accountability should sit with the business or technical owner who approved the agent’s purpose and access scope, not with the team that last touched the code. If no owner exists, the identity is already out of governance. Organisations should require a retirement trigger, recertification point, and escalation path for every live agent.
Technical breakdown
Why gate-based authorization fails for AI agent identities
Traditional authorization gates answer a simple question: should this identity be allowed in? That model works when the actor’s purpose, action path, and timing are predictable. AI agents change the problem because they can compose actions at runtime, switch between tools, and keep moving after the initial check. In practice, the control point shifts from entry to behaviour within the session. That means authorization has to reason about intent, asset sensitivity, and action sequence, not just identity and entitlement. If the programme only evaluates the door, it misses the chain of decisions happening after the door opens.
Practical implication: move policy enforcement from one-time access checks to session-level authorization for AI agent activity.
Unhashed session tokens and the real risk of session takeover
A session token is a bearer credential: whoever holds it can act as the authenticated user until the token expires or is revoked. If tokens are unhashed or exposed in a backup, the attacker does not need to break authentication again. They inherit the session state directly, which can bypass MFA and normal login protections. This is why token hygiene is not a small implementation detail. In AI pipelines, token exposure can be amplified because agents and surrounding automation often touch multiple systems, creating a larger blast radius once a token is stolen or replayed.
Practical implication: inventory where session tokens are created, stored, and replayed, then treat any exposed token as an active compromise.
Orphaned AI agents and the governance gap in live environments
An orphaned AI agent is a live identity that continues operating after the team that created it has moved on. That is a lifecycle failure, not just an operational nuisance. The issue is persistence without ownership, which means no one is actively reviewing the agent’s data access, command scope, or business purpose. When an AI agent keeps pulling live data in dev or test, the environment becomes a hidden trust zone. The security problem is not only over-permissioning. It is the absence of a clear owner, retirement trigger, and recertification process for an identity that still has runtime reach.
Practical implication: put AI agents into the same ownership, review, and offboarding discipline you apply to other non-human identities.
Threat narrative
Attacker objective: The objective is to take over active sessions or AI-driven access paths and use that reach to access sensitive data or perform unauthorized actions without triggering normal login controls.
- Entry occurs when an attacker or misuse path reaches an exposed credential, such as an unhashed session token or a live AI-connected identity. Escalation happens when that credential is replayed inside an active session, allowing the actor to inherit authenticated state and continue as the legitimate user or agent. Impact follows when the compromised identity can touch sensitive data, alter systems, or chain additional actions across connected services.
Breaches seen in the wild
- Moltbook AI agent keys breach — Moltbook breach exposed 1.5M AI agent keys.
- Salesloft OAuth token breach — hackers stole OAuth tokens to access Salesforce data via Salesloft.
Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.
NHI Mgmt Group analysis
Gate-based authorization is too narrow for AI agents that compose actions at runtime. The article shows that the decisive risk is not simply whether an AI system is authenticated, but whether it can chain decisions after entry without a new control point. That pattern sits squarely in the gap between IAM entry checks and privileged session behaviour. Practitioners should treat AI agents as session actors, not just logged-in entities, because the attack surface is created by action chaining rather than login alone.
Unhashed session tokens are a bearer-credential failure, not a minor storage flaw. Once a token is exposed, the attacker inherits the session and bypasses the front door entirely. This is the same class of problem that makes secrets governance a core identity issue rather than a storage issue. For AI-enabled environments, token exposure can turn a single leaked artifact into broad impersonation and lateral reach, which means the control failure is rooted in credential portability.
Orphaned AI agents expose a lifecycle assumption that was designed for stable ownership. That assumption fails when the actor continues operating after the team that deployed it has moved on, because there is no reliable owner to recertify, retire, or constrain it. The implication is not just more oversight. It is a need to rethink how lifecycle governance works when the identity itself remains live while accountability disappears.
AI security programmes need intent-aware session governance, not just access approval. The article’s four-question model, intention, necessity, risk, and asset criticality, shows why static approval logic is not enough once runtime behaviour changes. Identity governance has to absorb behavioural context that was historically left to the application layer. Practitioners should align PAM, NHI governance, and AI oversight around what the identity can do after access begins.
Dynamic AI behaviour collapses the assumption that authorization can be fully determined up front. Least privilege was designed for access that can be predicted before execution begins. That assumption fails when the actor can decide mid-session which tools to call and which actions to chain. The implication is that governance teams must stop treating privilege as a fixed provisioning outcome and start treating it as a moving runtime condition.
From our research:
- Two-thirds of enterprises have endured a successful cyberattack resulting from compromised non-human identities, with a quarter encountering multiple attacks, according to The 2024 ESG Report: Managing Non-Human Identities.
- 72% of organisations have experienced or suspect they have experienced a breach of non-human identities, with 46% confirmed and 26% suspected.
- The broader pattern is reinforced in 52 NHI Breaches Analysis, which tracks how identity compromise repeatedly becomes a business-impact event.
What this signals
Orphaned agent governance is now a lifecycle problem, not just an AI operations problem. Once an agent can keep pulling live data after the original team has moved on, standard access review cadences become unreliable because the identity remains active while ownership fades. Teams should expect more pressure to prove who owns each agent, when it was last recertified, and what condition retires it.
The practical shift is toward session-level evidence and tighter entitlement scope. If a program cannot show what an AI agent did inside the session, then approval records alone will not be enough to support audit or incident review, especially where privileged data or commands are involved.
Identity blast radius: the reach an AI agent or token has after compromise is becoming the better measure of risk than login success alone. That makes NHI governance, PAM, and authorization policy converge around the same question: what can this identity actually do once it is inside?
For practitioners
- Map AI agent runtime reach Inventory which live data sources, command paths, and privileged actions each AI agent can touch after authentication. Classify the identity by session reach, not just by account type, and remove access that is not necessary for the agent’s current task.
- Treat exposed session tokens as active compromise Assume replay risk whenever unhashed tokens, backups, or logs expose bearer credentials. Revoke and replace affected tokens, then trace which systems accepted the token before containment completed.
- Add lifecycle ownership to every AI agent Assign a named owner, review cadence, and retirement trigger for each agent that can pull live data or make decisions. Put orphan detection into environment reviews so abandoned agents do not remain active by default.
- Move from gates to session controls Use policy checks that evaluate intent, risk, and asset criticality inside the session. Tie privileged action approval to the current context of the agent instead of relying on a one-time access grant.
- Separate development convenience from production trust Block AI agents in dev and test from inheriting broad live-data permissions. Where those environments must reach production systems, constrain the scope to narrowly defined read paths and monitor those sessions separately.
Key takeaways
- AI agents break gate-only authorization models because their real risk emerges after entry, when they can chain actions and touch live data.
- Exposed session tokens and orphaned agents show that the most damaging failures are lifecycle and session-governance failures, not just authentication gaps.
- Practitioners need ownership, recertification, and session-level policy for AI identities if they want to keep innovation from outrunning control.
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 | AI agents dynamically chain actions and need runtime governance. | |
| OWASP Non-Human Identity Top 10 | NHI-03 | Token exposure and orphaned agents are classic NHI lifecycle failures. |
| NIST CSF 2.0 | PR.AA-1 | Identity proofing and access governance underpin AI session control. |
Define agent action boundaries and enforce approval-aware controls for every privileged tool call.
Key terms
- AI agent identity: An AI agent identity is the account, token, or credential set that allows an autonomous or semi-autonomous system to access tools, data, and services. The governance challenge is not only proving who or what is connected, but controlling what the agent can do after access begins.
- Session token: A session token is a bearer credential that represents an authenticated session and can be used to continue that session without repeating login steps. In identity security, exposure of a token is often equivalent to exposure of the session itself, because possession can be enough to act as the user or workload.
- Orphaned identity: An orphaned identity is a live account or credential that no longer has an active owner, business purpose, or clear retirement path. For AI and NHI programmes, orphaned identities are especially risky because they can remain operational long after the team that created them has stopped monitoring them.
- Session-level authorization: Session-level authorization is the practice of evaluating what an identity may do while it is active, not only whether it may enter. For AI agents and privileged workflows, this means re-checking intent, risk, and asset sensitivity as actions unfold, rather than relying on a one-time access decision.
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.
This post draws on content published by Delinea: It’s guardrails, not gates, that balance AI innovation and security. Read the original.
Published by the NHIMG editorial team on 2025-10-23.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org