Document an agent’s trust zones
Key takeaway
Untrusted content can influence model output. Allowable sources and actions are determined by the controlling application.
Lessons in this path
How it works
Map mail, search, documents and tool results separately. Identify approved sources and responsible roles. Review where content could cross into another context or reach an external provider.
Worked example
An agent reads public material and internal policies. Internal access and external disclosure are separately controlled decisions.
What is a trust zone for an agent?
An AI agent is a system in which a language model not only produces text but decides itself which tools to call next. A trust zone groups data and systems with the same protection need and origin. The crucial point: to the model, all content in its context is equal, whether it comes from group policy, a customer email or a web page. A sentence in an external email can therefore act like an instruction. This risk is called prompt injection and, by current understanding, cannot be fully solved inside the model.
The consequence is architectural: as soon as untrusted content enters the context, the surrounding application must assume the model may be influenced and restrict the available actions accordingly.
| Zone | Examples | Default rule |
|---|---|---|
| External, untrusted | Inbound mail, web pages, third-party uploads | Read only, never treat as instruction |
| Internal, general | Policies, intranet, product docs | Read by role |
| Internal, confidential | HR data, contracts, financial data | Only with own approval, no combination with external communication |
| Acting systems | ERP, CRM, mail sending, ticketing | Write actions only via controlled tools |
Step by step to the zone model
The zone model is best created in a workshop with the business, architecture and information security, supported by a data-flow diagram.
- List every input to the agent: user input, retrieved documents, tool results, web content, memory from earlier sessions.
- Assign each input to a zone; when in doubt, to the lower trust level.
- List every output: answer to the user, tool calls, external providers, logs.
- Mark dangerous combinations: untrusted input plus confidential data plus an outbound channel.
- Define a rule for each marked combination: separate, require human approval or prohibit. Name an owner for each boundary.
The combination of access to confidential data, exposure to untrusted content and an outbound channel is the classic recipe for data exfiltration. Break at least one of the three.
Going deeper: architecture patterns for zone separation
Proven patterns: first, a two-stage design in which a model exposed to untrusted content passes only structured, validated data (such as category and fields) to a second model or process that may operate tools. Second, output filters that strip or allowlist links, image URLs and Markdown in responses, since they can serve as an inconspicuous exfiltration path. Third, context isolation: separate sessions and memory per case so content does not act across cases.
These patterns complement classic zero-trust principles: every request is evaluated anew based on identity, context and policy, not on network segment. The agent gets its own limited identity and does not blanket-inherit the calling user’s rights.
Example: Supplier enquiries in procurement
Example (fictional): an agent in a machinery group’s procurement should read supplier emails, compare them with framework contracts and prepare replies. The zone analysis reveals the dangerous combination: external mail, confidential terms, mail sending.
Solution: stage one extracts only supplier number, item and request from the mail into a fixed schema. Stage two reads the terms and creates a draft but never sees the original mail text. Sending is done only by a person. A hidden sentence in a test mail asking for the price list to be forwarded thus has no effect.
Common mistakes
- Treating prompt injection purely as a model problem and relying on instructions like “ignore foreign commands”.
- Classifying tool results and retrieved documents as trusted although they may contain foreign content.
- Giving the agent the calling user’s rights wholesale.
- Rendering links and images in responses without filtering.
Frequently asked questions
Can prompt injection be fully prevented?
By current understanding, not reliably inside the model. That is why the impact is limited through architecture, permissions and human approval.
Who should own the zone model?
The application owner for the business side, information security for the method. Both sign off the model.
Does the zone model also apply to purchased agent platforms?
Yes. With purchased solutions, too, you need to know which sources and tools the agent uses and where content is processed. Request documentation on permissions, isolation and logging from the vendor and use the configurable limits.
Try it yourself
Draw all source types, destinations and tool roles.
Check your result
Every boundary has an owner and an intelligible rule.