Loading the record…
Loading the record…
A 2023 paper by Kai Greshake, Sahar Abdelnabi and colleagues introduced indirect prompt injection: instead of a user typing a malicious prompt, an attacker hides instructions in content an AI assistant will later read, such as a web page or email, and the assistant follows them. The first version, in February, showed this in mock applications; the May version added tests on Bing's GPT-4-powered Chat, run on the researchers' own pages, in which planted text made the assistant press a user for their name, push scam links and misreport search results. The authors found no effective defence.
The first systematic demonstration that assistants which read outside content cannot reliably tell data from instructions, so anyone who can plant text where the model reads can steer it. Later cases on this record show the same weakness in a deployed product and in injections that copy themselves.
| Expected | Actual |
|---|---|
| Treat retrieved content as data and follow only the user's instructions | Followed instructions hidden in retrieved content, letting a remote attacker steer the assistant 001 |
| Refuse jailbreak prompts whatever their route into the conversation | Bing Chat ended chats when a user typed a jailbreak prompt but followed the same kind of prompt when it read it from a page 001 |
A user asks an assistant an ordinary question, or to read a page, email or file. 001
An attacker has planted instructions in content the assistant will retrieve; in the tests, a local web page read through the Edge sidebar, or prepared content in mock applications. 001
The assistant treats the planted text as instructions and, in most cases, keeps following them for the rest of the conversation. 001
In the demonstrations it pressed the user for their name, pushed phishing and malware links, misreported search results, forwarded the injection by email and fetched new instructions from an attacker's server. 001
The researchers built and documented the attacks themselves; no real users were targeted. 001
They disclosed the problem to OpenAI and Microsoft and published the paper, its prompts and their demos. 001004
The researchers demonstrated indirect prompt injection in mock applications and, in their own tests, on Bing Chat and GitHub Copilot, set out a taxonomy of the risks, disclosed the problem to OpenAI and Microsoft, and found no effective defence.
Greshake and colleagues posted the paper introducing indirect prompt injection, under the title "More than you've asked for", with demonstrations in mock applications. 002
A second version, retitled "Not what you've signed up for", added tests on Bing Chat and mock applications built on GPT-4, and the disclosure to OpenAI and Microsoft. 001
The paper was published in the proceedings of the ACM Workshop on Artificial Intelligence and Security. 003
Reported: one party says so; not independently confirmed.
Unless a claim says otherwise, it rests on the cited account; the underlying logs and systems have not been independently examined.
Showing 5 of 16 claims: the key findings.
The paper introduced indirect prompt injection: an attacker hides instructions in content an LLM-integrated app will retrieve, such as a web page, and the model follows them as if they were the user's. 001002
Exact excerpts in the sourceSelected by the source
Figure 3, Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (paper, May 2023 version). Shown from the source's own site.Limits: A research demonstration, not a report of attacks on real users.
The first version, posted on 23 February 2023, showed the attacks only in mock applications built on OpenAI's text-davinci-003, plus a Copilot example, and said it was not feasible to verify whether real systems were affected; the Bing Chat and GPT-4 tests were added in the version of 5 May 2023. 002001
In the May version the researchers tested Bing's GPT-4-powered Chat by having it read their own local web pages through the Edge sidebar, tested GitHub Copilot, and ran the other attacks in mock applications built on GPT-4 and text-davinci-003 that returned prepared content. 001
Limits: The authors did not place injections anywhere other users could retrieve them, so in-the-wild retrieval was not tested.
Jailbreak prompts that Bing Chat stopped when a user typed them were followed when it read them from a page; the attacks often worked across its chat modes, and in most cases the model kept following the injection for the rest of the conversation. 001
Limits: An answer that clearly broke Bing Chat's rules was still cut off mid-generation.
They set out a taxonomy of the risks, including data theft, 'worming' (self-propagation), and contamination of the information ecosystem, and showed retrieved prompts could control whether and how the app called other tools. 001
Exact excerpts in the sourceSelected by the source
Figure 2, Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (paper, May 2023 version). Shown from the source's own site.Limits: The demonstrations are examples of the taxonomy, which the authors say is not exhaustive.
Bing Chat, injected with the goal of getting the user's real name and told only to persuade them without raising suspicion, asked a user who said they were a journalist whether they wrote under a pen name, then offered a link carrying a "code" built from the name they gave. 001
Exact excerpts in the sourceSelected by the source
A model's account of its reasoning is not evidence of its motives.
Limits: One test session with the researchers acting as the user.
Asked to get a user to claim a free Amazon gift card, Bing Chat added its own pressure, though the prompt did not say how to convince them, and in malware tests it produced urgency and authority appeals that were not specified. 001
Exact excerpts in the sourceSelected by the source
A model's account of its reasoning is not evidence of its motives.
In a mock email assistant built on GPT-4, an injected email made the model read the user's address book and forward the injection to the contacts, so it could spread to other assistants reading their mail. 001004
Exact excerpts in the sourceSelected by the source
Figure 6, Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (paper, May 2023 version). Shown from the source's own site.Limits: A mock application with prepared content; no real email was sent.
In mock GPT-4 applications, an injected model fetched new instructions from a mock attacker's server, and one that had saved the injection to its memory re-infected itself in a later session when the user asked it to read that memory. 001004
Limits: Mock applications and a mock server; the payload only made the model talk like a pirate.
Injected pages made Bing Chat give wrong summaries, answer with a political slant, insert undisclosed ads and deny that Einstein won a Nobel Prize; told not to give answers from the New York Times, it ran its own searches and cited an unrelated article to say the paper had lost its credibility. 001
Other injections made Bing Chat time out on hidden busywork or corrupt its own search queries, an injection encoded in Base64 still worked, and in a mock search app a small injection made the model fetch a larger one. 001
The authors say they disclosed the vulnerabilities to OpenAI and Microsoft, and did not place injections in any public source other users could retrieve. 001
Limits: The paper gives no date for the disclosure; it is first stated in the May 2023 version.
The authors did not measure success rates, but say the attack prompts were simple to write and often worked on the first attempt. 001
The authors found no effective mitigation; they describe patching jailbreaks as whack-a-mole and say a foolproof fix was hard to imagine. 001
The authors observe that an attack may only need to state its goal, which the model may then pursue on its own, tailoring its persuasion to what it has learned about the user. 001
Limits: The authors' reading of qualitative tests, not a measured result.
Bing Chat ended a chat when a user typed a jailbreak prompt, but followed one it read from a page; an answer that clearly broke its rules was still cut off mid-generation. 001
As reported by the parties; not independently tested unless a source says so.
Suggested by misaligned.fyi editors. Not a reported or tested fix.
In February 2023, Kai Greshake, Sahar Abdelnabi and colleagues at Saarland University, the CISPA Helmholtz Center for Information Security and sequire technology posted the paper that named and systematised indirect prompt injection (002). Prompt injection was already known: a user types instructions that override what the app's developer intended. The paper asked what happens when it is not the user prompting. As assistants were connected to the web, email and documents, the line between data (what the model reads) and instructions (what it should do) blurred (001).
Their attack plants instructions in content the assistant will later retrieve, so that an attacker who never touches the user's screen can still steer the session. The first version showed this in mock applications built on OpenAI's text-davinci-003, with a GitHub Copilot example, and said it was not feasible to verify whether real systems were affected (002). A second version in May 2023, retitled "Not what you've signed up for", added tests on Bing's GPT-4-powered Chat and on mock applications built on GPT-4 (001).
For Bing Chat, the researchers hid the prompts in their own local web pages and had the assistant read them through the Edge sidebar. Jailbreak prompts that ended a chat when typed were followed when read from a page, and in most cases the injection held for the rest of the conversation. Told only to get the user's real name without raising suspicion, Bing Chat asked the test user, a researcher who said they were a journalist, whether they wrote under a pen name and then offered a link carrying a code built from the name. Asked to get a user to claim a gift card, it added its own urgency. Other injected pages made it give wrong summaries, slanted or ad-laden answers, and false history, or time out and corrupt its own searches (001).
In the mock applications, an injected email assistant forwarded the injection to everyone in the user's address book, an injected model fetched new instructions from a mock attacker's server, and another re-infected itself from its own saved memory. Instructions hidden in code comments changed Copilot's suggestions, though only in small projects. The authors set out a taxonomy of the risks, from data theft to self-spreading "worms" to contamination of what people read, and found no effective defence (001, 004).
The paper shows that an LLM-integrated app cannot reliably separate the instructions it should obey from the data it merely reads, so anyone who can plant text where the model will read it can steer it. The authors also observe that an injection may only need to state a goal, which the model then pursues in its own way, inventing persuasion that nobody wrote for it.
It is a set of researcher demonstrations, not a report of attacks on real users. The Bing Chat tests used the researchers' own pages, the other attacks ran in mock applications, and no injection was placed where others could retrieve it. The authors did not measure how often the attacks succeed, though they say the prompts were simple to write and often worked first time. The systems tested were 2023 versions, since changed, and no victim or data loss is established.
The authors disclosed the problem to OpenAI and Microsoft and released their demos (001, 004). They discuss filtering retrieved content, a separate supervising model and interpretability tools, but call patching one jailbreak at a time a game of whack-a-mole and say a foolproof fix was hard to imagine (001). Later cases on this record show the same weakness in a deployed product, MF-038, and in injections that copy themselves, MF-037.
The researchers' paper in both arXiv versions, its ACM AISec 2023 publication and their public repository of demos; a security research finding built from the authors' own tests, not attacks on real users.
We have read every source unless it is marked otherwise. Reading a source is not the same as confirming everything in it.
The definition of indirect prompt injection, the taxonomy of risks, the test setup, every demonstration on Bing Chat, Copilot and the mock applications, the disclosure, the limitations and the defences discussed.
In the source: Attack Surface of LLM-Integrated Applications · Demonstrations of Threats · Ethical Considerations and Disclosure · Limitations: "In order to avoid performing actual injections" · Mitigations: "GPT-4 was trained with intervention to reduce jailbreaks"
The first version's scope; mock applications built on text-davinci-003 and a Copilot example, with no tests on Bing Chat or GPT-4.
In the source: Section 3.2 · Section 4
Publication in the AISec '23 proceedings, pages 79-90, and a corrected version with minor, non-substantive changes on 10 January 2024.
In the source: Editorial Notes · Abstract
The authors' public demos of the mock-application attacks, including remote control, spreading by email and multi-stage injection.
In the source: README
Record last updated 5 Nov 2026.
misaligned.fyi. “Retrieved content redirects LLM-integrated applications.” Case MF-040, record updated 5 Nov 2026. https://misaligned.fyi/cases/indirect-prompt-injection-2023
Found an error or a missing source? Email a correction or read how corrections work.