MITRE ATLAS 2026.10 · AML.T0051 · Critical severity

LLM Prompt Injection

Prompt injection exploits the lack of a hardware-enforced boundary between trusted system instructions and untrusted data inside a language model's shared token context. When untrusted input overrides developer policy, the model can be steered into leaking data, ignoring safety rules, or invoking connected tools.

Technique dossier overview

Category
Prompt and context integrity
Severity
Critical
Attack surface
LLM / Prompt Layer · RAG & Retrieval · Tool-Using Agents & MCP
Framework maturity
Realized
Platforms
Generative AI, Agentic AI
Tactics
Execution
Aliases
Prompt injection, Instruction/data boundary failure
Catalog entry modified
Earliest cited research
· Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred)

Open AML.T0051 in Interactive Technique Workbench

How the mechanism works

  1. An application concatenates privileged system directives with untrusted user text, retrieved documents, or tool outputs in one context stream.
  2. Adversarial instructions embedded in the untrusted segment conflict with the system policy and redirect the model's next-token generation.
  3. If downstream code trusts model output for routing, rendering, or tool execution, the hijacked instruction triggers unauthorized side effects.

Detection & telemetry signals

Architectural defensive countermeasures

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

OWASP LLM Top 10 (2025)
OWASP rationale
Prompt injection is the defining failure of LLM01 and serves as the primary trigger for improper downstream output handling (LLM05) and unauthorized agent tool actions (LLM06).
NIST AI RMF functions
NIST AI RMF guidance
GOVERN clear architectural separation between model reasoning and authorization enforcement, MEASURE injection resilience across realistic benchmarks, and MANAGE risk with deterministic tool policies and HITL gates.

Mapped defensive controls

Model attack surface

563 of 563 catalogued model records map to AML.T0051 through the surface vectors below. Profiles are derived from model metadata (modalities, tool calling, reasoning, context window, and weight access). They show where techniques apply, not measured weaknesses.

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 prefix_injection,multiturn_crescendo_sim,multiturn_live_escalation
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 (35)

Inspect all 35 measurements in Interactive Workbench

Related technique records

Documented incidents & exercises (10)

Source citation records

Common questions

What is LLM Prompt Injection (AML.T0051)?
Prompt injection exploits the lack of a hardware-enforced boundary between trusted system instructions and untrusted data inside a language model's shared token context. When untrusted input overrides developer policy, the model can be steered into leaking data, ignoring safety rules, or invoking connected tools.
How do you mitigate LLM Prompt Injection?
MITRE ATLAS maps 8 mitigations to AML.T0051: Validate AI Model, Control Access to AI Models and Data in Production, Generative AI Guardrails, Generative AI Guidelines, Generative AI Model Alignment, AI Telemetry Logging and Monitoring, Input and Output Validation for AI Agent Components, and AI Red Team. Enforce tool authorization, tenant data ACLs, and schema validation in deterministic application code independent of model refusals.
Which AI models are exposed to LLM Prompt Injection?
563 of 563 catalogued model records map to AML.T0051 through the prompt-injection and jailbreak surface, many-shot and context-stuffing surface (128K+ tokens), tool-calling and confused-deputy surface, and multimodal and non-text input surface. Exposure follows listed capabilities, not measured weaknesses.
How can I test a model for LLM Prompt Injection?
Run the Refract prefix_injection, multiturn_crescendo_sim, and multiturn_live_escalation packs: refract scan --target "openai_compat:<model-id>" --base-url https://openrouter.ai/api/v1 --api-key "$OPENROUTER_API_KEY" --battery prefix_injection,multiturn_crescendo_sim,multiturn_live_escalation, 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.
What recent research covers LLM Prompt Injection?
20 research briefs map to AML.T0051. The most recent is GapLeak: When Privacy-Preserving LLM-based Web Agents Become a Privacy Risk ().