Zero Trust for AI Systems: How to Verify Every Model, Agent and Prompt

Zero Trust for AI Systems: How to Verify Every Model, Agent and Prompt

Zero trust for AI systems is the practice of verifying every access request a model, agent or user makes, instead of trusting anything because it sits inside the company network. An AI system touches data, tools and customers in ways a normal application never does, so a single compromised prompt or stolen API key can reach far more than one database. The central question is how to apply zero trust to something that reads, writes and decides on its own, and the answer is to treat every model, agent, prompt and tool call as an untrusted request that must prove its identity, its scope and its purpose before it is allowed through.

Traditional security assumed the network boundary did the trusting: once inside, a user or service could usually reach what it needed. AI breaks that assumption both ways: models ingest content from outside the company, and agents act on systems inside it. A document or email can carry instructions hidden in ordinary text, and an agent that follows them can move data or spend money before anyone notices.

Key takeaways

  • Zero trust for AI systems verifies every model, agent, prompt and tool call, not just human logins.
  • The model is built on three principles: verify explicitly, use least privilege, and assume breach.
  • AI adds new trust boundaries: prompts, retrieved documents, tool calls and model outputs all need checks.
  • Identity, data and tooling controls matter more than network controls for AI workloads.
  • Roll out zero trust in stages, starting with the highest-risk system, and measure every stage.

What zero trust means when the user is a model

Zero trust began as a network idea. Forrester analyst John Kindervag coined the term in 2010 around the maxim never trust, always verify, and the National Institute of Standards and Technology formalised it in Special Publication 800-207, published in August 2020. That publication sets out seven tenets, including that all communication is secured regardless of network location, that access is granted per session, and that access decisions follow dynamic policy based on identity, device posture and context.

The difference is who makes the request. In a normal system, a person asks for a resource and a policy engine decides.

In an AI system, the requester may be a model calling a tool, an agent chaining several tools together, or a retrieval step fetching documents to answer a question. Each of those is a separate request, and each one deserves its own check.

Trust also flows through content, not just credentials. A prompt can contain text copied from a web page, and that text can contain instructions the user never wrote. OWASP lists prompt injection as the leading risk in its Top 10 for LLM Applications, with direct injection from the user and indirect injection from external sources such as websites or files.

A zero trust design treats retrieved content as data, never as instructions, and it checks what the model is about to do before it acts. Best for: any team whose AI system reads untrusted content or calls tools on behalf of users.

The five trust boundaries inside an AI system

An AI system has more boundaries than a normal application, and each one needs its own control. The first boundary is the user: who is asking, what are they allowed to see, and is the session still valid.

The second is the prompt: what instructions are in play, where did they come from, and do any of them come from untrusted content. The third is the data: which documents, records or embeddings the model may retrieve, and whether the user is entitled to see each one.

The fourth boundary is the tool. A model that can send email, query a database or change a record is acting, not just answering, and every tool call is a privilege that should be granted narrowly and logged.

The fifth boundary is the output: what the model produces, where it goes, and whether it contains sensitive data, harmful instructions or fabricated claims that a downstream system would treat as fact. For the wider security picture, see our guide to AI security architecture, which covers how these controls fit together in production.

Identity and access controls for models and agents

Every model and agent needs its own identity, separate from the identity of the person using it. A shared API key is the most common mistake: it cannot be revoked for one system without breaking others, it cannot be scoped to one task, and it tells you nothing about which system made a call. Give each model deployment and each agent its own credential, scope it to the resources that deployment needs, and set a short lifetime so that a leaked key stops working on its own.

Agents need tighter limits than chatbots. An agent that plans and executes multi-step tasks can take actions its user never explicitly approved, so give it only the tools its task requires, cap how many actions it can take in one run, and require human approval for irreversible actions such as sending money, deleting records or contacting customers.

The OWASP guidance on excessive agency makes the same point: a model with too much autonomy or access is a risk in itself, not just a route to one. For a broader view of the risks, see our guide to enterprise AI security, which maps risks to practical controls.

Data controls: what the model may see and say

Data is where zero trust for AI differs most from zero trust for ordinary software. A model can leak data through its answers, so the control has to sit on both sides: what goes into the model, and what comes out.

On the input side, classify the data the model can reach, and enforce the same access rules in retrieval that the source system enforces. If a user cannot open a document in the document store, the model should not be able to retrieve it on their behalf either.

