Non-Human Identity Risks in AI Agent Deployments
Agents hold broad, standing access that old identity rules miss.

Non-human identities already outnumber human users by 45 to 1 across the average enterprise, and by as much as 144 to 1 in cloud-native shops, a CSA whitepaper found. That baseline was set by service accounts, API keys, and OAuth tokens long before AI agents showed up. Now agents are stacking on top of it, and they don't behave like anything that baseline was built to handle. A service account does one job, the same way, every time. An agent reasons about what it needs, asks for more when it wants it, and sometimes spins up other agents to help. Governing the two with the same rulebook is like using a lug wrench to defuse a bomb: technically a tool, but the wrong job.
Why governance hasn't kept pace with the ungoverned agent population's growth
Start with the gap, because it's the whole story: AI agents are running inside 91% of organizations, but only 10% have a formal strategy for managing non-human identities, Okta's 2026 research found. That's nine out of ten companies letting a new class of autonomous actor into the network without a plan for who owns it, what it can touch, or when it gets shut off.
The scale isn't abstract, either. According to a CSA whitepaper, Copilot Studio users have built more than one million agents between them. Salesforce booked something like $440 million in agentic AI revenue in 2025. This is deployed, revenue-generating infrastructure, not a pilot program sitting in a sandbox somewhere.
Delinea's 2026 research puts a number on it that is visible in the survey responses themselves: 87% of organizations say their identity security posture is ready for this. Of that same group, 46% admit their AI identity governance is deficient. Read that twice. Nearly half the people who just told you they're prepared also told you they're not. That's not a data quality problem, that's confidence outrunning capability.
Three things keep the gap open, and none of them are mysterious. Speed pressure is the big one: 90% of organizations say security teams are being pushed to loosen access controls so AI automation doesn't slow down, and fewer than one in three actually enforce security requirements when they conflict with the business wanting to move fast. Visibility is the second problem. 82% of organizations say they're confident they can find every NHI touching production, but that confidence isn't backed by systematic validation, which means it's mostly vibes. And lifecycle management, the unglamorous stuff, gets skipped entirely: 47% of NHIs go unchanged for over a year, 51% of organizations have no clear owner for AI identities, and 16% aren't even tracking new AI credentials as they're created (CSA, 2026).
A business decision, made in plain sight, causes all three. 74% of organizations say standing access for agents is necessary just to hit uptime targets, and 59% say they don't have a workable alternative. So teams take the risk on purpose, because the alternative is missing a deadline. Teams take the risk on purpose, because the alternative is missing a deadline, and that's a trade nobody wants to put in writing. That's a trade nobody wants to put in writing.
The specific privileges AI agents accumulate beyond what any service account was designed to hold
A single agent might hold live credentials for the CRM, the email system, cloud infrastructure, and a payment platform, all at once, and that's not some worst-case misconfiguration. That's the design spec. An agent doing a multi-step task, say, "close this deal and send the invoice," needs to touch all four systems in one pass, so it gets keys to all four up front.
Nobody plans permission sprawl. It just accrues, the way clutter accrues in a garage: nobody sets out to overprovision an agent, they just don't want it to fail halfway through a task, so they grant it more than it needs and move on. Multiplying that across every agent deployed and across a few quarters of "we'll clean it up later" causes access to pile up across cloud infrastructure, APIs, SaaS tools, and sensitive databases with nobody reviewing any of it.
CSA's 2026 research puts numbers on the mess. More than half of AI agents touch sensitive data. 90% run with more permission than the task requires. Some agents carry up to ten times the access they actually need, operating at a scale and autonomy no human user was designed to match. Eighty percent of organizations say they've caught an agent doing something it wasn't supposed to, including accessing systems or data outside its intended scope.
That's why blast radius, not breach probability, is the right way to think about this. A stolen service account key gets an attacker into one system. A compromised agent with broad delegation can call tools, rewrite infrastructure, execute code, and hop across a dozen systems in the time it takes a human to notice something's wrong. The credential isn't a passive key anymore, it's the working identity of an actor that can act on its own.
And when there's no named owner for an NHI, none of this gets caught. Nobody's watching for privilege creep, nobody's signing off on access reviews, nobody's on the hook when the agent does something outside its lane. Ownership is the only thing standing between an overprovisioned agent and a very bad week here. It's the only thing standing between an overprovisioned agent and a very bad week.

