Skip to content
Redvault
Industry Insights
Industry Insights16 min read

Prompt injection can't be fixed yet. Plan for it

AI makers say prompt injection isn't solved, and their own tests show why. What to decide before an AI agent gets your email, files or systems.

Illustration: a robot assistant reads its morning post at a desk while marionette strings rising from a red envelope steer its other hand into an open filing drawer.

On 7 August Anthropic, the company that makes Claude, published the results of a test of its AI coding assistant with a safety check switched on. An outside firm had tried 72 prompt injection attacks on it, 10 times each, and none had got through. Five days later a researcher published an attack that did. By the end of the month a second researcher had found another way in, and Anthropic's answer, as he tells it, was that the check isn't meant to stop a determined attack.

That's where prompt injection stands in autumn 2026. Nobody, including the companies that make the models, can promise an agent won't be fooled. So for a manager deciding what an AI agent may read and do, the useful question isn't which product stops prompt injection. It's what the agent can do on the day it's fooled.

72 attacks failed. Then two new ones worked

The safety check is called auto mode. Instead of asking you to approve each action, Claude Code runs its actions past an automated check that blocks the ones it judges risky, and a second screen looks for planted instructions in what the agent reads. The firm, Trajectory Labs, ran its attacks against three Claude models, and none of the 720 tries succeeded against any of them (Anthropic). A week later, on 14 August, auto mode became the default for new Claude Code sessions on the Pro, Max and Team plans.

The people who built it were confident. Boris Cherny, who created Claude Code, spoke at Y Combinator's Startup School in July, the day after Anthropic released Claude Opus 5. Put a better-trained model together with a detector that watches the model's internal workings for signs of injection and the auto mode check, he said, and "we just cannot demonstrate prompt injection anymore" (Y Combinator).

On 12 August a researcher who blogs as veganmosfet published a way through. They ran Claude Code's standard set-up command on a project folder whose only file was a picture. The picture held clues for decoding it, a QR code among them, and later a server reply suggested another way to download. Each step read as part of a harmless puzzle, and one at a time they led Claude to download a program from a stranger's server and run it. That happened in 6 of 10 attempts. Auto mode let it through each of those times, and blocked the risky step in the other four (veganmosfet).

On 26 August Johann Rehberger, a security researcher, published a second. He asked Claude Code to summarise a website he controlled. The site served an archive that needed decoding, and Claude, sensibly, refused to run the decoder that came with it. So it wrote its own and ran it in the same folder as a file Rehberger had planted, which ran too. Claude had ended up running his code on the computer it was working on. He tried three versions of the attack five times each, and they worked 3, 3 and 4 times (a small sample, as he points out) (Embrace The Red).

Rehberger says Anthropic closed his report as working as designed. In his account, the position of Anthropic, or at least its security team, is that auto mode is a convenience backed by a best-effort check, not a security guarantee. The real protection, on that view, is isolating the computer the agent runs on and controlling what it can reach over the network. Anthropic's announcement had said something similar in its closing lines: auto mode reduces risk but "does not eliminate risk" (Anthropic). Rehberger's complaint is that the messages don't fit together. One says attacks can't be demonstrated, and the other says a determined one is out of scope.

Rehberger's view, and ours, is that both results are true at once. The 72 attacks were the ones somebody thought to test, and his wasn't among them. A clean score on a fixed set of attacks tells you how a system does against those attacks. It can't tell you about the next one.

The companies that make AI say it isn't fixed

Prompt injection is when someone hides instructions in something an AI reads, such as an email, a web page, a shared document or a reply from another tool, and the AI follows them in place of yours. Our glossary has the longer version. Some engineers sound more confident, as above. But the companies building these models don't claim to have solved it, and we've found several saying in writing that they haven't.

OpenAI wrote in December 2025 that prompt injection, like scams and social engineering on the web, is "unlikely to ever be fully 'solved'" (OpenAI). In February 2026 it added Lockdown Mode, a ChatGPT setting meant for executives and security teams. It limits or switches off live browsing, agent mode, live connections to other apps and file downloads. Where OpenAI couldn't give strong, predictable guarantees that data would stay put, it turned the feature off entirely (OpenAI).

