MITRE ATLAS 2026.10 · AML.T0051.001 · Critical severity

LLM Prompt Injection: Indirect

Indirect prompt injection hides adversarial instructions inside third-party content (web pages, emails, tickets, code comments, or RAG documents) ingested during a benign user's session. When the model reads that content, the hidden directive hijacks the victim user's assistant and its authorized tools.

Technique dossier overview

Category
Prompt and context integrity
Severity
Critical
Attack surface
RAG & Retrieval · Tool-Using Agents & MCP · LLM / Prompt Layer
Framework maturity
Realized
Platforms
Generative AI, Agentic AI
Tactics
Execution
Aliases
Indirect prompt injection, Retrieved-content instruction confusion
Catalog entry modified
Earliest cited research
· Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection · arXiv (author preprint; peer-review status not inferred)

Open AML.T0051.001 in Interactive Technique Workbench

How the mechanism works

  1. An attacker plants instructions inside an external data source that a target user or agent is likely to summarize, search, or inspect.
  2. During a legitimate workflow, the AI retrieves the poisoned artifact or tool output and places it into the active context window.
  3. The model treats the retrieved directive as an actionable instruction, pivoting to read private victim data or invoke tools silently.

Detection & telemetry signals

Architectural defensive countermeasures

Framework crosswalk (OWASP LLM Top 10 & NIST AI RMF)

OWASP LLM Top 10 (2025)
OWASP rationale
Indirect injection exploits third-party data ingested via RAG or external connectors (LLM01, LLM08) to hijack an authorized agent's tool execution privileges (LLM06).
NIST AI RMF functions
NIST AI RMF guidance
MAP all untrusted external ingestion channels entering model context, MEASURE cross-boundary hijack rates using agentic benchmarks, and MANAGE execution with taint tracking and approval gates.

Mapped defensive controls

Test with Refract

Refract is Silvauren's Apache-2.0 defensive LLM evaluation harness. Its 2x2 Detect-vs-Complete matrix crosses whether a detector flagged each probe with whether the model complied, so silent breaches are counted with Wilson 95% confidence intervals. Replace <model-id> with an OpenRouter route ID; each model page lists a ready-to-run command for its own route.

refract scan \
  --target "openai_compat:<model-id>" \
  --base-url https://openrouter.ai/api/v1 \
  --api-key "$OPENROUTER_API_KEY" \
  --battery rag_indirect_injection
refract report

Export OPENROUTER_API_KEY first. Passing --api-key keeps Refract from using an unrelated OPENAI_API_KEY, which it would otherwise read first. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.

Published empirical measurements (42)

Inspect all 42 measurements in Interactive Workbench

Related technique records

Documented incidents & exercises (64)

Source citation records

Common questions

What is LLM Prompt Injection: Indirect (AML.T0051.001)?
Indirect prompt injection hides adversarial instructions inside third-party content (web pages, emails, tickets, code comments, or RAG documents) ingested during a benign user's session. When the model reads that content, the hidden directive hijacks the victim user's assistant and its authorized tools.
How do you mitigate LLM Prompt Injection: Indirect?
MITRE ATLAS maps 5 mitigations to AML.T0051.001: AI Telemetry Logging and Monitoring, Human In-the-Loop for AI Agent Actions, Restrict AI Agent Tool Invocation on Untrusted Data, Input and Output Validation for AI Agent Components, and AI Red Team. Delimit and tag all retrieved documents, web scrapes, and tool responses as untrusted data separate from system and user turns.
How can I test a model for LLM Prompt Injection: Indirect?
Run the Refract rag_indirect_injection pack: refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery rag_indirect_injection, then refract report. Scans send real requests billed to your key. Add --max-probes or --budget-tokens to cap spend, and only scan endpoints you are authorized to test.