Prompt injection is the new SQL injection (only worse)
We spent nearly thirty years teaching the industry that data and instructions have to be kept apart. Then we built systems where by definition they cannot be: language models that read documents, emails and web pages where anyone at all can write instructions.
The history that rhymes
SQL injection taught the industry an expensive lesson: when data and instructions share one channel, data can become instructions. The fix arrived eventually, and it was structural: parameterized queries separate the two channels completely. The problem became solvable.
Then we built LLM-based systems. And reintroduced the mixing, as an architectural principle.
A language model has one channel: text. Your system instruction is text. The user’s question is text. The document the model reads, the email it summarizes, the web page it fetches – text, text, text. All in the same stream, and nothing in the structure tells the model who is “speaking”.
Which means: anyone who can get text into the context can try to instruct your model. The customer writing in the support form. The sender of the email the agent reads. The author of the web page the tool fetches. It is injection, only this time there is no parameterization to reach for.
This is not an observation I made up. Prompt injection is listed as LLM01, the top entry, in the OWASP Top 10 for LLM and GenAI, the industry’s attempt to catalog the class the way the OWASP Top 10 once cataloged the web flaws. It has held first place in every edition so far, most recently in the 2026 edition that landed in August. If you are building anything on a language model, that list is roughly an hour of reading and the cheapest thing you will do this year.
The list separates direct injection, where the user writes the attack themselves, from indirect injection, where the attack sits in a document, an email or a web page the model pulls in. The indirect variant is the dangerous one, because the text that fools the model usually sits somewhere nobody on your side reads until the damage is done.
Why “only worse”
Three reasons the title is not clickbait:
No structural fix exists. SQL injection has a structural fix: parameterized queries. So far, prompt injection can only be reduced: filters and instructions help, but a sufficiently creative phrasing often finds its way through. You are building on a component that by design does not separate the channels.
The attack surface is all the text the system reads. Not just your input fields. Every document, every email, every search result an agent processes is potentially hostile. The surface grows with every data source you connect.
And the consequences grow with the agents. A chatbot talked into saying something stupid is embarrassing. An agent with tool access – one that can send email, fetch data, change code – talked into doing something, is a break-in. Carried out by your own system, with the permissions you gave it.
It happened in February 2026. Cline, an AI coding tool with millions of installs, let a Claude agent triage new GitHub issues, with Bash among its tools. Security researcher Adnan Khan showed that instructions in one issue title were enough to make the agent run the attacker’s code in the pipeline, poison the build cache and reach the publish tokens. Someone did: on 17 February an unauthorized cline@2.3.0 sat on npm for about eight hours, with an install script that pulled in a foreign package. Nobody “hacked” the model. Someone wrote a title.
The OWASP list shows the same: in the 2026 edition Excessive Agency climbed to third place. OWASP says it outright: most of the serious injection incidents became serious because the model sat in a system where it could run commands, call APIs and change data. The more permissions the agent holds, the larger the damage.
The defense: assume the model can be fooled
Since injection cannot be eliminated, the architecture has to hold when it succeeds. That is also where OWASP itself lands in the 2026 edition: stop trying to build a model nobody can fool. Build the system around it, so nothing important breaks on the day someone does.
It flips the design question:
Not “how do we stop the model from being fooled?”, but “what is the worst a fooled model can do here?”
The answer is built from familiar principles, applied to a new component:
- Least privilege for the model: it gets only the tools and the data the task requires, never “access to everything” for convenience
- Irreversible actions require a human: send, delete, pay, publish – the model may propose, a human confirms
- Don’t let one agent hold all three at once: private data, untrusted text and a way out (web requests, email, links and images that render). Remove one of the three, or have a human approve each action. Otherwise a fetched web page can make the model “show an image” from an address that carries the conversation with it
- Treat model output as untrusted input: what comes out of the model gets validated before it is used further, exactly like user input. The model is not a trusted component; it is a trust boundary
- And log the context: when something odd happens, you need to see what the model actually read, stored with the same access control and retention rules as the data it read. Without that, incident response is guesswork
Built for the day it happens
Prompt injection follows from how the models work, so we will live with it for a long time. That makes it a design premise: build your systems so that a fooled model is an incident, not a catastrophe.
The industry has made this journey before, with SQL injection. The difference is that this time we know the pattern, and the first incident has already happened. Take the question to your next architecture meeting: what is the worst a fooled model can do here, and who confirms it today?