Give Every AI Agent Its Own Identity
TL;DR — Key Takeaways
- Borrowed credentials create significant security risks. AI agents using personal tokens or shared service accounts make attribution difficult, expand potential attack exposure and complicate access revocation.
- Every AI agent needs a dedicated identity. Unique non-human identities, limited permissions, secure credential storage and temporary access roles reduce the damage an agent can cause if compromised.
- Audit logging and human approval are essential. Organizations should log agent activity, require human authorization for consequential actions and assign clear ownership of each agent’s identity lifecycle.
Agent identity had a busy week.
On Oct. 13, Meta, Genesys and Sierra published a draft rulebook for how AI agents deal with businesses, with 35 design partners including Bank of America, Visa, Mastercard, Okta and OpenAI.
The same day, TechTarget walked through the three big vendor approaches to agent identity: Microsoft Entra Agent ID, Google’s SPIFFE-based Agent Identity, and Okta’s agent single sign-on built on Cross App Access.
Those efforts matter.
But inside most companies, the agents already running in production did not wait for a standard. They showed up with whatever credential was nearest.
The Borrowed-Credential Habit
The usual pattern looks like this. Someone builds an agent on their laptop with their own API tokens. It works, people like it, and it moves to a shared server with the same tokens. Or a team creates one service account for “automation,” and every bot, script and agent shares it. Or, worst of all, the agent acts with a human user’s OAuth token.
This creates three problems.
- Attribution is wrong. When the agent changes something, the audit log names a person who was asleep at the time. During an incident, that sends responders in the wrong direction.
- Access is too broad. The agent inherits every scope the human or shared account has, including ones it will never need. Every prompt injection, bug or bad tool call runs with that full reach.
- Revocation is all or nothing. If the agent misbehaves, you cannot cut off the agent without cutting off the person or every other job on the shared account. So people hesitate, and hesitation is the wrong reflex during an incident.
The Fix: A Non-Human Principal Per Agent
Every agent should get its own identity, provisioned the same way as any other service: owned by a team, stored in your secrets manager, rotated on a schedule, and granted the narrowest access that lets it do its job.
I work on the infrastructure behind an internal AI assistant at Philo that engineers call on to debug production. It reads from our deployment tool, dashboards, source control, paging system and ticket tracker. When the assistant moved from a prototype to a shared service, one requirement in the deployment plan was simple: no personal tokens. It got its own chat app identity, its own cloud role and its own service credentials for each integration, held in a secrets manager.
Two details made more difference than I expected.
First, the agent’s sandbox does not hold most of those credentials at all. Proxies outside the sandbox keep the tokens and attach them to requests they allow. The agent asks for data. The proxy decides what it can reach and adds the credential. If the agent is tricked into printing its environment, there is very little to print.
Second, identity can be narrower than the agent. For database questions, each conversation gets its own temporary read-only database role. The scope ends when the conversation does, so there is no standing database credential for the agent to leak.
Human Approval Gates
Some actions should wait for a person no matter how capable the agent is. Decide what counts as consequential for your system and write it down. For us, that list starts with anything that writes: changes to source control, production modes, administrative access.
In our assistant, these are elevated modes that a human has to turn on explicitly in a thread. While a session is elevated, other users in that thread cannot drive it, the conversation is logged for audit, and the mode switches itself off after ten minutes of inactivity. Elevation is a decision someone made, with their name on it, and it expires on its own.
Read-Only Until Logging
Do not grant write access until every action the agent takes is logged, and someone actually reads those logs. Logging is the precondition for trust, not a cleanup task for later. Our assistant posts a one-line record of every invocation to a dedicated channel, separate from human activity. Before you widen an agent’s access, you should be able to answer what it did last Tuesday without asking it.
What To Do Monday
1. Inventory every credential an agent touches. Include tokens in environment files, shared service accounts and anything borrowed from a person. Personal tokens go first.
2. Separate agent traffic from human traffic in your audit logs. If you cannot filter for “everything the agent did,” attribution is already broken.
3. Name one owner for the agent identity lifecycle. Someone creates it, rotates it, reviews its scope and retires it. Without an owner, scope only ever grows.
Identity is the Control Plane
The vendor standards will help, especially for agents that cross company boundaries. You do not need to wait for them to fix the agents already running inside your network. Give each one a name, a narrow scope, an owner and a log. Once identity is right, the rest of agent security has something to attach to.
Frequently Asked Questions
Why should AI agents have their own identities?
Dedicated identities enable organizations to track agent activity independently, restrict permissions and revoke access without disrupting human users or other automated services. They also improve incident investigation and accountability.
What security risks arise when AI agents share credentials?
Shared credentials can grant agents unnecessary privileges, obscure who performed an action and make individual access difficult to revoke. A compromised agent may also inherit permissions far beyond its intended responsibilities.
How can organizations secure AI agent access?
Organizations should assign unique identities to agents, use least-privilege permissions, store secrets securely, introduce short-lived credentials where appropriate and require human approval for sensitive actions. Comprehensive audit logging and regular access reviews provide additional protection.

