Skip to content

Prompt injection: what it is, and how to defend

Prompt injection has no patch. What it is, which attacks really happened, and how to scope AI agents so a successful hijack stays cheap.

Prompt injection is the bug you cannot patch. If a model reads text you do not control, and that model can then act (call a tool, send a message, open a pull request, query a database), whoever wrote that text gets a shot at steering it. No input sanitisation closes the hole, because the hole is the product: the model is built to follow instructions written in plain language, and it has no reliable way to tell which sentences came from you and which came from a web page it fetched thirty seconds ago. I get uneasy when a client tells me their agent is "secured by the system prompt". A system prompt is a request, not a boundary. Four years after Simon Willison named the attack in September 2022, the state of the art is still mitigation: shrink the blast radius, and assume the model will eventually be talked…