Traditional applications do what their code says. An AI agent decides at run time what to do next, which tools to call, and what to do with what it reads. That makes an agent a new kind of principal: part user, part automation, and part untrusted-input processor.
Applying Zero Trust to agents means not trusting any of that implicitly: not the agent's judgment, not the content it reads, and not the tools it calls. This article shows how to translate the three Zero Trust principles (verify explicitly, use least privilege, assume breach) into concrete agent controls.
Two ways an agent gets access
Delegated: acts for a person
- Uses a token issued on the user's behalf
- Access is limited to what the user can do and what the agent was granted
- Audit shows both the agent and the initiating person
- Token is short-lived and scoped to the task
- Good for assistants that read mail, files, or calendars
Autonomous: acts as itself
- Uses its own credentials and permissions
- Needs a named business owner and technical owner
- Permissions are fixed by design, so they must be minimal
- Needs monitoring against its own baseline
- Good for scheduled or event-driven background work
The delegation flow
In a delegated setup the agent should never hold the user's password or a long-lived token. A common pattern uses an authorization server to exchange the user's authenticated session for a narrowly scoped token for the agent, as in OAuth 2.0 on-behalf-of and token-exchange flows.
Zero Trust principles applied to agents
| Principle | What it means for an agent |
|---|---|
| Verify explicitly | Authenticate the agent and the initiating user on every call; evaluate device, session, and risk signals; require re-authorization when context changes |
| Use least privilege | Minimal scopes, minimal tools, minimal data, minimal duration; separate identities for separate purposes; read-only unless writing is essential |
| Assume breach | Design as if the agent will be manipulated: constrain what a hijacked agent can reach, require approval for impact, log everything, and be able to stop it quickly |
The real threat model: untrusted content and excessive agency
Two risks dominate agent security, and both are widely recognized in industry guidance for LLM applications:
- Prompt injection. An agent reads a web page, document, email, or ticket that contains hidden instructions, and follows them. The attacker never touches your network; they just place text where your agent will read it.
- Excessive agency. The agent has more tools, permissions, or autonomy than its task requires, so a successful manipulation can do real damage.
You cannot reliably prevent all injection through prompting alone. You can limit what an injected agent can do.
- 1Hostile content
The agent reads a document or page containing hidden instructions
Treat all retrieved content as untrusted; separate data from instructions where possible
- 2Hijacked intent
The agent decides to follow the instructions
Narrow task scope; input and output filtering; monitoring for out-of-pattern behavior
- 3Tool call
It calls a tool it should not need
Per-agent tool allow-list; pinned, approved tool servers
- 4Data access
It reads or sends sensitive data
Least-privilege data scopes; egress controls; no standing broad access
- 5Action taken
It changes a record or sends a message
Human approval for high-impact actions; read-only by default
- 6Slow response
Nobody notices or can stop it quickly
Behavior baselines, alerts, and a verified kill switch
A control checklist
Identity and credentials
- One identity per agent, with a named business owner and technical owner
- No shared credentials, no use of human accounts, no secrets in prompts or configuration
- Short-lived tokens, rotated and revocable; prefer platform-managed identity or federation
Tools and data
- An allow-list of tools and actions per agent, with the approved version and source of each tool server pinned and reviewed
- Per-tool, per-resource scopes: read versus write, specific datasets rather than everything
- No tool that lets the agent grant itself more access or modify its own policy
Human oversight
- Define which actions require human approval: external messages, financial or access changes, deletion, anything irreversible
- Make the request clear: show what the agent intends to do, with what data, and why
- Apply separation of duties: the person who builds or requests an agent should not be the only approver of its access
Monitoring and response
- Log the agent identity, initiating user, tool called, resource touched, and outcome, without storing prompts or responses unless you have a clear need and protection for them
- Compare behavior with the agent's own baseline: new tools, volume spikes, unusual hours, bursts of denied actions
- Maintain a kill switch that disables credentials and the underlying identity, verifies the change took effect, and requires dual control for the highest-risk agents
Tiering agents by capability
Not every agent needs the same scrutiny. Tier by what the agent can do: read-only on public data, read sensitive data, change records, or act autonomously on high-impact systems. Controls then scale with the tier, from basic ownership and logging up to dual control, tested containment, and continuous monitoring.
Agents calling agents
Delegation chains complicate attribution. When one agent invokes another, preserve the original initiating identity, narrow the scope at each hop (never widen it), and limit chain depth. Log the whole chain so you can answer who asked for what.
Common mistakes
- Giving an agent a tenant-wide permission because it was easy during a pilot
- Reusing one service identity across many agents, which makes scoping and containment impossible
- Treating the system prompt as a security boundary
- No inventory, so agents built by business teams are invisible to security
- Skipping the owner, then losing the agent when its creator moves on
Frequently asked questions
Can we rely on a good system prompt to keep an agent safe?
No. Prompts guide behavior but are not an enforcement boundary. Permissions, tool allow-lists, and approvals are.
Should every agent action need human approval?
No. That defeats the purpose. Require it for high-impact, irreversible, or externally visible actions, and let low-risk, reversible actions run.
How do we find agents we do not know about?
Start from the identity layer: enumerate service principals, app registrations, and cloud roles, then identify those associated with AI services and low-code agent builders. See Who owns your AI agents?.
Further reading
- OWASP Top 10 for LLM Applications, including Prompt Injection and Excessive Agency
- RFC 8693: OAuth 2.0 Token Exchange
- Model Context Protocol specification
- NIST SP 800-207: Zero Trust Architecture
- NIST AI Risk Management Framework
- On this site: AI Agent Governance, the non-human identity glossary entry, and AI in identity governance
About Rivitan
Rivitan AI Agent Governance gives each registered AI agent an owner, a risk tier, an approved manifest, and separation of duties on approvals, with every change written to the audit log. Automatic discovery and containment are on the roadmap. See a demo or book a conversation.