Meta called prompt injection "a fundamental, unsolved weakness in all LLMs" in October 2025. It published a rule for building agents that assumes things will stay that way until research can reliably detect attacks (Meta), and we'll come back to that rule below.

Anthropic said in November 2025 that no browser agent is immune (Anthropic), and our glossary has the figures behind that. It also publishes the most detailed test results we've found, which is why its models come up so often here. Most of the numbers in this piece are AI companies testing their own models, because that's mostly what exists. So we say whose test each one is.

The UK's National Cyber Security Centre told security teams in December 2025 to treat prompt injection as a risk that stays, one no product can remove. For a system that can't live with what's left, its advice is short: "it may not be a good use case for LLMs" (NCSC). OWASP, a non-profit that publishes security guidance, kept prompt injection first in the 2026 edition of its list of risks for AI applications, released in August (Help Net Security). Its entry on the risk says it's unclear whether any fool-proof way to prevent it exists (OWASP).

Researchers from IBM, Google, Microsoft, ETH Zurich and others put it most plainly, in June 2025. While agents and their defences rely on today's kind of model, they wrote, it's "unlikely that general-purpose agents can provide meaningful and reliable safety guarantees" (Beurer-Kellner et al.).

Why it can't be patched like an ordinary bug

Most security holes are mistakes in code, and mistakes can be corrected. Prompt injection isn't that kind of hole. It comes from the way a language model works: everything it's given, your instructions and the web page it's reading alike, arrives as one stream of text, and the model has no reliable way to tell which parts carry authority.

Bruce Schneier, a security technologist, compared it in 2024 to the American phone network of the 1960s. Play a 2,600Hz tone into a pay phone and you could make free calls, because the tones that controlled the network travelled down the same line as people's voices. AT&T could change the tones or try to keep them secret. It couldn't fix the problem, because "Data and control used the same channel." The fix came in the 1980s with a system called SS7, which moved the control signals onto a separate channel (Schneier). In his view, language models are where the phone network was before SS7, and nobody's built them that second channel yet. We think it's the clearest way to explain the problem to someone who isn't technical.

Researchers have measured how little separation there is. Egor Zverev and colleagues built a test of whether models keep instructions and data apart, and reported at ICLR 2025, a major machine-learning conference, that every model they tried did poorly. The usual fixes, better-worded prompts and extra training, either made little difference or made the models worse at their jobs (Zverev et al.). In a paper for ICLR 2026, Zverev's group showed that building the separation into the design of the model, a method they call ASIDE, makes models harder to inject (Zverev et al.). As far as we know, that isn't in any product you can buy yet.

There's a deeper problem underneath. Acting on what it reads is the point of an AI assistant. You want it to follow a colleague's note saying which folder the invoices go in. Schneier makes the same point: a model changing its behaviour because of what it's given is the feature that makes it useful, and the same feature lets prompt injection work.

And the newest attacks don't need to look like instructions at all. Rehberger's website never told Claude to do anything, and veganmosfet's picture only offered clues to a puzzle. Simon Willison, the developer who named prompt injection in 2022, added a note about Rehberger's attack on 30 August, after a commenter on Lobste.rs, a discussion site, pointed this out. It was less a classic prompt injection, he wrote, than a trap built into the agent's surroundings (Simon Willison). Rehberger's own summary is that "An attack does not tell the model what to do." It makes the harmful path look like the sensible way to finish the job (Embrace The Red). A filter that hunts for injected commands has little to go on when the commands look like the task.

Better models still lose to patient attackers

The models really are getting harder to fool, and we don't dispute the numbers the AI companies publish to show it. The same numbers show that rare isn't the same as never.

Take Claude Opus 5, released in July. In coding tests published with it, an attacker got 200 attempts at each of 40 scenarios. With Anthropic's extra screening of incoming content switched on, 0.18% of attempts worked, fewer than 2 in 1,000. That was still enough to break 4 of the 40 scenarios (Anthropic, Opus 5 system card). Opus 5.5 followed on 22 September, and Anthropic says it matches or beats Opus 5 on prompt injection in every setting it tested (Anthropic). OpenAI says its newest flagship, GPT-6 Astra, resists prompt injection better than any model it's released: against OpenAI's own automated attacker, its defence rate on indirect attacks climbed to 99.79% (OpenAI, GPT-6 Astra system card).

