[KongchangAI]
ConceptIndirect Prompt Injection

Indirect Prompt Injection

An AI security attack technique in which an adversary embeds malicious instructions into external data sources that an AI system reads autonomously—such as web pages, documents, issues, or code comments—causing those instructions to enter the model's context through normal data flow and be executed without direct interaction with the system.

Core Facts

Timeline (last 90 days)

Oct 21

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.

Unverified50%
Oct 19

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.

Unverified50%
Oct 19

Input filtering alone can hardly provide exhaustive defense against indirect prompt injection, because plausible-looking instructions can be naturally embedded in legitimate documents; a more reliable approach is to treat read content as untrusted and limit, at the tool call boundary, what follow-up actions it can trigger.

Unverified50%
Oct 19

Most teams only guard user messages and assume retrieved content, file names, third-party API responses and error messages are safe, yet these are common entry points for indirect injection.

Unverified50%
Oct 19

In the study's audit, 76-80% of failed attacks involved the agent "ignoring" the injected instruction, and only 17-18% were explicit "refusals" to execute.

Unverified50%
Oct 18

Indirect prompt injection is especially dangerous because an attacker can carry out the attack without directly touching the user.

Unverified50%
Oct 17

The AI Standards and Innovation Center under NIST defines agent hijacking as a form of indirect prompt injection.

Unverified50%
Oct 17

The attack surface of indirect prompt injection includes any text that flows into the model context, such as emails, web pages, tickets, and contracts.

Unverified50%
Oct 17

Defending against indirect prompt injection cannot rely on prompt engineering alone (such as "please ignore conflicting instructions"), because the model treats all tokens as equally authoritative, and it must rely on architectural-level separation of commands and data.

Unverified50%
Oct 17

The "lethal trifecta" popularized by Simon Willison points out that when an Agent simultaneously has access to private data, exposure to untrusted content, and an outbound communication channel, its data can be tricked out of it.

Partially Verified65%

37 more timeline events

All Facts (20)

Verified

Prompt injection is divided into two categories—direct injection and indirect injection—where indirect injection refers to attackers concealing malicious instructions in external content that the AI may read, such as webpage body text, code comments, README files, and image OCR text.

85%
Verified

Indirect prompt injection is an attack vector in which an attacker embeds malicious instructions in web pages, documents, or emails that an agent may read, inducing the agent to perform operations beyond the scope of the original task.

70%
Verified

Indirect prompt injection refers to attack instructions hidden in external web pages, documents, or API responses accessed by an agent, where the malicious instructions are activated when the agent retrieves and injects them into the context.

70%
Verified

Indirect injection refers to attackers hiding malicious instructions in external content that the model will read, such as webpage body text, email body text, or document content.

65%
Verified

Indirect prompt injection refers to attackers pre-embedding malicious instructions into third-party content (such as web pages, PDF documents, or API responses), which the model then executes after RAG systems retrieve or tool calls pull this content into the context.

65%
Verified

Prompt injection can be divided into two types: direct injection and indirect injection; indirect injection is where an attacker hides malicious instructions in external data sources such as web pages, PDFs, and emails, and when an AI agent processes this data the malicious instructions are executed as legitimate instructions.

65%
Verified

Permissions that appear harmless when held individually by an agent (such as reading files and calling an HTTP library) can enable data exfiltration when combined, which is the tool-combination emergence problem.

65%
Verified

The industry has yet to find a solution that fundamentally resolves prompt injection, and can only reduce the risk through multi-layered defenses.

65%
Verified

The principle of indirect prompt injection is that an attacker disguises malicious instructions as normal data, delivers them to the model through a data source trusted by the agent, and induces the model to interpret the data as instructions and execute them.

65%
Verified

Invariant Labs demonstrated an attack against the official GitHub MCP server: after planting a malicious issue in a public repository, the agent pulled data from the repository owner's private repositories and published it to a public pull request.

65%
Partially Verified

The "lethal trifecta" popularized by Simon Willison points out that when an Agent simultaneously has access to private data, exposure to untrusted content, and an outbound communication channel, its data can be tricked out of it.

65%
Unverified

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.

50%
Unverified

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.

50%
Unverified

Input filtering alone can hardly provide exhaustive defense against indirect prompt injection, because plausible-looking instructions can be naturally embedded in legitimate documents; a more reliable approach is to treat read content as untrusted and limit, at the tool call boundary, what follow-up actions it can trigger.

50%
Unverified

Most teams only guard user messages and assume retrieved content, file names, third-party API responses and error messages are safe, yet these are common entry points for indirect injection.

50%
Unverified

In the study's audit, 76-80% of failed attacks involved the agent "ignoring" the injected instruction, and only 17-18% were explicit "refusals" to execute.

50%
Unverified

Indirect prompt injection is especially dangerous because an attacker can carry out the attack without directly touching the user.

50%
Unverified

The AI Standards and Innovation Center under NIST defines agent hijacking as a form of indirect prompt injection.

50%
Unverified

The attack surface of indirect prompt injection includes any text that flows into the model context, such as emails, web pages, tickets, and contracts.

50%
Unverified

Defending against indirect prompt injection cannot rely on prompt engineering alone (such as "please ignore conflicting instructions"), because the model treats all tokens as equally authoritative, and it must rely on architectural-level separation of commands and data.

50%

Source Articles