LEARN

AI agent identity: knowing which agent acted, and whether to trust it

Vijil·16-minute read

AI agent identity is a verifiable identity that belongs to the agent itself, not to the person who built it. It is bound to provable facts about how the agent is deployed, such as the account it runs under and the exact container image it runs, as far as the platform’s attestation can verify them. With it, every system an agent touches can check which agent is calling, who answers for it, and what it may do.

Agents need this more than earlier software did. They choose their own next steps, call tools, hand work to other agents, and act for people who are not watching. When something goes wrong, the first question is which agent did it, and a shared key or a borrowed login cannot answer that.

Agent identity is how you answer it. It cannot tell you whether the agent did what it should have done, which is why identity is the first layer of AI agent security and governance rather than the whole of it.

What is AI agent identity?

An AI agent identity is the name an agent goes by in the systems it uses, together with proof that it really is that agent. A complete identity has four parts:

  • A unique identifier, such as a URI, that names one agent and no other.
  • A credential that proves the identifier belongs to the agent presenting it, ideally short-lived and issued from verified facts about where the agent runs.
  • An accountable owner, meaning the person or team that answers for what the agent does.
  • The agent’s declared purpose and tools, so the identity is tied to the job the agent is supposed to do.

The last part separates agent identity from older machine identity. A web server’s identity says which server it is. An agent decides its own actions, and the same code can be pointed at very different jobs, so its identity should also say what the agent is for.

That part matters even more for autonomous agent identity, where no person is in the loop and the identity is what ties an action back to an accountable owner.

What is agentic identity?

Agentic identity, agentic AI identity, and AI agent identity are different names for the same idea: an identity issued to an AI agent rather than borrowed from a person or a shared account. Some identity vendors use agentic identity more narrowly, for short-lived identities that a user delegates to an agent for one task.

Both uses agree on the core. The agent is a principal in its own right, meaning an entity that can be authenticated and granted access, with credentials that only it holds.

Why AI agents need an identity of their own

Without an identity of its own, an agent is anonymous to the systems it uses. You cannot trace which agent took an action, grant or revoke its access separately, or tell its activity apart from the person whose account it borrowed.

Four properties of agents make that gap more serious than it was for older automation:

  • They decide their own next step. A service account runs the same code path every time, while an agent picks its tools and actions at run time.
  • They act for people. An agent that books travel or approves an invoice acts on someone’s behalf, and that delegation has to be recorded.
  • They call other agents and tools. One request can pass through several agents before anything happens, and each hop needs to know who is asking.
  • They can be steered. Text an agent reads can redirect what it does, so the systems around it have to limit what any one agent is able to do.

Identity for AI agents makes AI agent accountability possible. Each action can be tied to a specific agent and, through that agent, to the owner who answers for it.

How agents get credentials today

Many agents run on credentials that belong to something else. Agent credentials usually take one of three forms, and each one leaves a gap.

The first is a borrowed human login. The agent runs with a person’s credentials, inherits every permission that person holds, and leaves an audit trail that names someone who may not have been involved.

OAuth can record that kind of delegation. RFC 8693, the OAuth token exchange standard, defines an actor claim that says one party is acting for another. The delegation is recorded, but the identity still belongs to the person.

The second is a shared service account or a vendor-specific machine identity. When several agents share one account, their actions cannot be told apart. An identity issued inside one vendor’s platform may also mean nothing to the next system the agent calls.

The third is an API key stored in an environment variable. A key is a bearer credential. Whoever holds it can use it, and it says nothing about the software presenting it.

In March 2026, two poisoned releases of LiteLLM, an open-source proxy for calling language models, stole credentials from the systems that installed them. The LiteLLM maintainers told affected users to rotate every credential stored in environment variables or config files on those systems.

AI agent identity vs. service accounts and non-human identity

AI agents are a kind of non-human identity, the category that also covers service accounts, API keys, and workload identities. Machine identity for AI agents borrows a lot from that category, but agents break some of its assumptions.

Human userService accountAI agent
Who decides the actionsThe personFixed code pathsThe agent, at run time
Acts on someone else’s behalfRarelyNoOften, through delegation
Can be steered by what it readsThrough phishingRarelyYes, through prompt injection
Typical credentialPassword plus multi-factor loginLong-lived key or secretShould be short-lived and tied to the task
Main identity riskAccount takeoverLeaked or stale keysOver-privileged access used by a hijacked agent

