Blog

Applying Zero Trust to AI Agents

Your identity program verifies every human and postures every device. Then an agent shipped with a service account, a static key, and a scope of whatever the workflow needs. It authenticates once at 6 a.m. and acts for eleven hours. The tenets still apply.

Applying Zero Trust to AI Agents

Key Takeaways

  • Zero Trust for AI agents needs no new tenets — it needs the existing ones applied to a principal that composes its own actions.
  • Verify explicitly has to mean verifying the action, not the actor: the agent’s workload identity, the human it acts for, and the provenance of the instruction that produced the request.
  • Least privilege for agents means per-task credentials, operation-level RBAC, a versioned tool allowlist and ceiling parameters, because the caller writes its own requests.
  • Assume breach pays off most in one place: separating the component that reads untrusted content from the component that holds credentials.
  • The model strains where policy needs a subject and a verb: agents chain individually permitted steps into a harmful sequence, and per-call authorization cannot see it.

Your identity team finished the Zero Trust program two years ago. Humans authenticate with a phishing-resistant factor, devices are postured, applications sit behind a policy engine. Then an agent shipped with a service account, a static key in a secret manager, and a scope of “whatever the workflow needs.” It authenticates once at 6 a.m. and acts for eleven hours. None of that is Zero Trust, and no gate in your program was designed to catch it.

Applying Zero Trust to AI agents means treating the agent as an untrusted principal whose every action is authorized on its own merits, not a trusted service that authenticated at startup. The tenets hold. What changes is that the unit of verification moves from the session to the call.

What Does Zero Trust Mean When the Principal Is a Model?

Zero Trust was written for principals bounded by a program or a job description. An agent is bounded by neither.

Predictability. Human: acts inside a role, so anomalies stand out against a stable baseline. Agent: composes novel action sequences by design, and the baseline shifts every time someone edits a prompt.

Origin of intent. Human: intent starts with the principal. Agent: intent arrives in the context window, from a ticket, a document or a web page an attacker may have written.

Auditability. Human: the log says who did it. Agent: the log says the service account did it, unless you propagated the person underneath.

Each row is a control that works for people and degrades quietly for agents, the pattern in Why Traditional Security Fails for AI Systems.

Verify Explicitly: Verify the Action, Not the Session

“Explicitly” means every access decision uses all available signals. For a non-deterministic principal, three are non-negotiable.

1. The agent’s own identity

A workload identity, short-lived and attested, not a shared API key in an environment variable. If two agents present the same credential, you have one principal with two behaviors and no way to separate them during an investigation.

2. The human the action is for

Carried as a verifiable claim the resource server evaluates, not a parameter the model fills in. Without it, every downstream system sees a service account holding the union of everyone’s permissions.

3. The provenance of the instruction

The request exists because the model read something. Verification that ignores what it read will authorize a well-formed action a web page asked for. Tag context by source, and raise the bar for privileged actions proposed after untrusted content enters the session.

Least Privilege for a Caller That Writes Its Own Requests

Four controls, in the order they pay off.

Per-task credentials. Mint at task start, scope to the task, expire at task end. A refund agent gets authority over this ticket, not over the refund API.

Operation-level RBAC. Permissions at the operation and object level: “read tickets assigned to this customer,” not “read tickets.”

A versioned tool allowlist. The set of tools an agent can reach is part of its identity. Store it, review changes like code changes, and deny by default.

Ceiling parameters. A maximum refund value, a row limit, a rate limit. The model can compose any request; ceilings decide which of them you can survive.

The identity plumbing beneath this — ownership, lifecycle, rotation, access review — is its own program, set out in Non-Human Identity: Governing AI Agent Credentials.

Assume Breach: Design the Blast Radius First

Assume the model will be talked into something. The input is untrusted text and the interpreter is probabilistic.

The highest-value segmentation in agent architecture is between reading and acting. The component that ingests untrusted content holds no credentials and no write tools; the component that acts never sees raw external text, only a schema-validated request. An injected instruction has to survive a translation step with no vocabulary for it.