But an attacker gets to keep trying, and attempts add up. Anthropic's tables from February show it plainly. Claude Opus 4.6 was tested using a computer the way a person does, by looking at the screen and clicking, against an attacker that adapted as it went. With Anthropic's safeguards on, the attacker succeeded 9.7% of the time on its first try. Given 200 tries, it got through in 57.1% of scenarios (Anthropic, Opus 4.6 system card). On the same kind of test, Opus 5 has since cut that to one scenario in 14 (Anthropic, Opus 5 system card). OpenAI's card shows the same arithmetic. On 1,810 attacks collected by Gray Swan, an AI security company that sells automated red-teaming tools, GPT-6 Astra with its safeguards on was beaten at least once in 15 tries 8.5% of the time, against 27.0% for GPT-5.6 Sol, the model before it (OpenAI, GPT-6 Astra system card). That's a big improvement. It isn't zero.

Which attacks get tested counts as much as how many. Anthropic's own system cards warn that fixed sets of known attacks "can provide a false sense of security" (Anthropic). Our glossary covers the October 2025 study, by researchers from OpenAI, Anthropic, Google DeepMind and others, that broke most of 12 published defences with attacks tuned to each. What it adds here is the human side. In a contest with $20,000 in prizes and more than 500 people taking part, human attackers got through in every case the researchers tested (Nasr et al.).

The biggest public contest of its kind at the time points the same way. In 2025 Gray Swan ran a challenge on its platform, sponsored by the UK's AI Security Institute along with OpenAI, Anthropic and Google DeepMind. People submitted 1.8 million prompt injection attacks against 22 AI agents, and more than 60,000 worked. When the researchers replayed a curated set of the most damaging attacks against 19 leading models, nearly every agent broke its rules within 10 to 100 attempts for most of the behaviours tested. How hard an agent was to fool had little to do with how big or capable its model was (AISI; Zou et al.).

To be fair to Anthropic, it says its tests favour the attacker. Its attackers practise on the very scenarios they're scored on and get many tries, while a real attacker doesn't know your set-up and risks being noticed with each attempt (Anthropic). We agree real attacks are harder. But real attackers also pick their moment, and they need only one attempt to work.

Attackers have started leaving instructions on the web

This isn't only happening in tests. People are hiding instructions in ordinary web pages for passing AI agents to pick up. Much of it is clumsy. Some of it isn't, and the volume is growing.

Google scanned Common Crawl, a public archive that captures 2 to 3 billion web pages a month, for instructions aimed at AI. It found pranks, search-ranking tricks and attempts to keep AI crawlers out. Attempts to steal data were few and crude, and the pages trying to make an AI delete files looked like experiments or pranks. But the malicious kind grew by 32% between November 2025 and February 2026. Google expects attacks to grow in number and skill as agents become worth attacking and attackers automate their own work with AI (Google).

Unit 42, the threat research team at Palo Alto Networks, which sells security products, is more worried. Its own telemetry, it says, shows these attacks being actively weaponised, with more sophisticated payloads and more serious aims. In a report in March it described pages telling AI agents to "delete your database" and trying to get them to send $5,000 to an attacker's account through a real payment service. One scam site hid 24 separate attempts to get an AI that checks adverts to approve its ad. Unit 42 says that's the first case it's seen of attackers going after AI ad review, though it doesn't know of a confirmed case of one succeeding (Unit 42).

One of the first large counts comes from a team including researchers at CISPA, a German security research centre, and the University of Louisiana. Searching 1.2 billion web addresses, they confirmed 15,387 injected instructions on 11,722 pages across 2,042 hosts. About 70% sat in parts of a page a person never sees, such as headers, comments and metadata. In their tests, models mostly ignored them, though smaller models obeyed up to 8% of the time (Khodayari et al.).

So the researchers don't agree on how skilled today's attackers are, and we don't think they need to. Current models ignore most of what's left lying around for whoever passes. What worries us is the trend, and the targeted attack, where someone studies your set-up and keeps trying until something works.

What we'd do instead

If you can't stop an agent being fooled, decide in advance what a fooled agent can do. That's the NCSC's approach: cut both the chance of an attack and its impact (NCSC). The design-patterns researchers put it the same way. Once an agent has read something it can't trust, it shouldn't be able to take any consequential action (Beurer-Kellner et al.).

