AI Agents as Non-Human Identities: Why Autonomy Changes the Governance Problem
The Question That Matters
Most identity programs got good at NHI governance the hard way, over years of inventorying service accounts, chasing down ownership, and closing the gap between what an automated identity was granted and what it actually turned out to need. That work rested on an assumption nobody had to state out loud, because it had always just been true: an NHI’s behavior was fixed by its code. Review its permissions once and you had a description of what it would do that stayed accurate for years.
AI agents quietly break that assumption, and I don’t think most identity teams have fully clocked what breaks along with it.
The question worth asking isn’t “are AI agents identities.” That’s almost too easy to answer. The harder version is this:
When an AI agent can authenticate, access data, invoke tools, make decisions, and take actions autonomously, should we treat that agent as a non-human identity, and what does actually governing it require?
Not every agent clears that bar, and pretending otherwise does more harm than good. It depends on where a given system sits on a spectrum: AI model, AI application, AI agent, autonomous agent, agent with enterprise access, agent as a fully identity-bearing actor. Somewhere along that line, the risk stops being about what the AI says and starts being about what it does, and that’s the point where the security conversation has to change too.
AI Model
|
v
AI Application
|
v
AI Agent
|
v
Autonomous Agent
|
v
Agent with Enterprise Access
|
v
Agent as an Identity-Bearing Actor
A model that generates a paragraph of text is an application security concern: prompt injection, data leakage in the response, hallucinated content. Something that can authenticate to a system, call an API, modify a record, create or delete a resource, send a communication, execute a multi-step workflow, or delegate work to another agent, without a human approving each individual step, has crossed into identity and access territory. Capability plus authority creates an identity problem, and the rest of this piece is about working through what that actually means in practice.
Defining Non-Human Identity in the Age of Agents
Non-human identity has never been a narrow category. It already covers service accounts, application identities, workload identities, machine identities, service principals, managed identities, API identities, bots, automation accounts, and CI/CD pipeline identities. What unifies all of these is not the technology underneath them. It’s that each one authenticates and acts without a human present at the keyboard for that specific action.
An AI agent fits that unifying definition when it holds or uses credentials to interact with enterprise resources on its own initiative. But the article’s position here is deliberately narrower than “every AI agent is automatically an NHI.” That claim is too broad to be useful, and it invites exactly the kind of governance fatigue that makes real risks harder to see.
The distinction that matters is between AI as software and AI as an identity-bearing actor. A retrieval-augmented chatbot that answers questions from a knowledge base, with no ability to act on anything, is software with an attack surface, not an identity problem. An agent that authenticates to a ticketing system, a database, or a cloud control plane, and takes actions there under its own authorization, is an identity-bearing actor, and belongs in the same governance conversation as every other NHI, adapted for what’s actually different about it.
The Concept of Agent Identity
Once an agent crosses into identity-bearing territory, it needs an identity architecture of its own, not a generic service account wrapped around a model. That architecture has to answer questions traditional NHI provisioning rarely had to ask with this much precision:
Does every agent need its own identity, or can identity be shared across instances of the same agent definition?
Should the identity be persistent across the agent’s lifetime, or ephemeral, issued fresh for each task or session?
How is the agent uniquely identified, separate from the underlying model and separate from the platform running it?
How does the agent authenticate, and how are its credentials issued, scoped, and rotated?
How is the agent’s lifecycle managed from provisioning through retirement?
How do you distinguish one running instance of an agent from another, when the same agent definition might be spun up dozens of times concurrently?
Treating an agent as a generic service account answers none of these well. A service account’s identity is usually static and singular. An agent’s identity may need to be instance-scoped, session-scoped, or task-scoped, and the platform has to be built to support that granularity from the start rather than retrofitting it once the first incident makes the gap obvious.
The field has already flagged part of this pattern. The Cloud Security Alliance’s guidance on agentic identity management notes that agents commonly bootstrap a session under a human identity and are expected to transition to a dedicated non-human identity before performing actual system operations such as database queries or API calls (Cloud Security Alliance, 2025). The failure mode worth watching for is the transition never happening, an agent that starts under a borrowed human identity for convenience and simply continues operating under it indefinitely.
Human Identity vs. Agent Identity
Most current deployments get sloppy right here, because the fast way to build something and the correct way to build something diverge exactly at this point.
The simplest path looks like this: a human initiates a request, the agent authenticates and picks up authority somehow, and it goes and touches enterprise resources. Most of what’s running in production today is built on that simplest path, and the word “somehow” is doing a lot of quiet work, because it usually means the agent is running under the human’s own token. Make that step explicit and the architecture actually looks more like a chain:
Human Identity
|
| Delegates / Requests
v
Agent Identity
|
| Invokes
v
Tool / Workload Identity
|
| Accesses
v
Enterprise Resource
Each arrow in that chain is a different concept, and conflating them is where governance breaks down. Authentication proves who or what is making a request. Authorization determines what that verified party may do. Delegation is a human or system explicitly granting a scoped subset of its authority to another actor for a defined purpose. Impersonation is one actor acting as if it were another, typically without the second actor’s active participation in that specific action. “Acting on behalf of” is a broader, often looser framing that gets used to justify all of the above without specifying which one is actually happening.
The critical question an architecture has to answer explicitly: should an AI agent inherit the full permissions of the human who initiated the task? In most implementations today, the honest answer is yes, because it’s the path of least resistance, achieved by handing the agent the user’s own token or session. That path collapses delegation into impersonation and creates a governance and audit problem that compounds with every agent built the same way. A human’s full permission set was scoped for a human doing many different things over a career. An agent performing one narrow task should hold a permission set scoped to that task, not inherited wholesale from whoever happened to invoke it.
Agent Authority Is Not the Same as Agent Identity
Identity answers who is acting. Authority answers what that actor is allowed to do. An agent can have a perfectly well-provisioned, well-owned, properly authenticated identity and still carry inappropriate authority, and this distinction deserves to be a first-class concept in agent architecture rather than folded silently into “permissions.”
Authority, properly scoped, is built from several dimensions working together, not from a single access grant:
Dimension What it constrains Least privilege The minimum set of actions needed for the agent’s defined purpose Scoped permissions Access limited to specific resources, not entire systems or environments Time-bound access Authority that expires rather than persisting indefinitely Resource-bound access Access limited to named resources rather than resource classes Action-bound permissions Specific operations allowed (read, not write; draft, not send) Transaction limits Caps on volume, frequency, or value per action or time window Environment restrictions Separation between what an agent can touch in test versus production Human approval gates Explicit checkpoints for actions above a defined consequence threshold Separation of duties No single agent holding both the ability to initiate and approve the same class of action Just-in-time access Authority granted at the moment of need rather than standing permanently
None of this is unique to AI. It’s the same privileged access discipline enterprises already apply to human administrators and to sensitive service accounts. What’s different is that an agent’s authority has to be enforced in the execution path rather than requested in a prompt, because a natural-language instruction telling a model what it should or shouldn’t do is a request, not a control, and a system prompt is not an authorization mechanism no matter how firmly it’s worded.
Delegated Authority and the Problem of Transitive Trust
Agents increasingly act on behalf of other agents, not just on behalf of humans, and that changes the shape of the accountability question.
Human
|
v
Agent A
|
v
Agent B
|
v
Tool
|
v
Resource
Several questions have to be answerable at every link in that chain, and most current implementations can’t answer them. Who authorized Agent B to act, Agent A or the original human? Does Agent B inherit Agent A’s full authority, or a deliberately reduced subset? If authority isn’t reduced at each hop, the chain is vulnerable to privilege amplification, where a narrowly scoped initial request ends up executing with broader authority several hops downstream because nobody designed the chain to attenuate permission as it passes along. And critically: is attribution preserved end to end, so that an action taken by Agent B, three hops from the original human request, can still be traced back to who or what ultimately authorized it?
The architectural principle that should govern this is straightforward to state and hard to implement without deliberate design: authority should narrow as it moves through a delegation chain, never widen, and every hop should be logged with enough context to reconstruct the full chain later. This is the beginning of what will eventually need to be a proper identity fabric for agent-to-agent interaction, not an afterthought bolted onto single-agent identity models.
AI Agents and the Existing NHI Debt
Most enterprises already carry a backlog of NHI governance debt: unknown or forgotten service accounts, orphaned identities left behind after a project ended, excessive privileges granted for convenience and never walked back, shared credentials used across multiple systems, hardcoded secrets in code and configuration, passwords set to never expire, and access reviews that are procedurally complete but substantively shallow.
AI agents don’t just add to that backlog. They change its scale and its shape. A traditional NHI population grows linearly, roughly tracking new systems and integrations. An agent population can grow combinatorially, with new instances spun up dynamically for individual tasks, sessions, or delegated sub-workflows.
The scale is not theoretical. Cloud Security Alliance research puts the current ratio at roughly forty-five non-human identities for every human identity in a typical enterprise, a figure the organization expects to keep climbing as agentic adoption grows (Cloud Security Alliance, 2025). CSA’s separate reporting on the 2026 threat landscape describes environments approaching a hundred non-human identities for every human one, and frames overprivileged agents as a new class of insider threat precisely because an agent that goes wrong can act at machine speed with no human pause built into the process (Cloud Security Alliance, 2026). Gartner’s forecast, cited in the same research, projects that by 2028 at least fifteen percent of day-to-day work decisions will be made autonomously through agentic AI. The relevant question stops being how you inventory a few thousand service accounts and becomes:
How do you govern an identity population that can be created, modified, delegated, and retired dynamically, potentially at a scale and velocity no manual review process can keep pace with?
This is the point at which traditional NHI management, built around periodic review of a relatively stable identity population, has to evolve toward something closer to continuous, automated governance. The alternative is an identity backlog that grows faster than any team can review it.
Lifecycle Management for Agent Identities
A defensible agent identity program needs an explicit lifecycle, not an implicit one that only becomes visible when someone asks a question nobody can answer. In practice that lifecycle runs through a recognizable set of stages, each of which needs a real answer, not a rubber stamp: a request gets made and registered, an identity gets created and assigned an owner, permissions get assigned and the agent gets activated, it runs under monitoring, it comes up for periodic review, it gets modified or reauthorized as its purpose evolves, and eventually it’s suspended, retired, and deprovisioned.
Every one of those stages needs an answer that a reviewer or auditor could extract without reading source code. Who owns this agent, and who approved its creation? What specific business purpose does it serve, and does that purpose still exist? What systems and data can it reach, and what permissions does that require, stated explicitly rather than inferred from what happens to work? On what cadence is access reviewed, and what triggers a review outside that cadence? How is an abandoned agent, one still running but no longer serving its original purpose, actually detected, given that an agent doesn’t stop working just because nobody needs it anymore? When it’s retired, how completely is its access revoked, what happens to its credentials, and is its audit history preserved after the identity itself is gone?
That last question matters more for agents than it typically has for other NHIs. A retired service account’s historical actions were deterministic and already understood. A retired agent’s historical actions were reasoning-driven and may need to be reconstructed later during an investigation that has nothing to do with why the agent was retired in the first place.
The AI Harness as the Identity Control Plane
The harness, the orchestration layer that gives a model memory, tool access, and the ability to act, is where agent identity and authority actually get enforced in practice, sitting between the agent itself and the APIs, data, and infrastructure it eventually touches. It’s worth being precise about what role it should and shouldn’t play, because it’s tempting to let it play too many.
The harness is the natural place for an agent to obtain its identity, retrieve scoped credentials, request authorization for a specific action, invoke tools under enforced policy, and record what happened for later audit. What it should not become is a replacement for enterprise IAM. It should be a policy enforcement point that consumes decisions and credentials from enterprise identity infrastructure, the identity provider, the secrets manager, the privileged access management platform, rather than reinventing a parallel identity system that only the AI platform understands. An agent identity that exists only inside the harness, invisible to the enterprise IAM program, is exactly the kind of shadow identity that NHI programs were built to eliminate in the service account world. Building a new instance of the same problem for agents would waste an opportunity to get this right from the start.
Security Architecture for Agent NHIs
Two categories of control have to work together, and conflating them is a common design mistake.
Identity controls are the same discipline applied to any privileged NHI: strong authentication, workload identity where the runtime environment supports it, short-lived credentials rather than long-lived ones, centralized secrets management instead of embedded or hardcoded values, least privilege as the default grant, privileged access management for anything touching sensitive systems, and just-in-time authorization rather than standing access.
AI-specific behavioral controls address what’s actually different about an agent: policy enforcement on the specific actions an agent attempts, not just the systems it can reach; network and data access controls scoped to the task at hand; restrictions on which tools are available in which contexts; human approval gates for consequential or irreversible actions; defined execution boundaries that a model cannot reason its way around; and rate and transaction limits that cap the blast radius of a single agent going wrong, whether through error, manipulation, or a genuinely reasonable-sounding decision that happens to be wrong.
Both categories are required, and neither substitutes for the other. Identity controls without behavioral controls give you a well-governed identity that can still take unbounded action once authenticated. Behavioral controls without identity controls give you a well-constrained action set attached to an identity nobody can properly attribute, rotate, or revoke. You need both, and most of the deployments I’d worry about have neither, not because anyone decided to skip them but because nobody was assigned to think about either one until it was already too late to matter.
When the Freeze Lived Only in the Prompt
This distinction is not academic. In July 2025, an AI coding agent operated by Replit deleted a live production database during an active, explicitly stated code freeze, and initially misrepresented what had happened when its operator asked about it (Tom’s Hardware, 2025; eWeek, 2025). The agent held standing access to the production database, had no transaction-level limit on destructive operations, and operated inside a harness with no execution boundary capable of blocking a delete regardless of what the model itself decided in the moment. The freeze existed only as an instruction sitting in the agent’s context. It was never enforced as a control in the execution path, so the agent could register the instruction and still issue the command anyway.
Nothing about that incident required a sophisticated attacker. It required an agent with more standing authority than its task justified, and no control downstream of the model capable of saying no on the platform’s behalf rather than relying on the model’s own judgment. That is the identity controls and behavioral controls distinction above, made concrete: a well-known credential wasn’t stolen and no authentication was bypassed. The authority itself was simply too broad, and nothing outside the model’s own reasoning was positioned to catch that before it mattered.
Observability and End-to-End Attribution
Traditional application logging, request in, response out, isn’t sufficient for a system that reasons and acts. For any consequential action, an organization should be able to answer a full chain, not just the last link in it: who initiated the request, which agent acted, which specific instance of that agent, under which identity, using what authority, which tool it invoked, what resource it touched, what action it took, and what the outcome was. Miss any one of those links and the chain is broken, because “the agent did something to the database” isn’t an answer an auditor or an incident responder can actually use.
That chain matters for the obvious reasons: security investigations, compliance evidence, incident response, and access reviews. It also matters for reasons specific to agentic systems: forensics after an agent behaves unexpectedly, non-repudiation when an agent’s action is disputed, and ordinary operational troubleshooting when an automated workflow produces an outcome nobody predicted and nobody can currently explain without reading raw logs line by line.
Agent-to-Agent Identity
The scenario that current identity architecture is least prepared for is agents calling agents, each potentially operated by a different team, built on a different platform, or governed by a different set of policies.
Security Agent
|
v
IAM Agent
|
v
Infrastructure Agent
|
v
Cloud Platform
This raises questions single-agent identity models don’t have to answer. Does every agent in the chain need its own distinct identity, or can trust be established at a coarser level? How is trust established between agents that may not share an identity provider or a common owning team? How is authority delegated across that boundary without simply passing along a broad credential because narrower delegation wasn’t built into the protocol? How is privilege escalation prevented when each hop in the chain is a separate reasoning system capable of making its own judgment calls about what’s an appropriate next step? This is the beginning of what will likely need to become an identity fabric purpose-built for autonomous workloads, not an extension of protocols designed for a single service calling a single API.
Work toward that is already underway, and it’s worth naming rather than treating this as an unaddressed gap. The Cloud Security Alliance’s MAESTRO framework (Multi-Agent Environment, Security, Threat, Risk, and Outcome) was built specifically to threat-model multi-agent interactions that older frameworks such as STRIDE and PASTA were never designed to cover, and separate CSA work on agentic identity and access management has begun exploring decentralized identifiers and verifiable credentials as a foundation for cross-agent trust in multi-agent systems (Cloud Security Alliance, 2025). None of this is mature enough to treat as settled practice. It’s evidence that the field recognizes the gap, not that the gap is closed.
Common Architectural Mistakes
Mistake Architectural consequence Treating agents as ordinary service accounts Misses instance-level identity, ephemeral scoping, and behavioral variability that static NHIs don’t have Granting agents broad human permissions Collapses delegation into impersonation and inherits a permission set scoped for a person, not a task Using shared credentials across agent instances Makes individual attribution impossible when something goes wrong Long-lived, hardcoded, or embedded credentials Extends the exposure window and defeats rotation discipline entirely No defined owner Leaves no accountable party to answer for the agent’s access or behavior No lifecycle management Produces orphaned agents that outlive their business justification No access reviews Lets initial over-provisioning persist indefinitely No separation between agent identity and user identity Makes it impossible to distinguish agent-initiated actions from human ones in logs Unrestricted tool access Expands the action surface far beyond what any single task requires No transaction-level controls Removes the last backstop against a single erroneous or manipulated action causing large-scale damage No end-to-end attribution Breaks incident response and forensics exactly when they’re needed most Assuming the model enforces its own security Relies on probabilistic behavior for what should be a deterministic control Treating prompts as authorization mechanisms Confuses a request made to the model with an actual access control decision
Each of these is individually familiar from decades of NHI governance. What’s new is how many enterprises are making all of them simultaneously, in systems being built faster than their governance processes can review them.
A Vendor-Neutral Reference Architecture
Pulling the preceding sections together, a coherent architecture separates responsibility clearly between the AI platform and enterprise identity and security infrastructure.
Human Identity
|
v
AI Application
|
v
AI Agent Identity
|
v
AI Harness / Agent Runtime
|
+---- Policy
+---- Authorization
+---- Tool Governance
+---- Context Controls
+---- Audit
|
v
Enterprise IAM / Security Control Plane
|
+---- Identity Provider
+---- Privileged Access Management
+---- Secrets / Credential Management
+---- Access Governance
+---- Security Monitoring
|
v
Enterprise Resources
The AI platform owns the reasoning loop, tool orchestration, and the enforcement of policy at the point of action. Enterprise IAM owns the identity itself, its lifecycle, its credentials, its access governance, and its integration into the enterprise’s existing detection and response capability. The harness should be a well-behaved consumer of enterprise IAM, not a parallel system that happens to also do identity because it was convenient to build one while standing up the agent.
Design Principles
Twelve of these came up repeatedly enough while working through the sections above that they’re worth pulling out on their own, even at the risk of some overlap with what’s already been said.
Treat every autonomous agent as an identity-bearing actor once it authenticates and acts, not as a feature of an application.
Never make the AI model itself the security boundary. The boundary lives in the harness and in enterprise IAM, enforced outside the model’s own judgment.
Separate human identity from agent identity explicitly. Delegation, not inheritance, should be the default relationship between them.
Make agent authority explicit and reviewable, separate from and in addition to agent identity.
Prefer scoped, delegated authority over inherited privilege at every hop in a chain, human to agent or agent to agent.
Use short-lived, rotated credentials wherever the runtime environment supports it, and treat any exception as a deliberate, documented risk acceptance.
Treat every tool an agent can call as a privileged capability, scoped and reviewed the same way any other privileged access would be.
Maintain end-to-end attribution across every action, every agent instance, and every delegation hop.
Fold agent lifecycle management into the enterprise IAM program rather than running it as a separate process owned by the team that built the agent.
Require independent validation, whether automated policy or human approval, for consequential or irreversible actions.
Design delegation and trust models for agent-to-agent interaction now, even in single-agent deployments, because multi-agent systems are the direction the field is moving.
Keep the architecture vendor-neutral and model-independent, so that identity and governance survive a change in which model or platform is doing the reasoning.
Where the Threshold Actually Sits
None of this should be read as a claim that every AI interaction requires a dedicated, independently governed identity. That would be as much of a mistake as ignoring the problem entirely, because it would bury the systems that genuinely need scrutiny under governance overhead applied indiscriminately to systems that don’t.
User -> Chatbot -> Response
A system shaped like that, one that reads and generates but cannot act, is primarily an application security concern. It deserves attention for prompt injection, data exposure, and output integrity, but it does not need the full weight of NHI lifecycle governance built around it.
User -> AI Agent -> API -> Database -> Production Change
A system shaped like that has crossed the threshold. It authenticates, it reaches a production system, and it makes a change with real consequences, autonomously. The useful test for where a given system falls is not how sophisticated its reasoning is. It’s whether the system’s output is a response a human reads, or an action a system takes. The moment an AI system’s output becomes an action against an enterprise resource rather than information delivered to a person, it has become an identity-bearing actor and belongs under the same governance discipline as every other privileged NHI, adapted for the specific ways agents behave differently than the static automation that discipline was originally built for.
What This Means for the Next Decade of IAM
Enterprises are heading toward managing a far more heterogeneous identity population than most current IAM architectures were designed around: human identities, workload identities, application identities, AI agent identities, individual agent instances, agent-to-agent relationships, delegated and time-bound authority, dynamically issued credentials, and autonomous access decisions made without a human in the loop for each one.
The question worth sitting with is not how to authenticate AI. Authentication is a solved problem, mechanically. The harder question, the one most identity architectures haven’t been built to answer yet, is how to govern autonomous digital actors at enterprise scale, actors that can reason, delegate, and exercise authority in ways that don’t reduce cleanly to the deterministic behavior traditional NHI governance was designed around.
AI agents did not create the non-human identity problem. Enterprises have been living with it for years. What agents change is the shape of the problem: identities that no longer merely authenticate and execute predefined instructions, but reason, decide, invoke tools, delegate work, and exercise real authority on their own judgment. The organizations that treat that shift as an extension of identity governance they already understand, rather than a new problem invented by AI teams working outside it, are the ones that will still be able to answer, three years from now, exactly what their agents did, as whom, and under what authority. The rest will find out the hard way, during an investigation, how much of that they were never actually able to answer at all.
Further Reading
Cloud Security Alliance, research on non-human identity ratios and agentic risk, RSAC 2025: https://cloudsecurityalliance.org/artifacts/securing-non-human-identities-in-the-age-of-ai-agents-rsac-2025
Cloud Security Alliance, “Defining Non-Human Identity” report, covered by Virtualization Review, July 2026: https://virtualizationreview.com/articles/2026/07/23/amid-rise-of-ai-agents-advice-for-dealing-with-non-human-identities.aspx
Cloud Security Alliance, “Agentic AI Identity Management Approach,” March 2025: https://cloudsecurityalliance.org/blog/2025/03/11/agentic-ai-identity-management-approach
Cloud Security Alliance, “Agentic AI Identity & Access Management,” on decentralized identifiers and verifiable credentials for multi-agent systems: https://cloudsecurityalliance.org/artifacts/agentic-ai-identity-and-access-management-a-new-approach
Cloud Security Alliance, MAESTRO threat modeling framework for agentic systems, February 2025: https://cloudsecurityalliance.org/blog/2025/02/06/agentic-ai-threat-modeling-framework-maestro
Cloud Security Alliance, “The State of Cloud and AI Security in 2026”: https://cloudsecurityalliance.org/blog/2026/03/13/the-state-of-cloud-and-ai-security-in-2026
Tom’s Hardware, coverage of the Replit production database deletion incident, July 2025: https://www.tomshardware.com/tech-industry/artificial-intelligence/ai-coding-platform-goes-rogue-during-code-freeze-and-deletes-entire-company-database-replit-ceo-apologizes-after-ai-engine-says-it-made-a-catastrophic-error-in-judgment-and-destroyed-all-production-data
eWeek, coverage of the same incident: https://www.eweek.com/news/replit-ai-coding-assistant-failure/
About the Author
Sameer Bhanushali is an enterprise identity and security architect with over 16 years of experience designing identity, access management, and security architecture for large, complex organizations. His work spans multi-forest Active Directory environments, cloud identity platforms, privileged access, and the identity challenges introduced by mergers, acquisitions, and now AI systems.
His current focus sits at the intersection of this episode’s subject: applying enterprise identity and security discipline to AI agents, from agent authorization and least privilege to the runtime guardrails that keep capable models inside defined boundaries.
Sameer writes about identity, security architecture, and AI governance at TechSecure Insights, and his work has appeared in industry publications including Dark Reading.
LinkedIn | TechSecure Insights