On the output side, filter and log what the model produces. A model that has seen sensitive data will sometimes repeat it, so outputs that go to customers, to other systems or into stored records should be checked for personal data, credentials and confidential business information. Logging matters here too: keep the prompt, the retrieved documents and the output for long enough to investigate an incident, but redact secrets and personal data from the logs themselves, or the log becomes the leak.

Training and fine-tuning data need the same treatment. Data collected for one purpose should not be reused for model training without a check, and datasets should be tracked with their source, their licence and their approval. A poisoned or mislabelled dataset is hard to detect after training, and it is far cheaper to check the data before it enters the pipeline.

Comparing zero trust controls for AI systems

Control What it protects Effort to implement Main weakness
Per-system identities and scoped keys Model and agent access Low Needs key rotation discipline
Per-session access checks Every request, not just login Medium Can add latency if done badly
Retrieval access enforcement Data the model may quote Medium Hard to retrofit onto old indexes
Tool allow-lists and approval gates Agent actions Medium Slows agents that need many tools
Output filtering and logging What leaves the system Medium Filters miss novel phrasing
Continuous monitoring and anomaly alerts Abuse and compromise High Noisy until baselines settle

The table shows a useful pattern: the cheapest controls, scoped identities and per-session checks, also remove the largest share of risk. Monitoring is the most expensive control and the noisiest at first, but it is the only one that catches a compromise after the other controls have been bypassed, so it belongs in the plan even if it comes last.

Hands typing on a laptop keyboard with a glowing blue padlock hologram above the screen
Every request a model or agent makes should be verified on its own merits, just as every login is.

Rolling out zero trust in four stages

Start with an inventory, not a purchase. List every AI system, every model it uses, every data source it can reach, every tool it can call, and every person who can change its configuration.

Most teams discover systems they had forgotten, including experiments that were never switched off. An inventory you cannot see cannot be protected, and this stage usually takes longer than expected, which is exactly why it comes first.

Next, fix identity and access for the highest-risk system. Give it its own credentials, scope its data access to what its users are entitled to see, and put approval gates on its irreversible actions.

Measure the result: how many access requests are denied, how often a gate fires, and whether legitimate work slows down. If the controls break real work, they will be bypassed, so tune them until the friction lands on abuse rather than on normal use.

Then extend the same controls to the next systems, in risk order, and add output filtering and logging as you go. Use the logs to build baselines for normal behaviour, so that monitoring can spot the unusual: a sudden rise in tool calls, or a model reading data it never read before.

Finally, review the whole estate on a schedule, recheck that old credentials are gone, and test the controls the way an attacker would, with prompt injection attempts and a stolen key. A control that has never been tested is a hope, not a control.

Zero trust for AI systems checklist

  • An inventory exists of every AI system, model, data source, tool and configuration owner.
  • Each model deployment and agent has its own identity and scoped credentials, with short lifetimes.
  • Access is checked per session and per request, not once at login.
  • Retrieval enforces the same access rules as the source system for every document.
  • Retrieved content is treated as data, never as instructions to the model.
  • Agents have only the tools their task needs, with caps on actions and approval gates for irreversible steps.
  • Prompt, tool and configuration changes need a second approver and are logged.
  • Outputs are filtered for sensitive data before they reach customers or other systems.
  • Prompts, retrievals and outputs are logged with secrets redacted.
  • Monitoring has baselines, and the controls are tested with injection attempts and a stolen key.

Frequently asked questions

Is zero trust for AI systems different from normal zero trust?

Yes, in scope rather than in principle. The same ideas apply, verify explicitly, least privilege, assume breach, but AI adds new boundaries: prompts, retrieved documents, tool calls and model outputs all need checks that a normal application never needed.

Does zero trust slow AI systems down?

It can, if checks are added carelessly. Per-session checks and output filtering add latency, so cache policy decisions where the context has not changed, and tune the controls until the friction lands on abuse rather than on normal work.

How do you stop prompt injection in a zero trust design?

There is no complete fix for prompt injection. The reliable controls limit what an injection can achieve: separate instructions from data, give the step that reads untrusted content no tools, and require approval for actions that cannot be undone.

Should agents have the same access as the user they serve?

No. An agent should have the minimum access its task needs, which is usually less than the user has. A user who can read a whole database does not need an agent that can read the whole database to answer one question.

How often should zero trust controls be reviewed?

Review the inventory and credentials at least quarterly, and retest the controls after any major change to prompts, tools, models or data sources. A control that has never been tested is a hope, not a control.

This article is general guidance, not legal advice. If your AI system handles regulated data or makes decisions that affect people, check the rules that apply to your sector and jurisdiction with a qualified adviser before you rely on any control described here.

Latest articles

Scroll to Top