AI Agents Are Identities, Not Features
Why enterprises should govern AI agents as non-human identities with named owners, scoped entitlements and runtime checks, rather than shipping them as product features.
The argument
An AI agent that can call tools is a principal acting on your systems. It should be governed like any other non-human identity, with a named owner, narrowly scoped entitlements and checks at the moment it acts, not approved once as a feature and forgotten.
This is a opinion piece. It argues a point of view: opinions are marked as ours, and factual claims are cited in the sources below.
Written by
TrustHappens Editorial Team
The TrustHappens editorial team writes and reviews every piece against primary sources: official documentation, standards bodies and regulators. We are the team behind aiAxonIQ, TrustIvan, TrustLynce, MithunAI and ARUKZ ERP, and we disclose that wherever our products appear.
On this page
Most enterprise AI agents enter the company the way features do. A product team builds a support assistant that can look up orders and issue refunds, or an engineering team wires a coding agent into the repository and the ticket tracker. There is a design review, perhaps a security review, a launch, and then the agent becomes part of the product. What rarely happens is the thing that would happen if a new contractor were given the same access: an identity record, an owner, a scoped role and a date on which someone checks whether the access is still needed.
The argument
An agent that can call tools is not a feature in the security sense. It is a principal. It authenticates with a credential, it is authorised to take actions on systems of record, and it decides at runtime which of those actions to take. Those are the defining properties of an identity, and specifically of a non-human identity: a credentialed actor with no person typing a password at the moment it acts.
Treating agents as features puts governance in the wrong place. Feature governance happens at design and release time; identity governance happens continuously, through ownership, access reviews and enforcement at the point of use. An agent's risk is not fixed at release. It changes every time someone adds a tool, widens a token's scope, connects a new MCP server or changes the prompt that decides which tool to call.
The evidence
The following are documented positions from OWASP, the Model Context Protocol specification and NIST. The argument we draw from them is ours.
Agent risk is defined in identity terms. The OWASP Top 10 for LLM Applications 2025 describes Excessive Agency as the vulnerability that allows damaging actions in response to unexpected, ambiguous or manipulated model output, whatever the cause of the malfunction. It names three root causes: excessive functionality, excessive permissions and excessive autonomy. Two of the three are access-control problems, and the third is about who must approve an action. Among its mitigations, OWASP recommends human-in-the-loop approval for high-impact actions, implemented in a downstream system or in the extension itself.
The non-human identity risk list already fits agents. The OWASP Non-Human Identities Top 10 (2025) lists Improper Offboarding, Secret Leakage, Vulnerable Third-Party NHI, Insecure Authentication, Overprivileged NHI, Insecure Cloud Deployment Configurations, Long-Lived Secrets, Environment Isolation, NHI Reuse and Human Use of NHI. Each has an obvious agent form: an experiment that keeps its token after the pilot ends, a coding agent that runs on a developer's personal access token, one API key shared by several agents so nobody can tell which acted.
The protocol agents use is built on identity primitives. The MCP authorization specification makes a protected MCP server an OAuth 2.1 resource server and the MCP client an OAuth 2.1 client acting on behalf of a resource owner. It requires servers to validate that access tokens were issued specifically for them, and it describes two failure modes: accepting tokens meant for other services, and passing them through to downstream APIs, which can create a confused deputy where the downstream service trusts a token it should not. The specification's security best practices document treats token passthrough as a pattern to avoid. These are identity controls, written into the protocol.
Zero trust says authorisation happens per request, for every subject. NIST SP 800-207 states that zero trust grants no implicit trust based on network location or asset ownership, and that authentication and authorisation of both subject and device are discrete functions performed before a session to an enterprise resource is established. An agent running inside your network, on your infrastructure, is a subject like any other.
Agents get their own threat model. In February 2025 the OWASP Agentic Security Initiative published Agentic AI Threats and Mitigations as a separate, threat-model-based reference for agentic systems, distinct from the LLM Top 10. The security community is already treating autonomous, tool-using systems as a category of their own rather than as a property of the model.
Counterpoints
The strongest opposing view runs like this.
"Agents act on behalf of users, so the user is the identity." In many designs the agent holds a delegated token with the user's permissions. Creating a separate identity for the agent adds a second principal, more lifecycle management and potentially a broader permission set than the user had. Better, this argument goes, to keep the agent as a thin feature that borrows the user's identity and let existing user governance apply.
"Identity programs are already overloaded." Most organisations have not finished inventorying service accounts and CI tokens. Adding agents to the same program could slow down AI adoption without materially reducing risk, while product-level controls such as tool allow-lists and output filters are faster to ship.
"The model is the real risk." Prompt injection and hallucination are model behaviours. Identity controls do not make a model less likely to be manipulated.
There is substance here. Delegated, user-scoped access is often the right design, and an agent should never hold more than the user it serves. But delegation does not remove the need for an agent identity; it makes it more important. You still need to know which agent made a call on the user's behalf, what tools it was allowed to use, and who answers for it when it misbehaves. OWASP's own NHI list includes Human Use of NHI and NHI Reuse precisely because blurred attribution is a risk. And while identity controls do not fix the model, they bound what a manipulated model can do, which is the point of Excessive Agency's mitigations.
What this means in practice
Governing agents as identities is mostly an extension of work security teams already know.
- Register every agent. Keep an inventory of agents, the MCP servers and tools they can call, the credentials they hold and the human owner accountable for each. Shadow agents are discovered the same way shadow service accounts are: from tokens, OAuth grants and audit logs.
- Give each agent its own credential. No shared keys across agents, no personal access tokens. Prefer short-lived, audience-bound tokens, which the MCP authorization model already expects.
- Scope entitlements to tools, not just systems. "Can read tickets and comment" is a different entitlement from "can close tickets"; record it that way.
- Check high-impact actions at runtime. Refunds, deletions, deploys, permission changes and outbound messages should pass a policy check, and some should wait for a person.
- Review access on a schedule and offboard explicitly. Pilots end; their tokens should too.
These steps do not require a specific product. Some teams build them on their existing identity provider and a policy engine. Others use a platform that treats agents as part of the non-human identity inventory. TrustIvan, built by the team behind TrustHappens, takes the latter approach: its NHI inventory covers keys, tokens and AI agents with owners and access reviews, and it adds an agent registry with tool entitlements and a runtime gate that allows, challenges or denies agent actions where the agent's runtime asks.
For the broader program, see our guides to non-human identity security and securing AI agents in enterprise environments.
Recommendations
- Change the intake question. When a team proposes an agent, ask "what identity will this run as, and who owns it?" before "what model will it use?"
- Make an identity record a release gate. Owner, credential, tool entitlements, data scope and review date, filled in before production.
- Default to delegated, least-privilege access. An agent acting for a user should never exceed that user's permissions, and should hold only the subset its task needs.
- Separate read from write, and write from irreversible. Put human approval or a policy check in front of the irreversible tier, as OWASP recommends for high-impact actions.
- Validate token audience everywhere. MCP servers must accept only tokens issued for them and must not forward client tokens downstream.
- Bring agents into existing access reviews. Use the same cadence and evidence as service accounts. The identity security assessment checklist has a section you can extend for agents.
An agent is software that acts with authority. Authority needs an owner.
Sources and references
- OWASP Non-Human Identities Top 10 (2025)
- OWASP GenAI Security Project, LLM06:2025 Excessive Agency
- Model Context Protocol: Authorization (2025-06-18)
- Model Context Protocol: Security Best Practices (2025-06-18)
- NIST SP 800-207: Zero Trust Architecture
- OWASP GenAI Security Project: Agentic AI Threats and Mitigations
Written by
TrustHappens Editorial Team
The TrustHappens editorial team writes and reviews every piece against primary sources: official documentation, standards bodies and regulators. We are the team behind aiAxonIQ, TrustIvan, TrustLynce, MithunAI and ARUKZ ERP, and we disclose that wherever our products appear.
- Building and operating observability, security, compliance, AI and manufacturing ERP software
- Reviewing content against official documentation before publication
Related resources
Keep reading
Non-Human Identity Security: Research Brief
Desk research on non-human identity security: secrets sprawl, credential abuse in breaches, workload federation, AI agents, MCP and what security leaders should do next.
· 10 min read
How to Secure AI Agents in Enterprise Environments
A practical control set for AI agents: per-agent identities, scoped tool entitlements, audience-bound tokens for MCP servers, action gates and logs you can attribute.
· 6 min read
What Is Non-Human Identity Security? A Practical Guide
What non-human identities are, why service accounts, tokens and AI agents need their own security program, and a six-step plan to inventory, scope and rotate them.
· 9 min read
Non-Human Identity Security Approaches Compared: Secrets Managers, Cloud IAM and NHI Platforms
Secrets managers, cloud IAM with workload identity federation, CSPM and NHI platforms each solve part of the machine-identity problem. Compare what each covers.
· 8 min read
Stay Ahead of What Matters.
Practical guides on cybersecurity & identity and more, delivered to your inbox.