Skip to content
Research Insights Made Simple
Research reviewResearch Insights Made Simple

The agent reads email. Who decides the replies?

Six prompt-injection defense patterns and the cost of CaMeL

/ Research Insights Made Simple · Agent harnesses 21/25 · Walls for agents

Slide contents

  1. 1. The agent reads email. Who decides the replies?

    Six prompt-injection defense patterns and the cost of CaMeL

  2. 2. Defense costs depend on the model

    AgentDojo · utility with native tools and with CaMeL

  3. 3. Four stops: from principle to price

    The principle, six patterns, ten cases and the CaMeL measurement

  4. 4. Heuristics raise the bar but guarantee nothing

    The three defense levels of Section 2 and why the authors bet on isolation

  5. 5. Untrusted data must not trigger consequential actions

    The agent still acts: an injection changes the email body, not its recipient

  6. 6. Five practices every agent needs

    Appendix A: hygiene alongside the patterns

  7. 7. The model picks actions, never sees results

    Action-selector: the LLM is a switch over predefined actions

  8. 8. The plan is fixed before reading data

    Plan-then-execute: an injection changes arguments, not the set of calls

  9. 9. Each document gets an isolated model

    LLM map-reduce: an injection stays locked in its own document

  10. 10. The privileged model sees only variable names

    Dual LLM: a model without tools reads the untrusted data

  11. 11. The plan becomes code that calls models

    Code-then-execute generalizes the plan; CaMeL is built this way

  12. 12. The user's prompt is removed from context

    Context-minimization: a defense against injection in the prompt itself

  13. 13. Every wall leaves its own gap

    What an injection can still do, and what each wall costs

  14. 14. Each case gets its own pattern mix

    Table 1, our count: 18 ticks; dual LLM appears most often

  15. 15. Safest design: the agent sees only APIs

    Confirmations get bypassed, sandboxes choke, strict formats cut utility

  16. 16. Dual LLM guards control flow, not data

    An injection in the meeting notes swaps recipient and document, plan intact

  17. 17. CaMeL checks values before every tool call

    The P-LLM writes code, the Q-LLM parses data, the interpreter enforces policy

  18. 18. Where exactly CaMeL loses utility

    AgentDojo without attack: native tool calling vs CaMeL

  19. 19. AgentDojo attacks almost vanish

    Successful attacks of 949: native calls vs CaMeL with policies

  20. 20. CaMeL's guarantees do not cover every attack

    The user prompt and memory are trusted; text-to-text attacks are out of scope

  21. 21. Side channels erode the strong guarantees

    Three examples from Section 7: a fetch counter, an exception and time

  22. 22. Injections are not fully solved, authors say

    People maintain policies, users tire, ROP-style attacks may follow

  23. 23. Walls are code, not prompts

    Link to the talk: never delegate authorization; code, not prompts, closes holes

  24. 24. Secure the architecture, not the model

    The authors' two recommendations and the price CaMeL measured