Microsoft’s Entra Agent ID documentation draws the same line. It recommends against running agents as service principals, which lack enforced sponsorship and agent-aware audit entries. It also recommends against user accounts, because access policies written for people do not apply correctly to agents.

The wider discipline of non-human identity security covers service accounts, keys, and workloads. Agents need everything it offers, and also an owner, a declared purpose, and a record of who they act for.

AI agents and identity security risks

AI agent identity security deals with the ways an agent’s identity or access gets misused. The OWASP Top 10 for Agentic Applications, published in December 2025, lists this as identity and privilege abuse (ASI03): an agent’s identity or permissions being misused or escalated.

Four problems are common:

  • Leaked credentials. Long-lived keys and tokens are easy to copy and slow to retire. The OWASP Non-Human Identities Top 10 lists secret leakage and long-lived secrets among its 2025 risks.
  • AI agent privilege escalation. An agent gains or passes on more access than its task needs, for example when one agent hands its credentials to another.
  • Impersonation. Without a verifiable identity, a malicious agent or service can claim to be a trusted one.
  • Orphaned and unregistered agents. Agents outlive their projects and owners, and agents nobody registered, often called shadow AI, hold access that nobody reviews.

Prompt injection, where text an agent reads is treated as an instruction, raises the stakes on all four. Each AI agent identity risk above grows with the access the agent holds, because a hijacked agent can use all of it. Agentic AI identity security therefore depends on keeping each agent’s access small.

Impersonation and fraud in financial services

Banks, insurers, and payment companies already treat impersonation and account takeover as core fraud risks. Agents add a new version of the problem.

An agent that moves money or approves a claim has to prove it is the agent the institution deployed. The agent on the other side of a transaction has to prove the same. In agentic commerce, this check has its own name, know your agent, borrowed from know your customer.

A verifiable AI agent identity lets a counterparty confirm which agent it is dealing with and who stands behind it. It does not tell the counterparty whether that agent will stay within its mandate.

How AI agent identity works

Most approaches to AI agent identity follow the same pattern. The platform issues an identity, the agent proves it on every request, and any delegation from a person is carried along with it.

Issuing an identity from what the agent is

Strong identities are issued from facts a platform can verify, not from a secret someone pastes into a config file. Before issuing an identity, the platform checks where the workload runs, such as its node, namespace, and service account. This check is called agent attestation.

Workload identity for AI agents applies the same model that cloud platforms already use for services. SPIFFE, the Secure Production Identity Framework for Everyone, is an open standard for it and a graduated project of the Cloud Native Computing Foundation.

SPIFFE names each workload with a URI inside a trust domain, the authority that issues the IDs, such as an organization or an environment. A workload proves its SPIFFE ID with a short-lived certificate or token instead of a static key, often an X.509 certificate, the standard format for binding an identity to a public key.

Proving identity on every request

An AI agent identity checked once at onboarding can be replayed. A stronger pattern checks it on every call. The agent presents its certificate over mutual TLS, where both sides of a connection prove who they are, and the receiving service verifies it before it responds.

That per-request check is AI agent authentication. Short-lived credentials matter here, because a stolen certificate that expires quickly gives an attacker only a short window to use it.

Delegation: acting on behalf of a person

Agents often act for a person. An employee asks an agent to book travel, and the agent books it.

Good delegation keeps both identities in the chain, so each downstream system sees the agent and the person it acts for. OAuth for AI agents does this with on-behalf-of flows and token exchange in OAuth 2.0, the standard protocol for authorization. The token names the original subject and the actor.

AI agent delegation gets harder when one agent calls another. The OpenID Foundation’s whitepaper on identity management for agentic AI lists delegated authority and agent-centric identities among the problems that current standards have not settled.

AI agent identity in a delegation chain from user to agent to tool.

AI agent authorization and access control

AI agent authorization decides what an identified agent may do. Identity says which agent is calling. Authorization says whether this agent may call this tool, with these arguments, on this data, at this moment.

AI agent access control is more precise when it sits at the tool call. A permission set at the network edge sees an endpoint. A check at the tool call sees the arguments, such as the amount of a payment or the address on an email, and can refuse the one call that breaks policy.

