Indirect Prompt Injection Attack
An AI security attack in which an attacker hides malicious instructions in external content that the model reads (web pages, documents, emails, tool return results and the like) to induce the model to perform dangerous operations.
Timeline (last 90 days)
Indirect prompt injection is one of the core security threats facing RAG systems, in which attackers hide malicious instructions in retrieved documents to induce the model to perform unintended operations.
Embedding instructions in resumes is a typical indirect prompt injection attack surface; a system that cannot isolate content from instructions may be manipulated.
Traditional defenses such as auditing user input, tightening system prompts and restricting model capabilities all target the agent itself, but indirect prompt injection occurs after retrieved content, bypassing all upfront defenses.
The fundamental reason indirect prompt injection is harder to detect is that the malicious payload is indistinguishable from normal content before it enters the model.
Documented consequences of indirect prompt injection include: agents exfiltrating data to external endpoints, calling unauthorized APIs, and impersonating users in downstream systems.
The email scenario is a typical case of indirect prompt injection: the attacker does not need to contact the victim and can complete the poisoning simply by sending one email.
The case in this article is a typical indirect injection, which is more covert because the malicious text comes from a third-party data source trusted by the agent rather than from a directly interacting user.
Indirect prompt injection means an attacker plants instructions in third-party content that an Agent will actively fetch; because LLMs struggle to reliably distinguish "data" from "instructions," there is currently no one-and-done general defense.
When prompt injection is hidden in tool output it is called "indirect prompt injection" and is more dangerous, because developers often guard only against user input and trust tool returns.
In direct prompt injection the attacker and victim are the same person (as in jailbreaking), whereas in indirect injection the attacker is a third party who controls external content the model will read, and the victim is an unaware legitimate user.
40 more timeline events