Why agents need their own access model
Traditional identity and access management (IAM) was built for two kinds of actors: people, who log in and make decisions, and services, which run fixed code. AI agents are neither. They act with some autonomy, their behavior depends on inputs that attackers can influence, and they often act on behalf of a person. Treating them as generic service accounts with shared keys leaves three gaps: you cannot tell which agent did what, permissions end up broader than any single task needs, and there is no clean way to stop one agent without breaking others. The NIST NCCoE concept paper on software and AI agent identity and authorization, published in February 2026, makes the same point: agents should be identifiable entities in enterprise identity systems, using standards such as OAuth, OpenID Connect and SCIM. The OWASP Top 10 for Agentic Applications lists identity and privilege abuse and tool misuse among its top risks.
The building blocks
1. Inventory
You cannot govern what you cannot see. The inventory lists every agent, its owner, purpose, model, tools, data sources, credentials and the actions it can take. It includes agents your teams built, AI features switched on inside SaaS products, and agents staff created in no-code tools. It is kept current through an onboarding process and periodic discovery.
2. A distinct identity per agent
Each agent gets its own identity in your identity provider or workload identity system, not a shared key or a person's account. This makes every action attributable, allows per-agent policy, and lets you disable one agent cleanly. Several identity providers now offer agent-specific identity features, and workload identity standards such as SPIFFE can issue short-lived identities to agents running in your infrastructure.
3. Least privilege and delegation
Permissions follow the task: read-only where possible, narrow OAuth scopes, resource limits such as specific mailboxes, projects or record types, and rate or value limits. When an agent acts for a user, delegation patterns such as OAuth token exchange give it a short-lived token that carries both identities and never exceeds that user's own rights. The Model Context Protocol's authorization specification builds on OAuth for the same reason, so MCP servers can enforce scopes rather than trusting the agent.
4. Secrets management
Keys and tokens belong in a vault, not in code, prompts, environment files or agent memory. Prefer short-lived, automatically rotated credentials issued at runtime. A model should never see a raw secret; tools use credentials on its behalf.
5. Human approval for sensitive actions
Define which actions need a person to confirm: payments or refunds above a threshold, data exports, deleting records, messages to external parties, production changes. The approval request shows what the agent wants to do and why, and approvals are logged. Approvals are enforced in the tool or API layer, so a manipulated agent cannot skip them.
6. Kill switch and containment
A kill switch disables the agent's identity, revokes its tokens, stops queued and running tasks, and preserves logs. It should work in minutes, be tested regularly and be usable by on-call staff without deep knowledge of the agent.
7. Audit trails
Every action is logged with the agent identity, the user it acted for, the triggering request, the tool called, parameters and result. Tracing standards such as OpenTelemetry help link these records across services, and logs flow into your SIEM for detection and investigation.
How this fits IAM and zero trust
Agent access governance is an extension of your IAM program, not a replacement. Zero trust principles apply directly: never trust by default, verify each request, grant least privilege, and assume breach. For agents, "assume breach" has a specific meaning: assume the agent's instructions can be hijacked through prompt injection, and make sure the damage is limited by what its identity is allowed to do.
Common mistakes
- Letting agents run on a developer's personal token, which ties production to one employee and hides agent actions among human ones.
- Relying on instructions in the prompt, such as "do not delete records", instead of permissions.
- Granting broad scopes during a pilot and never narrowing them.
- Forgetting agents inside SaaS tools that already hold OAuth grants to company data.
Scope notes: adversarial testing of agents is covered in AI Security Testing & Red-Teaming, broader responsible-AI policy in AI Governance & Ethics, and building MCP servers in MCP Connector Development.