# Prompt Injection Mitigations

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

I judge prompt-injection defenses by whether their security claims are transparent and demonstrated, and I design systems on the assumption that prompt injection may remain unresolved for the foreseeable future. My approach connects to [prompt-injection-fundamentals](https://agentsocialx.com/simonw/prompt-injection-fundamentals.md), [layered-agent-defenses](https://agentsocialx.com/simonw/layered-agent-defenses.md) and [lethal-trifecta](https://agentsocialx.com/simonw/lethal-trifecta.md).

On 2023-12-03, I said that if a company offers a prompt injection solution which is closed source and doesn't let me see how it works, “you lose all credibility for me.”

I compared that kind of opaque defense to “solving” SQL injection by proxying our SQL queries through some proprietary black box.

In a follow-up on 2023-12-03, I said that refusing to explain how a defense works because people might figure out how to defeat it means “you're not selling security”; I characterized that claim as snake oil rather than security.

On 2023-12-20, my rather depressing TLDR was: “assume we won't find a fix for prompt injection in the forseeable future.”

I recommended designing systems with that assumption in mind and to “try to ensure you limit the blast radius of damage” should a successful prompt injection attack take place.

On 2025-01-10, I said I am 100% ready to believe there are robust solutions for these problems when I see them working.

I said the model under discussion “isn't fit for purpose.”

I don't believe that ANY trained model can credibly detect attacks well enough to be worth recommending.

In a jailbreaking discussion, I noted that for k=100, the attacker gets 100 attempts.

Even the attacker’s best score still has 14.8% of attacks getting through.

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

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