Skip to main content

CaMeL

CaMeL (CApabilities for MachinE Learning) is a prompt-injection defense from Google DeepMind that wraps an AI agent in a system layer, so untrusted data cannot change what the agent does or where private data goes.

CaMeL is described in the paper "Defeating Prompt Injections by Design" by Edoardo Debenedetti, Ilia Shumailov, Nicholas Carlini, Florian Tramèr and colleagues at 📝DeepMind, submitted in March 2025 and revised in June 2025. It builds on Simon Willison's 📝Dual LLM Pattern. A privileged model turns the user's request into a program in a restricted Python-like language, and a custom interpreter runs it step by step. A quarantined model with no tools parses untrusted data inside that program. Because the program's control flow comes only from the trusted request, retrieved content cannot alter the execution path.

Every value carries capabilities, tags recording where it came from and who may read it, and values derived from untrusted sources inherit those tags. Security policies check the tags before any tool call: a send_email step might run only when the recipient came from a trusted source, and otherwise asks the user to approve. This closes the Dual LLM gap in which an injected document swaps in an attacker's address. CaMeL adds no trained classifier; it relies on capabilities and data-flow analysis from traditional software security (Willison, April 2025).

On the AgentDojo benchmark, CaMeL completed 77% of tasks with provable security, against 84% for an undefended agent. The authors state that 📝Prompt Injection is not fully solved. The costs fall on the operator: security policies must be written and maintained, and frequent approval requests can produce approval fatigue. Because the quarantined model needs no tools, it can be a smaller model, potentially run locally, so the provider of the privileged model never sees tool outputs.

The local quarantined model is the part that matters for 📝BrianBot: it gives the Mac Studio a concrete job that keeps untrusted internet content away from the frontier models that hold our tools.

Contexts

MythOS is a product of Cooperating Citizens of One, Inc.

TermsPrivacyRefundsSub-processorsContact

© 2026 Cooperating Citizens of One, Inc. · MythOS since 2017 · Not affiliated with Anthropic.