Skip to content
Knowledge base
AI & Agents8 min readNovember 19, 2026

Securing AI Agents with Zero Trust: Delegation, Tool Scoping, and Limiting the Blast Radius

AI agents act on behalf of people, call tools, and read untrusted content. How to apply Zero Trust to agents: delegated tokens, per-agent identity, tool allow-lists, approval for high-impact actions, prompt-injection containment, and a kill switch.

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

Figure 1Delegated versus autonomous agents

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
Many real agents combine both. Whichever pattern applies, every action should be attributable to a specific agent and, where relevant, a specific person.

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.

Figure 2Delegated access, step by step
UserAgentAuth serverTool API1. Ask for a task2. Request token for the user3. Check consent, policy4. Short-lived, narrow token5. Call tool with that token6. Check user and agent7. Return result8. Confirm high-impact step
The tool authorizes the user and the agent. If either lacks permission, the call fails. The token expires quickly, so a leaked token has limited value.

Zero Trust principles applied to agents

PrincipleWhat it means for an agent
Verify explicitlyAuthenticate the agent and the initiating user on every call; evaluate device, session, and risk signals; require re-authorization when context changes
Use least privilegeMinimal scopes, minimal tools, minimal data, minimal duration; separate identities for separate purposes; read-only unless writing is essential
Assume breachDesign 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.

Figure 3How a manipulated agent becomes an incident
  1. 1Hostile content

    The agent reads a document or page containing hidden instructions

    Treat all retrieved content as untrusted; separate data from instructions where possible

  2. 2Hijacked intent

    The agent decides to follow the instructions

    Narrow task scope; input and output filtering; monitoring for out-of-pattern behavior

  3. 3Tool call

    It calls a tool it should not need

    Per-agent tool allow-list; pinned, approved tool servers

  4. 4Data access

    It reads or sends sensitive data

    Least-privilege data scopes; egress controls; no standing broad access

  5. 5Action taken

    It changes a record or sends a message

    Human approval for high-impact actions; read-only by default

  6. 6Slow response

    Nobody notices or can stop it quickly

    Behavior baselines, alerts, and a verified kill switch

Outcome: a small manipulation causes real harm because the agent could do too much
Controls at the later steps matter most, because they work even when the earlier steps fail.

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

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.

#AI agents#Zero Trust#OAuth#MCP#Prompt injection#Excessive agency#Least privilege
M

Written by Mehdi Rezaei

Founder & Identity Architect — 14+ years securing Fortune 500 environments across Entra ID, Active Directory, governance, and automation. Written from real engagements, by hand.

Connect on LinkedIn

Ready to simplify enterprise IAM?

Book a free 30-minute discovery call. We'll talk through your identity estate and where the biggest wins are — platform, advisory, or both.

Book a Call