Defeating Prompt Injections by Design
2025/03/24 by Edoardo Debenedetti, Debenedetti, Edoardo, Ilia Shumailov +17 · 23 voices · 58 citations
#cs.CR #cs.AI
paper · pdf · doi:10.48550/arxiv.2503.18813
Abstract
Large Language Models (LLMs) are increasingly deployed in agentic systems that interact with an untrusted environment. However, LLM agents are vulnerable to prompt injection attacks when handling untrusted data. In this paper we propose CaMeL, a robust defense that creates a protective system layer around the LLM, securing it even when underlying models are susceptible to attacks. To operate, CaMeL explicitly extracts the control and data flows from the (trusted) query; therefore, the untrusted data retrieved by the LLM can never impact the program flow. To further improve security, CaMeL uses a notion of a capability to prevent the exfiltration of private data over unauthorized data flows by enforcing security policies when tools are called. We demonstrate effectiveness of CaMeL by solving 77% of tasks with provable security (compared to 84% with an undefended system) in AgentDojo. We release CaMeL at https://github.com/google-research/camel-prompt-injection.
Cited by
Discussions
- CaMeL: Defeating Prompt Injections by Design [hn, 71 points, 16 comments]
- Defeating Prompt Injections by Design [lobsters, 4 points, 0 comments]
- I think you reinvented CaMeL, more or less: arxiv.org/abs/2503.18813 Though output of a LLM that ingested untrusted input can also be a prompt injection vector. [bsky, 4 points, 1 comments]
- Researchers claim breakthrough in fight against AI’s frustrating security hole [lemmy, 3 points, 0 comments]
- Defeating Prompt Injections by Design [hn, 2 points, 0 comments]
- Defeating Prompt Injections by Design [hn, 2 points, 0 comments]
- Ok, this CaMeL concept is exciting! A strong defense against prompt injections could really accelerate adoption. Original Google DeepMind paper here: arxiv.org/pdf/2503.18813 and Simon Willison's anal [bsky, 1 points, 0 comments]
- I find making your agents safe is just as important as making them smart. 🔒 A good read for building secure AI! arxiv.org/pdf/2503.18813 [bsky, 1 points, 0 comments]
- Something like Google's CaMeL? [bsky, 1 points, 1 comments]
- Defeating Prompt Injections by Design [hn, 1 points, 0 comments]
- Defeating Prompt Injections by Design [hn, 1 points, 0 comments]
- Defeating Prompt Injections by Design https://lobste.rs/s/ldfsmq #security #ai [bsky, 0 points, 0 comments]
- Defeating Prompt Injections by Design arxiv.org/abs/2503.18813 [bsky, 0 points, 0 comments]
- CaMeL: Defeating Prompt Injections by Design https://arxiv.org/abs/2503.18813 [bsky, 0 points, 0 comments]
- The work @ethz.ch did with #google to create the CaMeL elaboration: arxiv.org/pdf/2503.188.... (inspiring our team's @mossaka.bsky.social github.com/semcp/dromed... implementation). (Google Research h [bsky, 0 points, 1 comments]
- Una idea que parece razonable es ésta, aunque terminan haciendo programar a la IA: Defeating Prompt Injections by Design arxiv.org/pdf/2503.18813 [bsky, 0 points, 0 comments]
- No system can fully proof itself against its own subversion. Every rule spawns its own loophole. (Weaponized metaphor, breach-as-default, reality tunnels melting.) arxiv.org/abs/2503.1... [bsky, 0 points, 0 comments]
- 見てる: "[2503.18813] Defeating Prompt Injections by Design" https://arxiv.org/abs/2503.18813 [bsky, 0 points, 0 comments]
- Defeating Prompt Injections by Design https://arxiv.org/abs/2503.18813 [bsky, 0 points, 0 comments]
- Google DeepMind came up with a (… potential) solution, but AFAICT it hasn’t found real-world adoption yet: arxiv.org/abs/2503.18813 [bsky, 0 points, 1 comments]
- Interesting take on separating orchestration and execution. arxiv.org/abs/2503.18813 [bsky, 0 points, 0 comments]
- Defeating Prompt Injections by Design arxiv.org/abs/2503.18813 [bsky, 0 points, 0 comments]
- Defeating Prompt Injections by Design #promptinjection #cybersecurity #llms #camel [bsky, 0 points, 0 comments]
Related