Two more, both unglamorous. Session revocation that works: a switch that terminates in-flight sessions and invalidates the credentials they hold, tested on a schedule rather than discovered mid-incident — and it has to survive the objection that killing the agent stops a production workflow. And a stated blast radius per agent: if every tool call in the last hour had been attacker-chosen, what is the worst outcome? If the answer takes more than a sentence, the scope is too wide.

Continuous Verification, Not One-Time Authentication

A human session is re-evaluated on risk signals. An agent session should be re-evaluated on every action, using inputs you already have: elapsed time, cumulative spend, deviation from the declared task, tool-call rate, and whether untrusted content entered the context since the last check.

Then step up: as risk accumulates, demand stronger evidence — a fresh credential, a second signal, a person. Authority should decay during a long-running task rather than be granted once and held.

Where Does Zero Trust Strain Against AI Agents?

Three, and they are worth naming before an auditor does.

Policy sees calls; agents build sequences. Read the customer table: permitted. Write to an external document: permitted. The composition is exfiltration, and a per-call decision point cannot see it. Sequence-aware policy is possible; almost nobody has it yet.

The attribute that matters is semantic. “Is this action what the user actually asked for?” is not a claim you can verify cryptographically. Classifiers raise the attacker’s cost; they do not make the check deterministic.

Least privilege trades against usefulness. A general assistant earns its keep on breadth, and narrowing it far enough thins the business case. Make that trade explicitly, with an owner’s name on it, rather than letting it resolve itself through over-provisioning.

Where Cranium AI Fits

Zero Trust starts with a defined protect surface, and for agents that surface is written in your source code before it ever runs. The AI Trust Loop runs Discover, Observe, Govern, Secure, and Prove:

  • Discover Cranium AgentSensor™ detects agentic frameworks in your repositories — Amazon Strands, CrewAI, smolagents, Microsoft AutoGen-AgentChat, LangGraph, OpenAI Agents — maps agent-to-agent handoff graphs, and inventories the agent tools and MCP servers it finds in source code into the AI Bill of Materials. That graph is your protect surface, drawn from what shipped rather than what was designed.
  • Observe Cranium Guardian inspects traffic between your AI application and the LLM it calls, per interaction — the Tool Inspector records the tool calls made during an event, with token and cost tracking per session. The Shadow AI view classifies activity from your connected SIEM into AI Provider Access, AI-Enabled SaaS, AI Web App Usage and Dev App Embedded AI.
  • Govern Profiles set every signal to block, modify or pass, independently on input and output, with Listen mode recommending in parallel before you enforce. The AI System Manager holds the inventory as system of record.
  • Secure Guardian’s security signals cover Jailbreaking, Instruction Override, Goal Hijacking, Role Impersonation, Prompt Leaking, Direct Command Injection and Self-Referential Injection, with Trace™ explaining each verdict through deterministic classifiers. Cranium Arena™ tests those failure modes adversarially against MITRE ATLAS and the OWASP Top Ten for LLMs.
  • Prove Compliance scoring against NIST AI RMF, ISO/IEC 42001 and the EU AI Act, with citation-backed attestations and the Cranium AI Card™ as the artifact you hand an auditor or a customer.

The honest boundary: Cranium AI does not issue agent credentials, enforce least privilege, or authorize an individual tool call — those enforcement points belong in your identity and orchestration stack. Cranium AI tells you which agents exist and what tools they hold, records what they did, and enforces on the prompt-and-response channel where the instruction arrives.

Frequently Asked Questions

Should agents have their own identities or reuse the user’s?
Their own, with the user’s identity propagated as a claim. Impersonation collapses your audit trail and hands the agent the user’s whole permission set.

Is a human approval step Zero Trust?
It is a control, not a tenet, and it works where actions are irreversible and rare. Applied to every call it produces approval fatigue, and a fatigued approver is a rubber stamp.

Where do we start if Zero Trust for humans is already done?
Inventory the agents and the credentials they hold, then move the single highest-privilege agent to per-task credentials. The pattern generalizes from there.

Does hosting the model ourselves change the analysis?
Barely. Self-hosting changes where data goes, not who authorized the action.

See Cranium AI in Action

See the agent-to-agent graph and tool inventory Cranium AI builds from your repositories—schedule a personalized demo: cranium.ai/get-a-demo/