AI agent permissions should also follow the agent’s declared purpose. A support agent that reads customer records has no reason to export them, and its permissions should say so.

Tool protocols are adding their own layer. The Model Context Protocol (MCP), an open standard for connecting AI applications to tools and data, includes an optional authorization flow built on OAuth 2.1, known as MCP authorization.

Least privilege for AI agents

Least privilege for AI agents means each agent holds only the access its current task needs, for only as long as it needs it. The principle is an old one. NIST defines least privilege as limiting users, and processes acting on their behalf, to the minimum access needed for their tasks.

For agents, that means scopes per task rather than per agent, credentials that expire, and no standing access to anything sensitive. The result is a smaller blast radius: when a bug or an injected instruction redirects an agent, it can only misuse what it holds.

Zero trust for AI agents

Zero trust for AI agents applies the same thinking to each request. NIST’s Zero Trust Architecture guidance, SP 800-207, grants no implicit trust to an asset or account because of its network location or who owns it.

For agents, the rule extends across hops. An agent should not inherit trust because the agent before it was trusted, and each tool call should be authenticated and authorized on its own.

Anthropic’s framework for deploying agents under zero trust, published in May 2026, lists identity and privilege abuse among the current threats to agents. It also notes that traditional access controls do not stop agents from misusing permissions they legitimately hold.

AI agent identity management across the lifecycle

AI agent identity management covers an agent from the moment it is found to the moment its access is revoked. The AI agent identity lifecycle has six stages:

  1. Discover the agents already running, including the ones nobody registered.
  2. Register each agent in an agent registry and name the person or team accountable for it.
  3. Issue an AI agent identity bound to verified facts about the workload and to the agent’s declared purpose.
  4. Rotate credentials automatically and keep their lifetimes short.
  5. Review access against what the agent still needs, and confirm the owner is still in place.
  6. Revoke the identity and its access when the agent is retired or compromised.

Each stage should leave an AI agent audit trail. It should show who registered the agent, who approved its access, what the agent did with that access, and when the access ended.

Identity management for AI agents also needs a clear answer on AI agent ownership. An agent whose owner has left the company keeps its access until someone notices. Approvals and access reviews for agents sit within AI identity governance.

Identity is one stage of agent lifecycle management, which takes an agent from development through testing, deployment, and retirement.

AI agent identity lifecycle from discovery to revocation.

IAM for AI agents and your identity provider

IAM for AI agents does not mean replacing your identity provider. The identity provider still signs in the people who build, approve, and operate agents. Its records of granted access also show which agents already hold access to company systems.

Workforce identity providers were designed around people and app registrations. Proving what code is running, in which environment, and for which declared purpose, is a workload identity problem. Agentic AI identity and access management has to cover both.

In practice, identity and access management for AI agents uses the identity provider for people and workload identity for the agents. Agentic identity management then links them, so each agent’s actions trace back through the person who approved it.

AI agent identity standards

There is no ratified AI agent identity standard yet. The work is spread across several standards bodies, and most of it is still in draft:

  • NIST’s National Cybersecurity Center of Excellence published a concept paper in February 2026 for a potential project on software and AI agent identity and authorization. It asked for comments, until April 2, 2026, on identifying, authorizing, and auditing agents.
  • The OpenID Foundation’s whitepaper, published in October 2025, sets out the resources already available for securing today’s agents, and an agenda for the open problems.
  • The IETF’s Workload Identity in Multi-System Environments (WIMSE) working group has a draft on AI identity management that treats agents as workloads. It builds on SPIFFE, WIMSE, OAuth, and the OpenID Shared Signals Framework.
  • At least two individual Internet-Drafts published in March 2026 use the name Agent Identity Protocol, each with its own design for identifiers and credentials.
  • Verifiable credentials, a W3C Recommendation since May 2025, let an issuer sign claims that any verifier can check. Research on decentralized identity for AI agents, such as a 2025 zero trust identity framework, combines them with decentralized identifiers.

Two signals stand out for teams choosing an approach to AI agent identity today. The IETF work treats agents as workloads, which points toward workload identity standards such as SPIFFE. The OpenID work treats delegation as the hard problem, which points toward OAuth-based delegation for agents that act for people.

Where identity stops: a verified agent can still misbehave

