Session and Identity Cloning Attacks Against AI Agents
How stolen sessions and cloned identities let attackers hijack AI agents.

Session and identity cloning attacks against AI agents exploit a structural mismatch. Authentication was built around people making deliberate login decisions, while agents operate continuously under long-lived credentials without re-authentication. Defending them requires controls that follow trusted identities into sessions, delegated actions, and tool arguments, supported by an inventory of non-human identities and reproducible evidence that safeguards stop attacks without breaking approved work.
Why authentication was built for humans, not agents — and what that gap enables
Traditional authentication assumes a human initiates a bounded session, completes a challenge, and receives a time-bounded token. The session ends when the person leaves. MFA, re-authentication on privilege escalation, and session timeouts are calibrated to that model. Each control assumes a point at which the system can challenge the person using the identity. MFA protects the login event, but replaying an authenticated session token bypasses that challenge because it already happened.
Agents operate outside that pattern when they run continuously, retain long-lived session tokens, and inherit the permissions of the user or service account that spawned them. No person comes back to approve each action that follows. Without a re-authentication challenge, possession of the session artifact becomes the basis for continued trust. An attacker who steals that artifact inherits an authenticated session without touching the login screen. The gap lies between proof established at login and authority exercised later, when neither the original person nor the original purpose necessarily governs the action.
How the explosion of non-human identities expanded the attack surface agents expose
Agent deployment has expanded an inventory of non-human identities, including API keys, service accounts, and digital certificates, faster than organizations have extended human-account governance to them. These identities lack the ordinary human feedback loop. They are not tied to someone who logs out, reviews access notifications, or responds to anomaly alerts. Orphaned service accounts and over-permissioned legacy integrations therefore become lateral access routes precisely because nobody is watching them. The weakness is not their existence but the absence of accountable oversight.
Okta’s 2026 identity threat analysis predicts that non-human identities will outnumber human identities in many enterprise environments before the end of 2027. Practices that seemed acceptable in early 2025 appeared inadequate by mid-2026 as agent deployment accelerated. Moreover, an inventory of stored credentials captures only part of the exposure, because agentic systems also expand their attack surface at runtime. Tool calls, memory writes, and inter-agent messages create points where identity or session context can be forged, replayed, or hijacked. Governance has to account for those workflows and the credentials that start them.
The identity-chained attack: how adversaries move from a human account to an agent with system-level access
Anthropic’s September 2026 misuse report describes one operator cluster escalating a single stolen developer token to full administrative control of a victim’s cloud environment in roughly three hours. The sequence explains why isolated account reviews are insufficient. An attacker first compromises a human identity, then uses its access to reach a service account with broader permissions. That account provides the next pivot into an AI agent or automated workflow with system-level access. Each step exploits a trust relationship established by the previous one.
Okta’s analysis calls this identity-chained attack the leading new threat pattern of 2025–2026. AI accelerates the chain without requiring a new technique. Attackers use it to sort stolen-credential inventories, identify valuable active sessions, replay them faster, mimic normal behavior, and automate privilege discovery. Anthropic’s eight-month threat intelligence review also identifies fraudulent resellers, evaluation-sandbox compromises, and mass scraping of exposed API keys as ways criminals farm non-human identities for access, compute, and cover. Single sign-on compounds that exposure because a compromised federated identity propagates access across relying applications. The initial compromise need not target the agent directly when an existing trust relationship already provides a route to it.
Session-level cloning: how stolen tokens bypass authentication without touching credentials
Session cloning targets the artifact that proves authentication already occurred using a password. No broken encryption is required for that replay. The stolen token or cookie grants the access of the legitimate session for as long as it remains valid. Because continuously running agents do not log out, natural session termination does not remove that access. Revocation requires explicit action, which most organizations do not take on automated accounts.
Session forgery also appears at protocol and gateway boundaries. CVE-2026-96620 affects the Claude Agent SDK when an application passes untrusted input as the session ID through the resume option. A crafted value is interpreted as a CLI flag, allowing injection of an --mcp-config MCP server definition and arbitrary command execution outside SDK permissions. This is a distinct mechanism from token replay. It shows how a value presented as session context can cross into execution authority.
IBM’s security bulletin describes a related boundary failure in the ContextForge MCP Gateway cluster, published November 13, 2026. CVE-2026-110279, with CVSS 8.1, allowed a client-supplied header to replace the gateway-managed upstream credential, bypassing per-user permissions and audit attribution. CVE-2026-110278, with CVSS 7.4, covers identity claim replay. A successful login does not protect that identity from substitution or replay later in the request path.
Indirect prompt injection as an identity takeover mechanism
Indirect prompt injection reaches trusted authority without stealing its credentials. An attacker places instructions in content the agent processes, such as a document, web page, email, or product listing. If the agent executes those instructions, it uses the permissions it already holds. The identity layer need not be attacked directly.
EchoLeak, CVE-2025-32711, demonstrated zero-click exfiltration from Microsoft 365 Copilot through four chained bypasses. It evaded the Cross Prompt Injection Attempt classifier, circumvented link redaction through reference-style Markdown, exploited auto-fetched images, and abused a Microsoft Teams proxy permitted by the content security policy. CVE-2026-24307, Reprompt, enabled single-click data exfiltration from Microsoft Copilot Personal through URL parameter injection, with zero user-entered prompts.
The Drift AI supply chain hijack showed how one successful injection could propagate through a single agent, compromising more than 700 organizations. Security-review roles are not exempt from this mechanism. The December 2025 AI ad review bypass put injection payloads in product listings sent to an AI-based ad moderation system. Session cloning and indirect prompt injection therefore reach the same outcome through different entrances, namely unauthorized action under a trusted identity. Synthetic identity attacks extend that problem to the signals used to establish trust in the first place.
Deepfake and synthetic identity attacks targeting agent trust chains
The FBI’s FaceStealer operation, documented November 12, 2026, exposed a campaign in which state-linked actors stole more than $400 million in cryptocurrency over roughly 18 months. The actors used prerecorded webcam video of earlier victims and deepfake participants in fake Zoom or Teams meetings. Those meetings pushed a social-engineering payload that installed malware. Each new victim seeded the next round of impersonation. The FBI seized more than 900 victim webcam recordings and the campaign’s cloud infrastructure.
The decisive failure was a transfer of trust. A hijacked contact account lent credibility to a meeting whose participants were recorded or synthetic. Voice, video, and behavioral signals can therefore become false evidence of the identity a credential was meant to verify. Autonomous agents face a parallel problem when they accept instructions from other agents, because standard authentication does not establish that an authenticated instructing agent remains uncompromised. Okta’s analysis notes that partners, vendors, and SaaS platforms already deploy agents that interact with enterprise systems, blurring organizational boundaries. Authentication can identify a participant without establishing that the instruction it supplies deserves the authority requested.
Why argument-level provenance enforcement is the technical response these attacks demand
Tool-level permission checks can miss malicious actions taken under an authorized identity. An agent may legitimately hold a session and permission to call an API while passing arguments determined by an attacker. The tool is allowed, but its contents are not. Indirect prompt injection becomes dangerous when untrusted content in the agent’s context sets an authority-bearing argument. Enforcement must therefore examine where those argument values came from alongside whether the identity may use the tool.
PACT, Provenance-Aware Capability Contracts, is a runtime monitor that enforces checks at that boundary. It uses semantic roles for tool arguments and fine-grained provenance tracking to stop injected instructions before they reach tool calls. Agent-Sentry uses execution provenance graphs to record where tool-call argument values came from so that source-aware enforcement can check them. Both approaches make the source of an argument relevant to authorization. That distinction allows enforcement to separate values derived from trusted context from those derived from untrusted content the agent processed.
This approach has costs and does not close every gap. Fine-grained provenance increases storage cost, logging complexity, privacy exposure, and annotation burden. Coarser tracking may miss the exact argument that crossed a trust boundary. Teams should state that limitation explicitly rather than present provenance as a solved problem or a replacement for identity governance.
What organizations must govern before they can enforce: auditing the NHI inventory
Organizations must begin by inventorying non-human identities and the access each holds. Okta’s analysis calls for that audit now. The audit must cover agent workflows as well as static service accounts. Otherwise, it cannot show how an identity’s permissions enter tool calls or pass through delegated work. Orphaned service accounts and over-permissioned legacy integrations need review because they stay in place with no one responsible for checking them and give attackers a way into identity-chained attacks.
With that inventory established, organizations should reduce credential scope and lifetime. Short-lived, cryptographically bound tokens with strict scope constraints limit what a compromised agent can do. These limits still leave room for takeovers. Organizations should then bring AI agents and service accounts into access reviews so that their permissions get checked alongside those of people. Organizations should also stress-test SSO trust relationships by reviewing every federated application and asking whether its trust relationship remains warranted and appropriately scoped. This sequence connects governance to enforcement by identifying the identities involved, restricting their authority, and reviewing the relationships through which that authority spreads.
Why security changes to agent systems must be proven, minimal, and reproducible — not debated
The attacks on record show why decisions on agent security need more than opinions about risk. The attack must be demonstrated, the safeguard must be the smallest change that stops it, and approved workflows must still pass. EchoLeak and the ContextForge vulnerabilities provide specific mechanisms against which safeguards can be evaluated. FaceStealer and the Drift hijack also show why the evaluation cannot stop at the login boundary.
Minimal safeguards are necessary because overly broad controls can break approved workflows and create pressure to disable protection entirely. Heavy runtime monitors can push teams toward shadow AI or unmonitored workarounds. Every security change should therefore produce a reproducible record of the demonstrated attack, the safeguard applied, and the approved workflows re-verified. That record gives a release approver something to sign and an auditor something to inspect.
Okta’s analysis says EU AI Act enforcement, SEC cybersecurity disclosure requirements, and emerging US federal AI governance standards call for identity governance for autonomous systems that auditors can check. A passed scan cannot establish complete coverage. The record must spell out blind spots in NHI governance, argument-level provenance, and cross-organizational agent trust. Anthropic’s report concludes that the disrupted operations depended on established techniques, with AI changing their economics while the attacks themselves remained unchanged. The appropriate response is an evidence standard that makes each safeguard testable, keeps its effect bounded, and records both what it stops and what remains unproven.