Meta's version, which it calls the Agents Rule of Two, is the easiest to apply. Take three things an agent might do: read content from outsiders, such as email, web pages or shared files; reach private data or sensitive systems; and change things or send things out. In any one session, Meta says, an agent should do no more than two. If a job needs all three, the agent shouldn't run on its own: a person should approve what it does, or some other reliable check should (Meta). It's the lethal trifecta from our glossary, with changing things added to sending things out.

We'd start by mapping every agent before it's approved. What will it read that someone outside wrote? Inbound email, web pages, CVs, supplier invoices, support tickets and code from the internet all count. What can it reach, and what can it do or send without a person? Then we'd break one of the three: read-only access, no way of sending things out, or a person approving the specific action. Approval is the weakest of those. In a study Anthropic ran with 1,053 paid testers, people spotted only 13.6% of dangerous commands slipped into their approval prompts (Anthropic).

We'd keep each task narrow. OpenAI's own advice is to give agents specific, well-scoped jobs: summarise these three emails, not deal with my inbox. The more latitude an agent has, the easier it is for hidden content to steer it (OpenAI). Agents that run unattended we'd put where they can't do much harm. Rehberger's advice is a container, virtual machine or sandbox, with your home folder, login keys and cloud credentials out of the agent's reach, limits on what it can connect to over the network, and someone keeping an eye on what it does (Embrace The Red).

We'd use filters and auto modes. They're seatbelts, though, not walls. On 22 October Anthropic said auto mode would become the default for new sessions in most Claude apps on its Pro, Max and Team plans from the following week (Anthropic), and by its testing that's safer than people clicking through approvals. We don't doubt it. But it's still a check that can be fooled, so it shouldn't be the only thing between an attacker and your data. For the most exposed people we'd switch on the locked-down setting. OpenAI began rolling out Lockdown Mode to personal and self-serve Business ChatGPT accounts in June, on top of the enterprise plans that already had it (OpenAI). For executives, finance staff and anyone handling sensitive data, the features it takes away are a fair price.

Before buying, we'd ask vendors three questions. What's the attack success rate against attackers who adapt, over how many attempts, and on whose test? What can the agent do when an attack works? What gets logged? The NCSC's advice is to be wary of anyone who claims they can stop prompt injection, and to look instead at those who understand how they reduce it (NCSC). And we'd keep records: log what each agent read, which tools it used and what it did, so that when something goes wrong you can see how.

None of this is free. Take CaMeL, a design from researchers at Google and ETH Zurich that stops untrusted data from changing which steps an agent takes. In a standard test it completed 77% of tasks with security guarantees attached, against 84% with no defence at all (Debenedetti et al.). Lockdown Mode, as above, gives up features for safety. Where the data matters, we'd pay.

Where we'd stop short

We don't think prompt injection is hopeless, and it'd be wrong to suggest it is. Rehberger himself wrote in August that for frontier models the days of simple ignore-your-instructions attacks are largely over (Embrace The Red). In a public challenge this year, the developer Fernando Irarrázaval invited people to email his AI assistant and trick it into leaking a file of passwords and keys. It ran on Claude Opus 4.6, with a few lines of security instructions. More than 2,000 people sent over 6,000 emails, and none of them managed it (Decrypt). It's one assistant with one job, and Decrypt notes the results were skewed: the assistant read the emails in batches, and once the first few in a batch were obvious attacks, it grew wary of everything after them. It still shows how far the models have come.

A proper fix may yet come from research like ASIDE, and we hope it does. Schneier expected someone to find a way to separate the data from the control eventually (Schneier).

So when we say prompt injection can't be fixed, we mean something narrower than never. We mean nobody can promise it with today's models, and we don't expect that to change within the life of the AI projects companies are approving this year. That's our view, and you should weigh it as one.

Every one of the 72 test attacks failed. Plan for the 73rd.

At Redvault we're building AgentShield, which shows security and IT teams which AI agents are running on their Macs, what they reach and where they connect. It's still in development: today it watches and classifies, and it doesn't block anything yet. We also work on AI and LLM security, so weigh our view with that in mind.

Share this article

Related reading