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
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.
LLM agents are vulnerable to prompt injection attacks when handling untrusted data.
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.
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).
In use
ConductorOne (C1.ai)
Every agent in our system falls into one of two categories: privileged or quarantined
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.
Sequrity.ai
At Sequrity.ai, we started from the Dual-LLM architecture to build secure autonomous agents.
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.
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.
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.
Sources
- Design Patterns for Securing LLM Agents against Prompt InjectionsBeurer-Kellner et al.
- Defeating Prompt Injections by DesignDebenedetti et al.
- Splitting AI Agents to Contain Prompt InjectionPaul Querna, ConductorOne, Jun 5, 2025
- Single vs. Dual-LLMSequrity
- CaMeL offers a promising new direction for mitigating prompt injection attacksSimon Willison, Apr 11, 2025
- The Dual LLM pattern for building AI assistants that can resist prompt injectionSimon Willison, Apr 25, 2023
Added Nov 14, 2026
