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)
How the mechanism works
- An application concatenates privileged system directives with untrusted user text, retrieved documents, or tool outputs in one context stream.
- Adversarial instructions embedded in the untrusted segment conflict with the system policy and redirect the model's next-token generation.
- If downstream code trusts model output for routing, rendering, or tool execution, the hijacked instruction triggers unauthorized side effects.
Detection & telemetry signals
- Guardrail or prompt-shield classifiers flagging instruction-override framing inside user queries or retrieved RAG chunks.
- Sudden divergence between a user's initial task intent and the sequence or targets of subsequent tool calls.
- Output DLP or canary checks detecting unexpected system-prompt fragments, internal identifiers, or external exfiltration links.
Architectural defensive countermeasures
- Enforce tool authorization, tenant data ACLs, and schema validation in deterministic application code independent of model refusals.
- Use structural role separation and instruction-hierarchy fine-tuning while treating model compliance as defense-in-depth, never a security boundary.
- Require explicit human approval displaying concrete action parameters before executing state-changing or external tool calls.
- Isolate and label untrusted retrieved content and measure both adversarial bypass rates and benign false-refusal regressions continuously.
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
- Validate AI Model AML.M0008
Run independent pre-release and post-fine-tuning assurance suites covering safety regressions, backdoor activation, alignment drift, and privacy leakage before promotion.
- Control Access to AI Models and Data in Production AML.M0019
Enforce deterministic runtime authentication, tenant isolation, and per-document RAG authorization outside the LLM context window for every inference and retrieval request.
- Generative AI Guardrails AML.M0020
Deploy layered input and output classifiers, constitutional/topic rails, and structural validators with measured benign over-refusal rates—never relying on classifiers as the sole authorization boundary.
- Generative AI Guidelines AML.M0021
Codify explicit acceptable-use rules, prompt policy hierarchies, and refusal rubrics to steer model alignment and user expectations, recognizing text guidelines alone cannot stop attacks.
- Generative AI Model Alignment AML.M0022
Harden model weights via SFT, RLHF/DPO, deliberative alignment, and instruction-hierarchy training across base and fine-tuned revisions while monitoring residual safety drift.
- AI Telemetry Logging and Monitoring AML.M0024
Emit structured, PII-redacted OpenTelemetry GenAI security traces covering auth, guardrail verdicts, token bursts, and agent tool calls without creating a toxic raw-prompt honeypot.
- Input and Output Validation for AI Agent Components AML.M0033
Validate structured JSON schemas, types, bounds, and safety policies at every handoff between users, retrievers, LLMs, and downstream tools/renderers.
- AI Red Team AML.M0035
Conduct authorized, isolated manual and automated adversarial testing across models, RAG pipelines, and agents—tracking reproducible breach rates, Wilson confidence intervals, and patch verification.
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.
- Prompt-injection and jailbreak surface 563 models
- Many-shot and context-stuffing surface (128K+ tokens) 455 models
- Tool-calling and confused-deputy surface 428 models
- Multimodal and non-text input surface 327 models
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 reportprefix_injectiondirect instruction-override promptsmultiturn_crescendo_simgradual multi-turn escalation simulated inside one transcriptmultiturn_live_escalationlive multi-turn escalation and context poisoning across real conversation turns
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)
- Attack success rate · 4.3%
Stochastic Few-Shot adversarial prompting. Evaluated on HarmBench Standard split (200 behaviors) with Llama-2-7B-Chat default safety prompt. Earlier catalog numerator 9/200 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-2-7B-Chat
- Evaluation
- HarmBench Standard Behaviors (200 behaviors)
- Defense
- Baseline model
- Reported
- Sample
- 200
- Source and location
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) · Main Evaluation Table (Standard Behaviors ASR %, N=200)
- Evidence provenance
- Independently replicated
- Attack success rate · 89%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 185/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Mistral-7B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- Baseline model
- Reported
- Sample
- 208
- Source and location
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 27%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 56/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Mistral-7B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 1%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 2/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Mistral-7B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 97%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 202/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-3-8B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- Baseline model
- Reported
- Sample
- 208
- Source and location
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 45%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 94/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-3-8B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Attack success rate · 8%
Evaluated on single-turn data-bearing AlpacaFarm tasks; agentic multi-turn tool environments require separate enforcement. Earlier catalog numerator 17/208 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama-3-8B-Instruct
- Evaluation
- AlpacaFarm Injected Subset (208 data-bearing prompts)
- Defense
- System-prompt hierarchy
- Reported
- Sample
- 208
- Source and location
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) · Figure 3 / Tables 6-7: Maximum Attack Success Rate on AlpacaFarm (N=208)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 95.22%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 4108/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Lakera Guard
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 89.24%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 3850/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- AWS Bedrock Guardrails
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 89.12%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 3845/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Azure AI Prompt Shield
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 79.14%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 3414/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- ProtectAI DeBERTa-v3 Prompt Injection v2
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 78.76%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 3398/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama Prompt Guard 2 (86M)
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 70.07%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 3023/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Google Model Armor
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 66.44%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 2866/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Aporia Guardrails
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 61.82%
Vendor-maintained benchmark suite; Lakera Guard is evaluated by its own vendor alongside third-party classifiers. Balanced accuracy across categories. Earlier catalog numerator 2667/4314 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama Prompt Guard v1 (86M)
- Evaluation
- Lakera PINT Benchmark (4,314 multilingual inputs)
- Defense
- Input/output classifier
- Reported
- Sample
- 4,314
- Source and location
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI · PINT Benchmark Leaderboard (github.com/lakeraai/pint-benchmark)
- Evidence provenance
- Primary-source checked
- Attack success rate · 22%
Vendor-authored benchmark by Meta; compliance rate aggregates security-violating and logic-violating sub-splits. Earlier catalog numerator 55/251 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama 3 405B Instruct
- Evaluation
- CyberSecEval 3 Prompt Injection Suite (251 manual cases)
- Defense
- Baseline model
- Reported
- Sample
- 251
- Source and location
- CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Models · arXiv (author preprint; peer-review status not inferred) · Figure 11 / Section 4: Prompt Injection Compliance Rate (N=251)
- Evidence provenance
- Primary-source checked
- Attack success rate · 19%
Vendor-authored benchmark by Meta; compliance rate aggregates security-violating and logic-violating sub-splits. Earlier catalog numerator 48/251 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama 3 8B Instruct
- Evaluation
- CyberSecEval 3 Prompt Injection Suite (251 manual cases)
- Defense
- Baseline model
- Reported
- Sample
- 251
- Source and location
- CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Models · arXiv (author preprint; peer-review status not inferred) · Figure 11 / Section 4: Prompt Injection Compliance Rate (N=251)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 56%
Metric is F1 score (%) rather than raw binary accuracy; integer numerator is an approximate scale indicator over full WildGuardTest N=5,299. Earlier catalog numerator 2967/5299 was reconstructed from the published rounded percentage. The displayed rate is source-reported. No count-based interval or rank is available.
- Model
- Llama Guard (7B)
- Evaluation
- WildGuardTest (5,299 human-annotated moderation items)
- Defense
- Input/output classifier
- Reported
- Sample
- 5,299
- Source and location
- WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs · arXiv (author preprint; peer-review status not inferred) · Table 4: Prompt Harmfulness Detection F1 (%)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 59.2%
Per-split trial denominators are not tabulated individually in Figure 2; vendor study on historical GPT-3.5-Turbo base.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy Evaluation Suite
- Defense
- Baseline model
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: Main Results (Attack Resistance %)
- Evidence provenance
- Primary-source checked
- Mitigation effectiveness · 79.2%
Per-split trial denominators are not tabulated individually in Figure 2; vendor study on historical GPT-3.5-Turbo base.
- Model
- GPT-3.5-Turbo
- Evaluation
- OpenAI Instruction Hierarchy Evaluation Suite
- Defense
- System-prompt hierarchy
- Reported
- Source and location
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) · Figure 2: Main Results (Attack Resistance %)
- Evidence provenance
- Primary-source checked
Related technique records
Documented incidents & exercises (10)
- Data Exfiltration via Agent Tools in Copilot Studio AML.CS0037 · Exercise · June 2025 · Critical · Enterprise Low-Code Agents
Disclosed in June 2025 ("AgentFlayer: When AIjacking Leads to Full Data Exfiltration in Copilot Studio"), researchers mapped how probing agent trigger channels and sending crafted external inputs can hijack Copilot Studio agents. Once triggered, the injected prompt instructed…
- RAGFlow Text-to-SQL Execution Component SQL Injection INC-2025-27135 · Incident · Feb 25, 2025 · High · Enterprise Data & Analytics
CVE-2025-27135 disclosed a high-severity SQL injection flaw in the RAGFlow retrieval engine's automated natural-language-to-SQL execution component. Model-derived SQL fragments and user-influenced query parameters were concatenated directly into database calls without…
- PromptInject: Goal Hijacking & Prompt Leaking on GPT-3 OBS.EX0001 · Exercise · Nov 17, 2022 · Commercial Autoregressive LLMs · Direct Instruction/Data Boundary Testing
Perez and Ribeiro (2022) introduced PromptInject, an alignment testing framework using mask-based iterative prompt composition to evaluate goal hijacking and system prompt leaking against production GPT-3 endpoints. Across controlled adversarial prompt templates, simple…
- The Instruction Hierarchy: Privileged Instruction Training Evaluation OBS.EX0014 · Exercise · Apr 19, 2024 · GPT-3.5 Instruction-Tuned LLMs · System vs. Untrusted Input Prioritization
Wallace et al. (2024) diagnosed prompt injection and jailbreaking as failures of flat instruction priority where models treat system prompts, user turns, and third-party tool outputs as equally authoritative. Using synthetic conflict-resolution training data on GPT-3.5, the…
- Open-Prompt-Injection Formal Evaluation (5 Attacks x 10 Defenses) OBS.EX0024 · Exercise · Oct 19, 2023 · 10 LLMs x 7 Tasks · Standardized Prompt Injection & Defense Matrix
Liu et al. (2023) formalized prompt injection by unifying direct, escape, context-ignoring, fake-completion, and combined attacks across 10 LLMs, 7 tasks, and 10 proposed defenses. Systematic testing across the unified Open-Prompt-Injection harness revealed that combined…
- StruQ Structured Query Channel Separation Defense Evaluation OBS.EX0027 · Exercise · Feb 9, 2024 · Fine-Tuned Open-Weight LLMs · Dual-Channel Prompt/Data Isolation
Chen et al. (2024) introduced StruQ, pairing a sanitizing front-end tokenizer with structured instruction-tuning that trains models to obey directives exclusively within designated prompt channels while ignoring instructions inside data channels. Evaluated across…
- SecAlign Preference Optimization Against Unknown Prompt Injections OBS.EX0028 · Exercise · Oct 7, 2024 · Instruction-Tuned LLMs · Direct Preference Optimization Defense
Chen et al. (2024) constructed paired preference datasets contrasting legitimate task completions against injected-instruction completions to align models via SecAlign preference optimization. Across sophisticated unseen prompt injections, SecAlign reduced attack success rates…
- AttentionSwitch Sparse Attention-Head Defense Evaluation OBS.EX0040 · Exercise · Nov 5, 2026 · Open-Weight LLMs · Joint Sparse Attention-Head Selection & Scaling
Obidov et al. (2026) introduced AttentionSwitch, the first jailbreak defense to jointly optimize both intervention site selection and query-conditioned multiplicative scaling across sparse attention heads inside a frozen LLM without altering representation directions. Evaluated…
- NIST AI 100-2 E2025 Adversarial Machine Learning Attack & Mitigation Taxonomy OBS.EX0229 · Exercise · Mar 24, 2025 · Predictive & Generative AI Systems · Comprehensive Lifecycle Threat & Mitigation Standard
Vassilev, Oprea, Fordyce, Anderson, Davies, and Hamin (NIST AI 100-2 E2025, March 2025) published an authoritative taxonomy spanning evasion, poisoning, privacy (extraction, reconstruction, membership/property inference), and abuse attacks across predictive and generative AI…
- OWASP GenAI Red Teaming Guide & Application Security Exercise Methodology OBS.EX0234 · Exercise · Jan 22, 2025 · Model, Implementation, Infrastructure & Runtime Layers · Risk-Based Red Teaming
The OWASP GenAI Security Project (January 2025) published the GenAI Red Teaming Guide to operationalize structured security exercises across four distinct layers: base model behavior, application/RAG implementation, hosting infrastructure, and runtime agent interactions.…
Source citation records
- MITRE ATLAS: LLM Prompt Injection · MITRE ·
- 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) ·
- The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions · arXiv (author preprint; peer-review status not inferred) ·
- LLM01:2025 Prompt Injection · OWASP GenAI Security Project ·
- Ignore Previous Prompt: Attack Techniques For Language Models · arXiv (author preprint; peer-review status not inferred) ·
- HarmBench: A Standardized Evaluation Framework for Automated Red Teaming and Robust Refusal · arXiv (author preprint; peer-review status not inferred) ·
- StruQ: Defending Against Prompt Injection with Structured Queries · arXiv (author preprint; peer-review status not inferred) ·
- SecAlign: Defending Against Prompt Injection with Preference Optimization · arXiv (author preprint; peer-review status not inferred) ·
- PINT Benchmark: Prompt Injection Test Dataset and Guardrail Evaluation · Lakera AI ·
- CYBERSECEVAL 3: Advancing the Evaluation of Cybersecurity Risks and Capabilities in Large Language Models · arXiv (author preprint; peer-review status not inferred) ·
- WildGuard: Open One-Stop Moderation Tools for Safety Risks, Jailbreaks, and Refusals of LLMs · arXiv (author preprint; peer-review status not inferred) ·
- The Hidden Risks of Large Reasoning Models: A Safety Assessment of R1 · arXiv (author preprint; peer-review status not inferred) ·
- Claude 3.7 Sonnet System Card · Anthropic ·
- Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game · arXiv (author preprint; peer-review status not inferred) ·
- ErosionBench: Probing Alignment Decay in Enterprise Multi-Agent Systems · arXiv (author preprint; peer-review status not inferred) ·
- BashArena: A Control Setting for Highly Privileged AI Agents · arXiv (author preprint; peer-review status not inferred) ·
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, andmultiturn_live_escalationpacks: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 ().