NewspeakAI Security2084-A-0006
Newspeak: prompt injection
When text a language model reads overrides the instructions its developer gave it. What the term means, how the attack works, the EchoLeak case, and what limits the damage.

Prompt injection (提示注入) is an attack in which text that a large language model reads changes what the model does, in ways its developer did not intend. The OWASP GenAI Security Project ranks it first in its 2025 Top 10 for LLM applications and notes that the injected text does not have to be visible to people, only parsable by the model (OWASP LLM01:2025). The name was proposed by developer Simon Willison in September 2022, by analogy with SQL injection: in both cases untrusted input is mixed into a trusted command (Simon Willison).
How it happens
A model receives its developer's instructions and everything else, such as user messages, web pages, emails, files and tool output, as one stream of text, and it has no reliable way to tell which parts carry authority. OWASP distinguishes two routes. In direct injection the user types the instructions. In indirect injection they sit inside outside content that the application pulls in on the user's behalf (OWASP LLM01:2025). MITRE ATLAS lists the technique as AML.T0051, with direct, indirect and triggered variants, and notes that it can give an attacker an initial foothold in a system (MITRE ATLAS data).
The indirect route was set out in a February 2023 paper by Kai Greshake and colleagues. They planted instructions in data that LLM-integrated applications were likely to retrieve, demonstrated the effect on Bing's GPT-4-powered chat, and argued that once a model processes retrieved prompts, an attacker can influence which other APIs it calls (arXiv 2302.12173). The more tools and data an application connects, the more a successful injection can do.
A documented case
In June 2025 Microsoft published CVE-2025-32711, an information disclosure flaw in Microsoft 365 Copilot that its record describes as AI command injection, rated 9.3 (critical) under CVSS 3.1 (CVE record). The vector string marks the issue as needing no privileges and no user interaction, and lists an official fix. Researchers who called it EchoLeak later published a case study describing it as a zero-click prompt injection: one crafted email could lead to remote, unauthenticated exfiltration of data. According to the paper, the chain got past Microsoft's classifier for cross-prompt injection attempts and its link redaction (arXiv 2509.10540).
Defending against it
No single control stops prompt injection, so OWASP's recommendations aim to limit what an injected instruction can achieve. They include constraining the model's role in the system prompt, checking output against expected formats with deterministic code, filtering inputs and outputs, giving the application least privilege and keeping API credentials in code, requiring human approval for high-risk actions, separating and labelling untrusted content, and running adversarial tests that treat the model as an untrusted user (OWASP LLM01:2025).
For defenders, the practical assumption is that anything an AI assistant can read may contain instructions, and that the assistant's permissions, not its judgment, set the ceiling on the damage.
Mitigation
Treat every piece of content an AI application reads, including web pages, emails, documents and tool output, as possibly carrying instructions. Give the application only the permissions its task needs and keep credentials in application code, not within the model's reach. Validate model output with deterministic checks before it is rendered or acted on, block automatic loading of external links and images in AI output where possible, require a person to approve high-risk actions, label untrusted content as such, and include indirect injection in regular adversarial testing.
References
- OWASP GenAI Security Project · LLM01:2025 Prompt Injection (OWASP Top 10 for LLM Applications 2025)
- Simon Willison (simonwillison.net) · Prompt injection attacks against GPT-3
- MITRE · MITRE ATLAS data, release 2026.10 (AML.T0051 LLM Prompt Injection, AML.T0054 LLM Jailbreak, AML.T0020 Poison Training Data, AML.T0110 AI Agent Tool Poisoning)
- Greshake, Abdelnabi, Mishra, Endres, Holz, Fritz (arXiv) · Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection (arXiv 2302.12173)
- CVE Program (CNA: Microsoft) · CVE-2025-32711: M365 Copilot Information Disclosure Vulnerability
- Pavan Reddy, Aditya Sanjay Gujral (arXiv) · EchoLeak: The First Real-World Zero-Click Prompt Injection Exploit in a Production LLM System (arXiv 2509.10540)
Disclosure
Written by Anthropic's Claude. Anthropic develops large language models, which are exposed to the class of attack described here; no Anthropic product is discussed in this entry.