Skip to content

Zero-Trust for AI

Learning objectives

By the end of this module you should be able to:

  • State the zero-trust principle in terms an agentic system can enforce.
  • Explain what "fail closed" means at the request level and why the alternative is worse than it looks.
  • Argue the counterintuitive claim that pervasive policy checks make agent behavior easier to reason about.

The principle, stated for AI

Zero-trust, in its original network form, says: do not trust a request because of where it came from. No implicit trust from being "inside the perimeter." Every request authenticates and authorizes on its own merits.

Translated to an agentic AI platform, the principle becomes: no action — retrieval, tool call, model invocation — is trusted because of what performed it. The agent is not privileged. A request that originates from the platform's own reasoning loop is subject to exactly the same authorization check as one that arrives from the edge. There is no "the agent is internal, so it's fine."

This matters because agents are, by design, request generators. A single user question can fan out into a dozen retrievals and tool calls the user never explicitly authorized one by one. If the agent inherited trust, that fan-out would be a trust-amplification device: one authenticated question becoming a dozen unchecked data accesses. Zero-trust for AI closes that gap by refusing to let the agent's internality confer any privilege at all.

Deny by default, and the signed context

Two mechanisms carry the principle.

Deny by default. The policy engine's baseline answer is no. An action is permitted only if a rule explicitly allows it, given the request's context. There is no "allow unless denied" — that arrangement makes the absence of a rule into an accidental grant, and accidental grants are how data leaks.

The signed context object. Every request carries a small, tamper-evident record of who is asking: the identity, the tenant, the clearance level, the action requested. It is assembled once, at the edge, and signed. The policy engine authorizes against this object, not against ambient state the caller might influence. Because it is signed, a deeper layer cannot forge a more privileged context than the edge granted. The agent cannot promote itself.

Fail closed

Now the hard part, and the one most systems get wrong under pressure.

What happens when the policy engine is unreachable — a network partition, a crashed sidecar, a deploy gone sideways? There are exactly two options, and they are not symmetric.

  • Fail open: if we cannot ask the policy engine, proceed as if it said yes.
  • Fail closed: if we cannot ask the policy engine, deny.

Fail-open is the tempting default because it preserves availability: the system keeps working when its authorization brain is down. But consider what it actually means. It means that the single most effective way to bypass every access control in the system is to take the policy engine offline. Your security posture becomes inversely proportional to your reliability at the worst possible moment. An outage stops being merely an availability event and becomes an authorization event.

A sovereign system fails closed. If the policy layer cannot be consulted, the answer is deny — for everyone, including the platform's own agent. Availability suffers during an outage; sovereignty does not. That trade is not close: in an environment where a wrongful disclosure is a federal violation, "the system was briefly unavailable" is an operational problem, while "the system disclosed controlled data because its policy engine was down" is a reportable incident.

Why this makes reasoning easier

The intuition says pervasive checks add complexity — more moving parts, more places to fail. In practice the opposite holds, for a specific reason: a zero-trust system has one story about authorization, and it is always the same story.

In a system where trust is inherited, understanding whether a given action is permitted requires tracing how the request got there: which layer called which, what privileges were in scope, whether some intermediate step elevated them. The authorization question is entangled with the whole call history.

In a zero-trust system, the question "is this action permitted?" is answered by one thing: the signed context and the policy, evaluated at the point of action. The call history is irrelevant to the decision. You can look at any single tool invocation in isolation and know exactly what determines whether it is allowed — because nothing upstream could have granted it a privilege the context does not carry. Localizing the authorization decision is what makes the system auditable one action at a time, which is the only way large agentic systems stay tractable.

Key takeaways

  • Zero-trust for AI means the agent's internality confers no privilege. Agent-generated actions face the same checks as edge-originated ones.
  • Deny-by-default turns a missing rule into a safe non-grant; a signed context makes the authorization decision unforgeable from below.
  • Fail closed ensures an outage is an availability event, never an authorization event. This trade is decisive in regulated settings.
  • Pervasive, localized checks make the system easier to reason about, because every authorization question has the same, history-independent answer.

For further study

  1. Construct a concrete fan-out attack against a fail-open agentic system: one authenticated question, a policy engine you can degrade, and a data access you should not have. Now show exactly where fail-closed breaks it.
  2. Deny-by-default has a well-known cost: it makes the system harder to use, because every legitimate action needs an explicit enabling rule. How would you design the rule-authoring workflow so that this cost does not push operators toward a broad "allow *" rule that quietly re-opens the door?
  3. The module claims the call history is "irrelevant to the decision." Is that strictly true, or does it depend on the signed context capturing everything relevant? Construct a case where two requests with identical signed contexts should be decided differently, and consider what that implies about what the context must carry.

Next: Tenant Isolation, Physical and Logical — why scoping data at the storage layer is a different and stronger claim than filtering it at the API.