A Critical Evaluation of Defenses against Prompt Injection Attacks
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Large Language Models (LLMs) are vulnerable to prompt injection attacks, and several defenses have recently been proposed, often claiming to mitigate these attacks successfully. However, we argue that existing studies lack a principled approach to evaluating these defenses. In this paper, we argue the need to assess defenses across two critical dimensions: (1) effectiveness, measured against both existing and adaptive prompt injection attacks involving diverse target and injected prompts, and (2) general-purpose utility, ensuring that the defense does not compromise the foundational capabilities of the LLM. Our critical evaluation reveals that prior studies have not followed such a comprehensive evaluation methodology. When assessed using this principled approach, we show that existing defenses are not as successful as previously reported. This work provides a foundation for evaluating future defenses and guiding their development. Our code and data are available at: https://github.com/PIEval123/PIEval.
Key facts. Cited by 36 papers in the map (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 26 of its 41 references that are in the map. First posted on arXiv 23 May 2025.
Builds on
26 of 41 references.
Closest ancestors · 13
Same direction, newest first
- 2025Prompt Injection Attack to Tool Selection in LLM Agents28 Apr
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
- 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov
- 2024Embedding-based classifiers can detect prompt injection attacks29 Oct
- 2024Instructional Segment Embedding: Improving LLM Safety with Instruction Hierarchy9 Oct
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judge26 Mar
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Models7 Mar
- 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attacks6 Mar
- 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct
1 more
Other references · 13
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,181
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 748
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 546
- 2023Detecting Language Model Attacks with Perplexitycited by 431
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
Built on by
Citing papers per year: 2025: 9; 2026: 27.
36 papers.
Sort:
By area:
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 108
- 2026Formal Policy Enforcement for Real-World Agentic Systemscited by 33
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 28
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 28
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Toolscited by 24
- 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Toolscited by 18
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Datacited by 18
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2026PIArena: A Platform for Prompt Injection Evaluationcited by 11
- 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attackscited by 10
- 2025SecInfer: Preventing Prompt Injection via Inference-time Scalingcited by 10
24 more
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 9
- 2025Fingerprinting LLMs via Prompt Injectioncited by 8
- 2026AgentWatcher: A Rule-based Prompt Injection Monitorcited by 6
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attackscited by 5
- 2026Agent Security is a Systems Problemcited by 5
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screeningcited by 5
- 2026Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agentscited by 3
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysiscited by 3
- 2026Zero-Shot Embedding Drift Detection: A Lightweight Defense Against Prompt Injections in LLMscited by 2
- 2026LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Trainingcited by 1
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agentscited by 1
- 2026FlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruptioncited by 0
- 2026CleanBase: Detecting Malicious Documents in RAG Knowledge Databasescited by 0
- 2026On the Geometric Limits of Transformer Defenses against Obfuscation Attacks: Latent Embedding Collapse & Performance Robustness Gapcited by 0
- 2026Investigating Detection and Obfuscation of Prompt Injection Attacks Against Software Reverse Engineering AI Agentscited by 0
- 2026Cross-Agent Campaign Attribution: Linking Asynchronous Attacks Across LLM Agentscited by 0
- 2026Rethinking Agent Security as a Networking Problemcited by 0
- 2026Implicit Manipulation for Skill Selection in LLM Agents with Semantic Matchingcited by 0
- 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problemcited by 0
- 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputscited by 0
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forcescited by 0
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injectioncited by 0
- 2026ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agentscited by 0
- 2026TRACER: Trace-Regularized Training Against Indirect Prompt Injectioncited by 0
- 2026TRACER: Trace-Regularized Training Against Indirect Prompt Injection13 Oct 2026
- 2026ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents29 Sep 2026
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injection28 Sep 2026
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forces17 Sep 2026
- 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputs13 Sep 2026
- 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problem3 Sep 2026
- 2026Implicit Manipulation for Skill Selection in LLM Agents with Semantic Matching2 Sep 2026
- 2026Rethinking Agent Security as a Networking Problem12 Aug 2026
- 2026Cross-Agent Campaign Attribution: Linking Asynchronous Attacks Across LLM Agents21 Jul 2026
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis14 Jul 2026
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agents9 Jul 2026
- 2026Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agents25 Jun 2026
24 more
- 2026Investigating Detection and Obfuscation of Prompt Injection Attacks Against Software Reverse Engineering AI Agents29 May 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026On the Geometric Limits of Transformer Defenses against Obfuscation Attacks: Latent Embedding Collapse & Performance Robustness Gap18 May 2026
- 2026Agent Security is a Systems Problem18 May 2026
- 2026LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Training2 May 2026
- 2026CleanBase: Detecting Malicious Documents in RAG Knowledge Databases1 May 2026
- 2026FlashRT: Towards Computationally and Memory Efficient Red-Teaming for Prompt Injection and Knowledge Corruption30 Apr 2026
- 2026PIArena: A Platform for Prompt Injection Evaluation9 Apr 2026
- 2026AgentWatcher: A Rule-based Prompt Injection Monitor1 Apr 2026
- 2026A Framework for Formalizing LLM Agent Security19 Mar 2026
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Survey11 Mar 2026
- 2026Formal Policy Enforcement for Real-World Agentic Systems18 Feb 2026
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attacks14 Feb 2026
- 2026Zero-Shot Embedding Drift Detection: A Lightweight Defense Against Prompt Injections in LLMs18 Jan 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data10 Dec 2025
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challenges27 Oct 2025
- 2025PromptLocate: Localizing Prompt Injection Attacks14 Oct 2025
- 2025Fingerprinting LLMs via Prompt Injection29 Sep 2025
- 2025SecInfer: Preventing Prompt Injection via Inference-time Scaling29 Sep 2025
- 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Tools25 Sep 2025
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Tools4 Aug 2025
- 2025PromptArmor: Simple yet Effective Prompt Injection Defenses21 Jul 2025
- 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attacks3 Jul 2025
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 108
- 2026Formal Policy Enforcement for Real-World Agentic Systemscited by 33
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 28
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 28
- 2025Attractive Metadata Attack: Inducing LLM Agents to Invoke Malicious Toolscited by 24
- 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Toolscited by 18
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Datacited by 18
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attackscited by 10
- 2026Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agentscited by 3
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysiscited by 3
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agentscited by 1
12 most cited of 20 All 20 (JSON)
- 2026ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents29 Sep 2026
- 2026Same Bytes, Different Authority: Reserved-Token Representations in Chat-Template Prompt Injection28 Sep 2026
- 2026A Proposal for an Agentic AI Architecture to Support Multi-Domain Decision-Making in the Brazilian Armed Forces17 Sep 2026
- 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputs13 Sep 2026
- 2026Implicit Manipulation for Skill Selection in LLM Agents with Semantic Matching2 Sep 2026
- 2026Rethinking Agent Security as a Networking Problem12 Aug 2026
- 2026Cross-Agent Campaign Attribution: Linking Asynchronous Attacks Across LLM Agents21 Jul 2026
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis14 Jul 2026
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agents9 Jul 2026
- 2026Adaptive Evaluation of Out-of-Band Defenses Against Prompt Injection in LLM Agents25 Jun 2026
- 2026Investigating Detection and Obfuscation of Prompt Injection Attacks Against Software Reverse Engineering AI Agents29 May 2026
- 2026A Framework for Formalizing LLM Agent Security19 Mar 2026
12 newest of 20 All 20 (JSON)
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 28
- 2026PIArena: A Platform for Prompt Injection Evaluationcited by 11
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanismcited by 9
- 2025Fingerprinting LLMs via Prompt Injectioncited by 8
- 2026AgentWatcher: A Rule-based Prompt Injection Monitorcited by 6
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attackscited by 5
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screeningcited by 5
- 2026Zero-Shot Embedding Drift Detection: A Lightweight Defense Against Prompt Injections in LLMscited by 2
- 2026LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Trainingcited by 1
- 2026On the Geometric Limits of Transformer Defenses against Obfuscation Attacks: Latent Embedding Collapse & Performance Robustness Gapcited by 0
- 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problemcited by 0
- 2026TRACER: Trace-Regularized Training Against Indirect Prompt Injectioncited by 0
- 2026TRACER: Trace-Regularized Training Against Indirect Prompt Injection13 Oct 2026
- 2026Rethinking Indirect Prompt Injection as a Test-Time Search Problem3 Sep 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026On the Geometric Limits of Transformer Defenses against Obfuscation Attacks: Latent Embedding Collapse & Performance Robustness Gap18 May 2026
- 2026LocalAlign: Enabling Generalizable Prompt Injection Defense via Generation of Near-Target Adversarial Examples for Alignment Training2 May 2026
- 2026PIArena: A Platform for Prompt Injection Evaluation9 Apr 2026
- 2026AgentWatcher: A Rule-based Prompt Injection Monitor1 Apr 2026
- 2026AlignSentinel: Alignment-Aware Detection of Prompt Injection Attacks14 Feb 2026
- 2026Zero-Shot Embedding Drift Detection: A Lightweight Defense Against Prompt Injections in LLMs18 Jan 2026
- 2026The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism14 Jan 2026
- 2025PromptLocate: Localizing Prompt Injection Attacks14 Oct 2025
- 2025Fingerprinting LLMs via Prompt Injection29 Sep 2025
- 2026Agent Security is a Systems Problemcited by 5
- 2026Agent Security is a Systems Problem18 May 2026
Similar, not cited
Close in wording, no citation either way
- 2026AttackEval: A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Models
- 2024Defense Against Prompt Injection Attack by Leveraging Attack Techniques
- 2024Systematically Analyzing Prompt Injection Vulnerabilities in Diverse LLM Architectures
- 2025Attack and defense techniques in large language models: A survey and new perspectives
- 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
- 2025Prompt Injection as an Emerging Threat: Evaluating the Resilience of Large Language Models
- 2024An Early Categorization of Prompt Injection Attacks on Large Language Models
- 2024A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models