37Systems of agents

Dual LLM

Keep untrusted text away from the model that can act; a second model with no tools reads it instead.

Beurer-Kellner et al., Debenedetti et al., ConductorOne, Sequrity, Simon Willison

a taska structured choicePersonUserPrivileged, AgentPrivileged LLMUntrusted dataToolToolsQuarantined, Model callQuarantinedLLM
How to read this

The problem

An agent with tools can be steered by instructions hidden in the untrusted data it handles.

Sadly, there is no known reliable way to have an LLM follow instructions in one category of text while safely applying those instructions to another category of text.
Simon WillisonCaMeL offers a promising new direction for mitigating prompt injection attacksApr 11, 2025
LLM agents are vulnerable to prompt injection attacks when handling untrusted data.
Debenedetti et al.Defeating Prompt Injections by Design

Therefore

A privileged LLM has access to tools but never processes untrusted data. This LLM can call a quarantined LLM to process untrusted data, but without any tool access.
Beurer-Kellner et al.Design Patterns for Securing LLM Agents against Prompt Injections
Willison proposes an isolation-based model, where the tool calls are planned by a privileged LLM which only sees the user prompt and never sees untrusted, third-party data. Then, this LLM queries a Quarantined LLM–which does not have any tool-calling capabilities–to process untrusted data (e.g., to summarize an email).
Debenedetti et al.Defeating Prompt Injections by Design

In use

ConductorOne (C1.ai)

Every agent in our system falls into one of two categories: privileged or quarantined
ConductorOneSplitting AI Agents to Contain Prompt InjectionJun 5, 2025

ConductorOne (C1.ai)

Low-trust input gets routed to a quarantined agent that extracts meaning and strips anything that looks like a command. Most of the time the output isn't free text at all — the quarantined agent maps the input to an enumeration or a structured choice that the privileged agent can act on directly.
ConductorOneSplitting AI Agents to Contain Prompt InjectionJun 5, 2025

Sequrity.ai

At Sequrity.ai, we started from the Dual-LLM architecture to build secure autonomous agents.
SequritySingle vs. Dual-LLM

Where it breaks

It fails when the next action depends on the untrusted text, and the model reading that text can still be fooled into returning an attacker’s words.

One failure mode that is inherent to CaMeL (and in general to the Dual LLM Pattern) is what we call the “Data requires action” failure, where the actions to take depend on untrusted data.
Debenedetti et al.Defeating Prompt Injections by Design
the quarantined LLM is still susceptible to prompt injection. Although it cannot call tools, this LLM still has access to any sensitive data it might have been given and can still produce attacker-controlled output.
Beurer-Kellner et al.Design Patterns for Securing LLM Agents against Prompt Injections
Tricking users into copying and pasting out obfuscated data could still be effective even if they can’t click directly on links or load data leaking images.
Simon WillisonThe Dual LLM pattern for building AI assistants that can resist prompt injectionApr 25, 2023

Sources

  1. Design Patterns for Securing LLM Agents against Prompt InjectionsBeurer-Kellner et al.
  2. Defeating Prompt Injections by DesignDebenedetti et al.
  3. Splitting AI Agents to Contain Prompt InjectionPaul Querna, ConductorOne, Jun 5, 2025
  4. Single vs. Dual-LLMSequrity
  5. CaMeL offers a promising new direction for mitigating prompt injection attacksSimon Willison, Apr 11, 2025
  6. The Dual LLM pattern for building AI assistants that can resist prompt injectionSimon Willison, Apr 25, 2023

Added Nov 14, 2026