How attackers exploit NHI governance gaps in agentic systems
The target moved. Early on, attackers went after model outputs, trying to get a chatbot to say something harmful or leak data through a chat window. In agentic systems, the target is the agent's control itself, because the agent's own legitimate permissions are the payload. Steer the agent, and its access does the work for you. CSA calls this goal hijacking, and it's the headline entry in the OWASP Top 10 for Agentic Applications 2026, a list that exists specifically because the field decided agentic risk needed its own taxonomy, separate from prior LLM risk categories. The list covers ten agent-specific risk categories, including goal hijacking and related attack surfaces.
Goal hijacking works by injecting malicious instructions into the task context the agent already trusts, not the prompt the user typed. That's the trick: the filters built to catch bad user input never see it, because the attack doesn't come through the front door.
Credential leakage is its own category, and it's already produced real incidents. In August 2024, researchers at PromptArmor documented an injected prompt causing Slack AI to echo private channel tokens back to an attacker, no hacking required beyond getting the right words in front of the model. Fast forward to 2026: the Moltbook agent platform leaked more than a million API authentication tokens, including plaintext OpenAI keys exposed in agent-to-agent chat messages. Separately, an indirect prompt injection against Cursor exploited a missing user-confirmation step for new workspace settings, letting the agent create a malicious .cursor/mcp.json config file with no approval, which an attacker then used to get remote code execution. CSA also lists the OpenClaw incident among confirmed cases of NHI governance failure in the wild.
The downstream scenarios get uglier depending on which agent gets hit. A compromised SOC agent doesn't need to leak anything, it can just quietly edit or delete log entries, which makes an intrusion invisible after the fact. A compromised DevOps agent can slip a malicious dependency into a build pipeline, and the contamination rides along into everything built downstream from that point. CSA's MAESTRO framework exists as supplementary threat modeling for multi-agent environments specifically because single-agent threat models don't capture chains like this.
IBM's 2025 Cost of a Data Breach report closes the loop with a number that should stop anyone mid-sentence: 97% of organizations that suffered an AI-related security breach had no proper AI access controls in place. Not weak controls. None.
Shadow AI as a parallel NHI surface that formal agent programs miss entirely
Every formal governance conversation above assumes the agents in question got approved by somebody. Plenty didn't. Shadow AI is what happens when an employee wires up an agent or an integration without asking security first, and each one of those deployments mints credentials that live in a developer's own environment, outside the corporate secrets manager, never inventoried, never rotated.
The scale of it: employee use of unapproved AI tools tripled to affect 45% of the workforce, Verizon's 2026 DBIR found. That's the part anyone can see. Whatever's still undiscovered is bigger. Delinea's 2026 numbers back that up from another angle: 53% of organizations say they regularly run into unauthorized AI tools and agents touching company systems, agents that were never part of any governance conversation to begin with.
Shadow AI is a harder problem than old-fashioned shadow IT, and the difference is behavior. A rogue SaaS subscription somebody expensed without approval has a fixed, predictable credential footprint: one login, one API key, done. A rogue agent can go request new permissions on its own, spin up a sub-agent to help with a task, and end up touching systems its own operator never thought to mention when they set it up.
The credentials behind shadow agents also tend to be long-lived, because nobody's around to rotate them. Delinea's 2026 data shows organizations are more than twice as likely to lean on long-lived credentials (34%) as they are to use just-in-time authorization (16%), and shadow deployments sit at the worst end of that spread: no named owner, exempt from any rotation policy, invisible to whatever audit telemetry security is watching. Governance can't start with policy here. It has to start with discovery, an automated way to map every machine identity across cloud and hybrid environments in real time, because policy written against an incomplete map is just policy for the agents you already know about.
Prompt injection as an identity risk in agentic deployments
Prompt injection used to be a curiosity, the kind of thing security researchers demoed at conferences to get a laugh. Between 2024 and 2026 it became a confirmed enterprise risk, with documented findings against Slack AI, Microsoft 365 Copilot, Cursor, GitHub MCP, and various AI coding assistants. Prompt injection has moved from conference demo to documented enterprise threat, with confirmed findings against major platforms accumulating rapidly through 2025 and into 2026.
OWASP's LLM07:2025 entry on system prompt leakage names the real risk: the API keys, credentials, connection strings, and authorization logic that teams carelessly stuff into system prompts because it was the easy place to put them. It's the API keys, credentials, connection strings, and authorization logic that teams carelessly stuff into system prompts because it was the easy place to put them. The fix is a design principle, not a patch: authorization has to be enforced by something deterministic sitting outside the model, because the model was never built to be a security boundary.
That's the pivot from model risk to identity risk. An injected instruction doesn't need the agent's credentials, because it executes with the agent's full delegated authority already attached. The attacker isn't stealing a key, they're getting the agent to use its own key on their behalf.
Regulation is starting to catch up to the stakes. ISO 42001, the AI management systems standard, requires organizations to assess and treat AI-specific risks through its general risk framework, though it stops short of naming specific attack vectors like prompt injection. It stops short of naming specific technical controls, but certification requires proof of active controls in place, not a policy document sitting in a drawer. That moves prompt injection out of the security team's inbox and into the compliance officer's, too.
Detecting any of this means watching the right layer. Reading prompt text after the fact tells you little. What actually signals trouble is runtime behavior: the sequence of tool and function calls an agent makes, how many records it touches per session, and what identity and effective authority it's carrying as it moves across connected systems. A broadly consistent principle across security guidance points toward incremental adoption with human review at every consequential decision point, which is a reasonable way to build the muscle before handing an agent the car keys.
MCP adoption and the expansion of the governed and ungoverned tool-call surface
The Model Context Protocol went from a niche standard to the enterprise default in under two years, with Anthropic, OpenAI, Google, and Microsoft all building support for it, and governance now sitting under the Linux Foundation's Agentic AI Foundation. What MCP does well is what makes it a governance headache: it lets one agent reach dozens of systems through a single, standardized way of calling tools. Convenience and risk are the same feature here, which is a strange thing to say about a protocol but true nonetheless.
The protocol's own 2026 roadmap admits where the holes are. Audit trails, SSO-integrated authentication, and gateway behavior are all flagged as core enterprise gaps the protocol hasn't solved yet on its own. That's not a criticism from the outside; that's the maintainers saying it themselves.
CSA's DevOps example shows the failure mode directly: a compromised MCP server injects a malicious dependency into a build process, and the agent pulls it in without question because it trusts the source by default. The bad component rides downstream into everything built after it, the same contamination pattern seen in the goal-hijacking cases above, just entering through a different door.
Without something sitting between the agent and the MCP server enforcing rules, every one of those connections is a potential gap: credentials scattered wherever each integration happens to store them, tool access unscoped, no single place logging what happened. That's the argument for a dedicated control layer sitting in between, and it's why that layer has stopped being optional infrastructure and started being table stakes.
What a governed identity architecture for AI agents requires
None of the fixes work alone. Architectural prevention, runtime detection, and governance have to operate together, because each one covers a blind spot the other two leave open. Skipping one leaves the other two as just theater.
The protocol stack settling into place in 2026 looks fairly consistent across vendors: OAuth 2.1 with PKCE handling browser-based agents, JWT bearer assertions covering service-to-service calls, MCP standardizing tool invocation, and signed agent identity tokens that carry the full delegation chain end to end, so a request can always be traced back to which agent, acting for which user, at what scope.
One approach built on RFC 8693 token exchange is ID-JAG. An agent takes the ID token its identity provider issued, trades it for a short-lived assertion scoped narrowly to one downstream resource, then redeems that assertion at the resource's own authorization server under RFC 7523. The identity provider brokers the exchange, but the resource server keeps independent control over its own tokens the whole time. The IETF draft describing this hit revision 04 in May 2026, so it's still moving, but the direction is clear.
The end goal is zero standing privilege: credentials provisioned just in time, scoped to a single action, gone when the action's done. Right now the industry is nowhere close, given Delinea's finding that organizations are more than twice as likely to lean on long-lived credentials than just-in-time ones. That gap between where things stand and where they need to land is the whole ballgame.
An MCP gateway makes enforcement real, sitting between agents and MCP servers to centralize tool discovery, authentication, access policy, and logging in one place instead of scattered across every integration. The distinction that matters: a control plane enforces policy while the action is happening, a monitoring dashboard just tells you about it afterward, usually too late to matter.
Identity providers need to cover the full agent lifecycle for any of this to hold together, meaning single-action deactivation when something goes wrong, tool-call and authorization logs streamed straight to SIEM, and federation with existing identity providers over OIDC and SAML, so human employees and AI agents live under the same governance instead of two separate systems that never talk to each other. Okta's offering for AI agents, which reached general availability on April 30, 2026, is built around exactly that model: federation with any identity provider via OIDC and SAML, single-action deactivation, logged tool calls and authorization decisions for audit purposes, and integrations spanning Salesforce Agentforce, ServiceNow's AI Platform, DataRobot, Boomi, Glean, Google Vertex AI, and Workday. Okta's acquisition of a security detection vendor, reported by TechCrunch, points toward folding detection tailored to non-human identities directly into that identity layer rather than treating it as a bolt-on.
The pattern across all of it is the same. Agents are autonomous actors holding delegated human authority, and the identity architecture wrapping them needs to assume they'll do something nobody explicitly told them to do, because eventually, one... They're autonomous actors holding delegated human authority, and the identity architecture wrapping them needs to assume they'll do something nobody explicitly told them to do, because eventually, one will.


