Frontier Foundry

Prompt Injection

The Fortress · AI Security

Hidden instructions in data that hijack an agent.

Also called: indirect prompt injection, lethal trifecta, data exfiltration, exfiltration. In the glossary.

Prompt Injection is cooling this week (×0.18 against the eight weeks before). What is moving.

How it works, as a machineThe Mail Room · hidden notes

Follow one hidden note from a web page to the outbound mail chute, in an agent's mail room, with a records vault behind it.

  1. Fetch the page
  2. Read the page
  3. Follow the note
  4. Pull the private file
  5. Send it out
Play Prompt Injection

Prompt Injection in plain words

Prompt injection is an attack where text hidden in a web page, an email or a file is read by an agent as if it were an instruction. The model cannot reliably tell the data it reads from the orders it follows. An agent with tools can then be steered into leaking data or acting for the attacker.

An analogy

A courier who obeys any note found inside a parcel. The sender writes that the parcel goes to a new address and the house keys go with it, and the courier, unable to tell the customer's wishes from the contents, complies. The more doors the courier can open, the more one note is worth.

How Prompt Injection connects

13 typed relations in the knowledge graph

Builds on

Built on by

Threatens

  • AI Agents: Anything an agent reads can carry an order, and an agent that obeys it acts for a stranger.
  • Computer Use & Browser Agents: A web page can show the model text that the person in front of the screen never asked for.
  • Model Context Protocol: A tool's description and its results are text the model reads, so they can smuggle instructions.

Guarded by

Often in the same sources

Red Teaming & Jailbreaks, AI & Cybersecurity, Agent Sandboxing & Permissions, AI Agents

See Prompt Injection in the knowledge graph

Who is behind Prompt Injection

people, labs, products and models

People

  • Simon Willison (coined): Named 'prompt injection' in September 2022 and has tracked it ever since.

Named in its facts

What the sources say

3 parts · 12 sources · updated 2026-11-27

Prompt injection is an instruction hidden in content an agent reads (an email, page, document, review) that the agent obeys as if it came from its owner. It matters when the agent also holds private data and can send things out. The defences in the sources limit what the agent can reach and send; none that asks the model alone is called complete.

How a hidden note reaches the model

An attacker does not talk to the agent. They put a note in something the agent will read: an email, a web page, a document, a review. The agent reads it with everything else, and the model has no sure way to tell text it should obey from text it should only read.

  1. The fetcher hatch takes in a page, email or document; a hidden note rides in with it.
  2. At the reading desk the note joins the page text, and the model cannot tell data from an order.
61% → 10%
Average attack success in one study when injected text was rewritten ("destyled") so it no longer looked like the model's own role-tagged text; reported by the study authors via a blog summary Simon Willison
144 days
Time Microsoft had to fix a self-copying injection in a word processor, with no mitigation covering the whole class at the time of writing Simon Willison
24 of 25
Retries of a phishing prompt, run as a red-team test, in which the agent read a credentials file and posted it out; the note came through the user, not through fetched content Anthropic
  • An email can carry white-on-white instructions that people cannot see and the agent reads; the data left with zero clicks. Andrey Rybka
  • A hostile page was served only to clients that announced themselves as the agent, so people checking the page would not see the note. Simon Willison
  • A research attack on a fetch tool used a page that told the agent it needed to log in and led it through nested links to find the user's profile. Simon Willison

When it breaksThe phish that read like a task. In an internal red-team exercise a researcher phished an employee into starting a coding agent with a ready-to-paste prompt. Among routine setup steps it asked the agent to read a credentials file, encode it and POST it to an outside address. Across 25 retries the agent did it 24 times. Anthropic

What the agent can reach

A note only matters if the agent that obeys it can do something. The risk is highest when one agent holds private data, reads untrusted content and can send things outward. Defences here shrink what the agent can reach and what its calls may carry.

  1. The agent desk plans the next call, and it follows a note that reads like part of the task.
  2. The records vault hands over the private files and tokens the agent's tools can reach.
0.1% single, 5-6% after 100
Attack success on a prompt-injection benchmark for one frontier model: one attempt vs after 100 adaptive attempts (the lab's own report) Anthropic
6,000 attempts
Email attempts to make a test assistant leak a secret in a public challenge; none succeeded (a blog report, with a note that this gives no guarantee) Simon Willison
80%
Share of runs in which one researcher says his attack on an agent's auto mode works; reported by a blog, disputed by the vendor's own tests Simon Willison
0 of 720
Attack attempts that succeeded against three models in auto mode in a test the lab commissioned from a third party Simon Willison
  • The lethal trifecta: access to private data, exposure to untrusted content and a way to communicate outward; together they open the door to attackers. Kim Maida
  • The only way to solve the trifecta is to cut off one of its three legs; the exit for stolen data is the easiest to restrict. Simon Willison
  • In a chat product the private data is memory of past chats, and a web tool both reads hostile instructions and sends data out through the URLs it visits. Simon Willison

Open questionCan a trained model plus a classifier make injection a solved problem?

  • In a third-party test none of 720 attacks got through, and with the layers combined a lab engineer says injection can no longer be demonstrated. Simon Willison
  • A researcher says an attack on the same mode works 80% of the time, and the safe route is a sandbox with limited network exit. Simon Willison

Where data leaves and who stops it

Data leaves through whatever the agent may send: a URL, an image, a DNS lookup, a call to an approved domain. The checks that held up in the sources are the ones that do not ask the model, such as limits on outbound requests; each costs usefulness or attention.

  1. The egress gate checks every outbound call against an approved list and refuses the rest.
  2. The outbound window sends the answer, a link or an image out; what leaves there is gone.
93%
Share of permission prompts that users approved in one lab's telemetry, which is why asking a person every turn wore thin Anthropic
13.6% vs 89%
Share of 1,053 paid testers who refused a swapped-in dangerous command, against the share an auto-mode classifier would have blocked Simon Willison
0.4% blocked, 17% missed
An auto-mode classifier blocks about 0.4% of harmless commands and lets about 17% of overeager actions through; one layer inside a sandbox, not a substitute Anthropic
84% fewer prompts
Drop in permission prompts after an OS-level sandbox with network denied by default (the lab's report) Anthropic
  • Lockdown mode limits outbound network requests to stop the final stage of data exfiltration; it does not stop injections from appearing in the content. Simon Willison
  • Its limits are deterministic rules that no AI system, which a devious attack could subvert, gets to judge. Simon Willison
  • That such a mode exists implies the default settings do not give robust protection against a determined exfiltration attack. Simon Willison

When it breaksNo one opened the email. An email with white-on-white instructions reached an agent. People could not read it, the agent could, and the instructions were clear. Nobody opened it and the data left anyway. Andrey Rybka

Open questionShould a person approve what an agent sends or does?

  • Human sign-off for high-value actions, and for any agent holding all three trifecta legs. Andrey Rybka
  • Forcing approval hands access control to a consent-fatigued user; control access with scoped credentials instead. Kim Maida

Sources

12 in all

More in AI Security

The Fortress: the whole area