MITRE ATLAS 2026.10 · AML.T0051.000 · High severity

LLM Prompt Injection: Direct

Direct prompt injection occurs when the interactive user supplies input designed to subvert the application's hidden system instructions, safety constraints, or business rules. Unlike indirect injection, the threat actor is the active session user testing what unauthorized data or actions the wrapper will permit.

Technique dossier overview

Category
Prompt and context integrity
Severity
High
Attack surface
LLM / Prompt Layer · Tool-Using Agents & MCP
Framework maturity
Realized
Platforms
Generative AI, Agentic AI
Tactics
Execution
Aliases
Direct prompt injection
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.000 in Interactive Technique Workbench

How the mechanism works

  1. A user submits conversational turns framed to supersede system instructions, redefine roles, or coerce restricted output formats.
  2. Because system instructions and user messages share the same transformer attention window, strong contextual framing shifts model adherence.
  3. The model reveals embedded prompt secrets, bypasses business constraints, or passes manipulated arguments to backend tools.

Detection & telemetry signals

Architectural defensive countermeasures

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

OWASP LLM Top 10 (2025)
OWASP rationale
Direct injection leverages user-controlled prompt channels (LLM01) frequently aimed at extracting system instructions (LLM07) or abusing user-accessible tool capabilities (LLM06).
NIST AI RMF functions
NIST AI RMF guidance
MEASURE direct-injection resistance and false-refusal balance during red-team gates, and MANAGE impact by keeping secrets and authorization checks completely outside the prompt.

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

Related technique records

Documented incidents & exercises (31)

Source citation records

Common questions

What is LLM Prompt Injection: Direct (AML.T0051.000)?
Direct prompt injection occurs when the interactive user supplies input designed to subvert the application's hidden system instructions, safety constraints, or business rules. Unlike indirect injection, the threat actor is the active session user testing what unauthorized data or actions the wrapper will permit.
How do you mitigate LLM Prompt Injection: Direct?
MITRE ATLAS maps 5 mitigations to AML.T0051.000: Generative AI Guardrails, AI Telemetry Logging and Monitoring, Enforce Access Controls for AI Agent Tools, Input and Output Validation for AI Agent Components, and AI Red Team. Never store API keys, authorization logic, or secret business rules inside system prompts; enforce access control in backend code.
How can I test a model for LLM Prompt Injection: Direct?
Run the Refract prefix_injection and multiturn_crescendo_sim 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, 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.