Content quarantine
Text written by strangers is treated as data, never as instructions.
What it is
The model that decides actions never reads untrusted text (emails, invoices, web pages, crawled sources). A separate, quarantined model reads it and returns only typed fields, such as {amount, invoice_no, payee}. Instructions hidden in the text have no way through.
When to use it
- The system reads content written by outsiders and can act or publish
When to skip it
- Closed systems whose inputs are all trusted
Why (the trade-off)
Prompt injection can't be filtered reliably, but it can be designed out: the part that can act never sees the attacker's words.
Where it sits
Safety layer, between where untrusted content is read and the part that decides (the planner, or the wiki's writer).
What it needs first
- one ofPlanner (plan, then execute)orWriter agenta privileged decider to protect: an agent's planner or a wiki's writer
What can be added to it
- pairs withEgress allowlistif something still slips through, it can't leave
Effect of adding it
- cost ↑
- latency ↑
- reliability —
- safety ↑↑
Risks it handles
- Hidden instructions in content · full
- Data leaves for somewhere it shouldn't · partial
- Instructions hidden in a source · full
- Coordinated bad suggestions · partial
- A planted memory · partial
New risks it brings
- If the value you need is itself attacker-controlled (the bank account printed on the invoice), quarantine can't help: cross-check it against a trusted record.
Learn first (AI Engineering)
Sources
- reportThe Dual LLM pattern for building AI assistants that can resist prompt injection · Simon Willison2023-04-25
- paperDefeating Prompt Injections by Design (CaMeL) · Debenedetti et al., Google DeepMind (arXiv)2025-03
- reportAgentic browser security: indirect prompt injection in Perplexity Comet · Brave2025-08-20
- reportThe lethal trifecta for AI agents · Simon Willison2025-06-16
depth 4+2 production notes with numbers.