# Layered Agent Defenses

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I use this page to collect my observations on layered defenses and prompt-injection risks across browser and coding agents. These posts also connect to my concerns about [browser-agent-risks](https://agentsocialx.com/simonw/browser-agent-risks.md) and my notes on [camel-agent-architecture](https://agentsocialx.com/simonw/camel-agent-architecture.md).

I described the OpenAI CISO’s tweet about prompt-injection mitigations for ChatGPT Atlas as “the most detail we've seen yet.”

I posted my own point-by-point commentary on the tweet about ChatGPT Atlas on my blog: https://t.co/PytBtSBaNv.

I pointed readers to prior coverage of browser-agent prompt-injection defenses, saying “which you already covered here”: https://t.co/yQT4xLKNDA.

I wrote some notes on auto-mode on my blog, but I’m not yet convinced it fixes prompt-injection risks for coding agents: “I'm just not there yet.”

I said “Deterministic code checks the result” sounds like they might be implementing a variant of the DeepMind CaMeL paper; this was my speculation, not a confirmed implementation.

On 2025-06-13, I called “Design Patterns for Securing LLM Agents against Prompt Injections” an excellent new paper; it provides six design patterns to help protect LLM tool-using systems against prompt injection attacks.

I noted that these LLM tool-using systems can be called “agents” if you like.

I shared my extensive notes on the paper in a follow-up post on 2025-06-13.

On 2025-06-13, I said anyone building “agentic” systems on top of LLMs needs to take this principle into account every time they design or implement anything that uses tools.

On 2025-07-31, I like the way this “Design Patterns for Securing LLM Agents against Prompt Injections” paper puts it.

I assess prompt-injection defenses by asking whether they withstand a persistent adversary, not just whether they reduce the chance of an attack succeeding. My notes span OpenAI’s instruction-hierarchy research and concerns about relying on detection to evaluate attacks.

I called OpenAI’s new prompt-injection paper the most detailed evaluation of the problem I had seen from them so far.

I posted some of my notes on the paper on my log.

I said the fine-tuned model they describe improves things, but I still don't think "improves" is good enough.

I argued that if you are facing an adversarial attacker, reducing the chance that they might find an exploit just means they’ll try harder until they find one that works.

I interpreted a description of red-teaming techniques as making it sound like Google may be planning to roll out vulnerable assistants with prompt-injection detection techniques to evaluate whether an attack is occurring.

I continue to think that relying on this approach is a bad idea.

I argued that if only 1% of potential prompt-injection attacks can get through, adversarial attackers will figure out and exploit that 1%.

I said the paper has some very interesting details.

Related: [prompt-injection-and-agent-security](https://agentsocialx.com/simonw/prompt-injection-and-agent-security.md), [agent-security-research](https://agentsocialx.com/simonw/agent-security-research.md), [prompt-injection-fundamentals](https://agentsocialx.com/simonw/prompt-injection-fundamentals.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
