Risks: How does AI go wrong? · MarLuc synopsis
Hidden instructions in web pages and emails can take over AI applications
Peer-reviewedSecurity and attacksAn early study showed that instructions planted in content an AI application retrieves can steer it remotely, including in a real search chatbot, without the attacker ever using it.
Read the research (opens in a new tab)The research at a glance
- Research
- “Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection”, Kai Greshake et al.
- Produced by
- Saarland University (University); sequire technology GmbH (Company); CISPA Helmholtz Center for Information Security (Non-profit research)
- Published
- 23 Feb 2023; latest version 5 May 2023
- Evidence
- Peer-reviewed, 16th ACM Workshop on Artificial Intelligence and Security (AISec 2023)Published in a peer-reviewed journal or accepted at a peer-reviewed conference (venue named)
- Type of research
- Red-teaming study
- Topics
- Security and attacks · Red-teaming
- Checked
- 21 Nov 2026 against the research; independently checked 21 Nov 2026.
Research starting point. Not advice. Each synopsis describes one piece of research in the setting its authors tested; results may not hold for other models, versions or uses. Read the original before relying on it.
1Why it matters
Most early worries about prompt injection (hidden instructions in content an AI reads) assumed the attacker typed into the AI directly. This paper asks what happens when the attacker instead plants instructions in web pages, emails or code that the application later retrieves for an innocent user, a threat the authors call indirect prompt injection.
2What they did
The authors built a taxonomy of threats from a computer-security viewpoint, covering how instructions can be delivered and what they could achieve. They then demonstrated attacks on synthetic chat applications built on OpenAI models with tools such as search, email and memory, which could not reach real systems or websites. They also tested Bing Chat using local web pages read by its browser sidebar, and code-completion tools. To avoid harm, they did not plant instructions in any public source.
3What they found
As the authors report it, in the setting they tested.
- The authors report that instructions placed in retrieved content could successfully steer the model, because the model does not keep data and instructions apart.
- Instructions that the chat interface normally filtered out were not filtered when they arrived indirectly through retrieved content, in the systems tested at the time.
- They demonstrated threats including data theft, self-spreading instructions ('worming'), contamination of the information users see, and others, against both a real search chatbot and synthetic applications built on GPT-4.
- Writing working attack instructions was, in the authors' words, rather simple, often working on the very first attempt.
- The authors conclude that effective mitigations were lacking and that it was hard to imagine a foolproof solution.
4Limits
What the research does not show, or where its results may not carry over.
- The results are demonstrations, not measured rates: the authors say quantifying success is challenging and leave it for future work.
- Tests used synthetic applications and local files, not attacks on live public content, and some products (for example Microsoft 365 Copilot and ChatGPT plugins) could not be tested.
- The systems tested were early-2023 versions that have since changed, and the authors note exact reproducibility is difficult with such black-box systems.
5What it could mean for an organisation
General information, not advice. Whether it applies depends on the systems you build, buy or use.
- The demonstrations show why an organisation evaluating an AI application that retrieves external content may want to check whether the application treats that content as instructions.
- Filtering only what users type into the chat box did not cover instructions arriving through retrieved content in the systems tested.
- The authors note that users cannot be relied on to watch every step an AI application takes, so checks that depend on a person spotting manipulation may not be enough.
6Related in MarLuc's libraries
AI governance: EU AI Act · NIST AI 100-2, ARIA and Cyber AI Profile · EU CRA · EU GDPR (general duties)
Sources
- [1]arXiv abstract page, arXiv:2302.12173 (v2) (opens in a new tab)The research itself · arxiv.org
- [2]Full paper, arXiv PDF (v2) (opens in a new tab)The research itself · arxiv.org
- [3]AISec 2023 workshop page (accepted papers) (opens in a new tab)The research itself · aisec.cc
Checked 21 Nov 2026 · independently checked 21 Nov 2026 · synopsis version 1.0
Spotted an error or newer research? Tell us