A verified identity proves which agent is acting. It does not prove the agent will act well. A model update, a new tool, or a successful prompt injection can change what a correctly identified agent does, while its identity stays valid throughout.

We say the same about our own design. An attested identity does not make a compromised agent harmless, because an attacker who controls a running agent can use its identity until the credential expires or the agent is stopped.

You can secure AI agents with identity only up to a point. Identity limits who can act and what they can reach, but it cannot show whether an agent followed its policy. That takes two more layers: testing behavior before release, through agent evaluation and AI red teaming, and enforcing limits in production with AI runtime security.

Identity and behavior verification layers for AI agents, read bottom to top: identity, testing before release, and runtime limits.

How we handle AI agent identity at Vijil

We give every agent an identity it can prove, then verify how it behaves. Vijil Discover, our tool for shadow AI discovery, finds the agents running across your cloud accounts, Kubernetes clusters, endpoints, and code repositories, and you register the ones you keep.

Assign Identity then gives each registered agent an ID based on the SPIFFE standard. In a cluster running our SPIRE server, the agent holds an X.509 certificate that proves the ID. The certificate is short-lived and renews automatically. The identity is bound to the agent’s declared purpose, role, tools, and delegates.

Our proxies check that identity on every request, over mutual TLS. Only when the identity matches a configured route does the proxy fetch the model provider’s key from a secrets store, so the agent never holds the key itself.

Vijil Dome enforces policy on the identity at run time, and Vijil Diamond, our product for AI agent verification, records it on every score. Test results and runtime decisions trace back to the same agent.

Attestation is still rolling out across deployments. Today Dome’s trust runtime warns about an unattested agent by default rather than denying it, and you can switch it to refuse. Our proxies make no such allowance: they refuse any identity that hasn’t been granted. Vin Sharma’s walkthrough of the mechanism covers each step in detail.

Final thought

AI agent identity answers the first question anyone asks after an incident: which agent did this? Give every agent an identity of its own, prove it on every request, and keep its access small.

Then verify the behavior, because a well-identified agent can still do the wrong thing. Get in touch to see how Discover finds your agents and gives each one you register an identity it can prove.

AI agent identity FAQs

What is agentic AI identity, and how is it different from a service account?

Agentic AI identity is an identity issued to an AI agent itself, with an accountable owner and a declared purpose. A service account is usually shared, long-lived, and tied to fixed code paths. An agent chooses its own actions and can be steered by what it reads, so it needs a credential that only it holds, scoped to its task.

Should an AI agent use its owner’s credentials?

An AI agent should not run on its owner’s credentials. Borrowed credentials give the agent every permission the owner has, and they make the agent’s actions look like the owner’s in audit logs. Give the agent its own agent credentials and record the delegation separately, for example with OAuth token exchange, so systems see both the agent and the person.

How does an AI agent prove its identity without a password?

An AI agent proves its identity with a short-lived certificate or token issued from verified facts about where it runs, such as its cluster, namespace, and service account. Standards such as SPIFFE define the format. The agent presents the credential on each request, often over mutual TLS, and the credential expires quickly, so there is no long-lived secret to steal.

Can existing IAM tools manage AI agent identities?

Existing IAM tools can manage part of AI agent identity. Your identity provider still authenticates the people who build and approve agents, and its access records help find agents that already hold access. IAM for AI agents also needs workload identity for the agents themselves, short-lived credentials, per-request checks, and a named owner for every agent.

Is there an AI agent identity standard?

There is no ratified AI agent identity standard yet. NIST’s National Cybersecurity Center of Excellence has a concept paper on agent identity and authorization, and the OpenID Foundation has published a whitepaper on the open problems. The IETF’s WIMSE working group has a draft that treats agents as workloads, built on SPIFFE and OAuth.

Who is accountable when an AI agent acts on someone’s behalf?

The agent’s registered owner should be accountable for what the agent does, and the person who delegated a task should be accountable for the request. AI agent accountability depends on recording both, along with the scope of the delegation. Without a named owner, an agent’s actions trace back to nobody, and nobody reviews its access.

Does a verified identity make an AI agent safe to trust?

A verified AI agent identity proves which agent is acting, not that it will behave well. A model update, a new tool, or a prompt injection can change a correctly identified agent’s behavior while its identity stays valid. Trust also needs behavior testing before deployment and runtime limits after it, with the identity tying both to the same agent.