DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
LLM-integrated applications and agents are vulnerable to prompt injection attacks, where an attacker injects prompts into their inputs to induce attacker-desired outputs. A detection method aims to determine whether a given input is contaminated by an injected prompt. However, existing detection methods have limited effectiveness against state-of-the-art attacks, let alone adaptive ones. In this work, we propose DataSentinel, a game-theoretic method to detect prompt injection attacks. Specifically, DataSentinel fine-tunes an LLM to detect inputs contaminated with injected prompts that are strategically adapted to evade detection. We formulate this as a minimax optimization problem, with the objective of fine-tuning the LLM to detect strong adaptive attacks. Furthermore, we propose a gradient-based method to solve the minimax optimization problem by alternating between the inner max and outer min problems. Our evaluation results on multiple benchmark datasets and LLMs show that DataSentinel effectively detects both existing and adaptive prompt injection attacks.
Key facts. Cited by 124 papers in the map (data through 7 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 28 of its 55 references that are in the map. First posted on arXiv 15 Apr 2025.
Builds on
28 of 55 references.
Closest ancestors · 9
Same direction, newest first
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
- 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
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuning29 Dec
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct
- 2023Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection23 Feb
Other references · 19
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2013Intriguing properties of neural networkscited by 5,114
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2023Mistral 7Bcited by 3,065
- 2016Towards Evaluating the Robustness of Neural Networkscited by 2,976
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 2,914
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 760
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
7 more
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 608
- 2017Adversarial Examples Are Not Easily Detected: Bypassing Ten Detection Methodscited by 542
- 2015A Neural Attention Model for Abstractive Sentence Summarizationcited by 394
- 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 113
- 2017JFLEG: A Fluency Corpus and Benchmark for Grammatical Error Correctioncited by 96
- 2022Evaluating the Susceptibility of Pre-Trained Language Models via Handcrafted Adversarial Examplescited by 65
- 2018A Stable and Effective Learning Strategy for Trainable Greedy Decodingcited by 12
Built on by
Citing papers per year: 2025: 36; 2026: 88.
124 papers.
Sort:
By area:
- 2025Prompt Injection Attack to Tool Selection in LLM Agentscited by 145
- 2025Progent: Securing AI Agents with Privilege Controlcited by 121
- 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 108
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 98
- 2025WebInject: Prompt Injection Attack to Web Agentscited by 48
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 33
- 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 31
- 2026Formal Policy Enforcement for Real-World Agentic Systemscited by 31
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 25
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 23
38 more
- 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agentscited by 23
- 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agentscited by 21
- 2026MUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attackscited by 18
- 2025Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystemcited by 17
- 2025Automatic Red Teaming LLM-based Agents with Model Context Protocol Toolscited by 17
- 2025ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Datacited by 17
- 2026MalTool: Malicious Tool Attacks on LLM Agentscited by 17
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systemscited by 16
- 2026A Framework for Formalizing LLM Agent Securitycited by 16
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attackscited by 14
- 2025"Your AI, My Shell": Demystifying Prompt Injection Attacks on Agentic AI Coding Editorscited by 14
- 2025ceLLMate: Sandboxing Browser AI Agentscited by 14
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomycited by 14
- 2026MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skillscited by 14
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 13
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commitcited by 13
- 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defensescited by 13
- 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injectioncited by 13
- 2025How Not to Detect Prompt Injections with an LLMcited by 11
- 2025Towards Transparent and Incentive-Compatible Collaboration in Decentralized LLM Multi-Agent Systems: A Blockchain-Driven Approachcited by 11
- 2025TraceAegis: Securing LLM-Based Agents via Hierarchical and Behavioral Anomaly Detectioncited by 11
- 2026WebSentinel: Detecting and Localizing Prompt Injection Attacks for Web Agentscited by 10
- 2026AgentSys: Secure and Dynamic LLM Agents Through Explicit Hierarchical Memory Managementcited by 10
- 2026PIArena: A Platform for Prompt Injection Evaluationcited by 10
- 2025Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysiscited by 9
- 2025Systems Security Foundations for Agentic Computingcited by 9
- 2026AI Agents May Always Fall for Prompt Injectionscited by 9
- 2025Fingerprinting LLMs via Prompt Injectioncited by 8
- 2025Stronger Enforcement of Instruction Hierarchy via Augmented Intermediate Representationscited by 7
- 2025Meta SecAlign: A Secure Foundation LLM Against Prompt Injection Attackscited by 6
- 2025Bypassing Prompt Guards in Production with Controlled-Release Promptingcited by 6
- 2025When AI Meets the Web: Prompt Injection Risks in Third-Party AI Chatbot Pluginscited by 6
- 2026Automating Agent Hijacking via Structural Template Injectioncited by 6
- 2026Safeguarding LLM Agents against Long-Horizon Threats via Shadow Memorycited by 6
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 5
- 2026Semia: Auditing Agent Skills via Constraint-Guided Representation Synthesiscited by 5
- 2026No Attack Required: Semantic Fuzzing for Specification Violations in Agent Skillscited by 5
- 2026SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skillscited by 5
50 most cited of 124 All 124 (JSON)
- 2026False Floors: LLM Safety Routing Evaluations Break Under Distribution Shift1 Oct 2026
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents1 Oct 2026
- 2026ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents29 Sep 2026
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering29 Sep 2026
- 2026Render Before Reading: Visual Rendering as a Prompt Injection Defense28 Sep 2026
- 2026AgentXploit: Autonomous Repository-to-Runtime Red-Teaming for AI Agents25 Sep 2026
- 2026Stealth Apart, Harm Together: Skill Cascading Attacks on Skill-Based Agent Systems24 Sep 2026
- 2026Just Ask Jev: Reinforcement Learning for Calibrated Decisions as a Zero-Shot Detector of AI Alignment Failures24 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Defusing Explosive Prompts: Understanding and Preventing Trigger-Based Prompt Injections in LLM Agents18 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarks15 Sep 2026
38 more
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 Sep 2026
- 2026Detecting and Localizing Segment-Level Poisoning in Multi-Source LLM-Agent Inputs13 Sep 2026
- 2026Beyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrails2 Sep 2026
- 2026Implicit Manipulation for Skill Selection in LLM Agents with Semantic Matching2 Sep 2026
- 2026ECLIPSE: Self-Evolving Stealthy Prompt Injection Attack against Long-Horizon Agentic Systems31 Aug 2026
- 2026Reachability-Based Capability Confinement for LLM Agents under Indirect Prompt Injection30 Aug 2026
- 2026LongPIBench: A Long-Context Benchmark for Prompt Injection28 Aug 2026
- 2026CAITLYN: Can LLM Agents Autonomously Synthesize Defenses against Emerging Injection Attacks?28 Aug 2026
- 2026ContextLeak: Exfiltrating LLM Agent Context via Malicious Tools28 Aug 2026
- 2026SecOPD: Mitigating Adaptive Prompt Injections by On-Policy Distillation21 Aug 2026
- 2026COPA: Continual Preference Optimization for Adaptive Prompt Injection Defense20 Aug 2026
- 2026ActBench: Self-Evolving Benchmark of Behavioral Safety in Cowork Agents10 Aug 2026
- 2026Harmful Content Is Not Enough: Continuation Framing Moderates In-Context Emergent Misalignment8 Aug 2026
- 2026Agent Against Agent: An Agentic System for Automatic Prompt Injection Red Teaming5 Aug 2026
- 2026MAPLE-Guard: Memory-Aware Link Enforcement Against Memory-Link Poisoning in Multi-Agent Systems1 Aug 2026
- 2026Stateful Cooperative Agents Safeguarding LLMs Against Evolving Multi-Turn Attacks31 Jul 2026
- 2026Piggybacking on Perception: Stealthy Concurrent Audio Prompt Injections against Multimodal LLM Agents30 Jul 2026
- 2026Cross-Agent Campaign Attribution: Linking Asynchronous Attacks Across LLM Agents21 Jul 2026
- 2026CPInj: Uncovering Prompt Injection Risks in Textual Collaborative Prompt Optimization21 Jul 2026
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis14 Jul 2026
- 2026Skills That Don't Exist: A Large-Scale Study of Hallucinated Skill Recommendation in LLM Agents14 Jul 2026
- 2026Prismata: Confining Cross-Site Prompt Injection in Web Agents9 Jul 2026
- 2026When Claws Remember but Do Not Tell: Stealthy Memory Injection in Persistent Personal Agents6 Jul 2026
- 2026Agent Data Injection Attacks are Realistic Threats to AI Agents6 Jul 2026
- 2026DualView: Preventing Indirect Prompt Injection in Personal AI Agents4 Jul 2026
- 2026ShareLock: A Stealthy Multi-Tool Threshold Poisoning Attack Against MCP25 Jun 2026
- 2026Dynamic Malicious Skills in Agentic AI15 Jun 2026
- 2026SkillMutator: Benchmarking and Defending Language-and-Code Cross-modal Attacks on LLM Agent Skills12 Jun 2026
- 2026Where Instruction Hierarchy Breaks: Diagnosing and Repairing Failures in Reasoning Language Models5 Jun 2026
- 2026MalSkillBench: A Runtime-Verified Benchmark of Malicious Agent Skills5 Jun 2026
- 2026Provably Secure Agent Guardrail28 May 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026AgentGuard: An Attribute-Based Access Control Framework for Tool-Use LLM-Based Agent27 May 2026
- 2026Prompt Injection Detection is Regime-Dependent: A Deployment-Aware Evaluation with Interpretable Structural Signals26 May 2026
- 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoning26 May 2026
- 2026SCI-Defense: Defending Manipulation Attacks from Generative Engine Optimization21 May 2026
- 2026Agent Security is a Systems Problem18 May 2026
- 2026AI Agents May Always Fall for Prompt Injections17 May 2026
50 newest of 124 All 124 (JSON)
- 2025Prompt Injection Attack to Tool Selection in LLM Agentscited by 145
- 2025Progent: Securing AI Agents with Privilege Controlcited by 121
- 2025PromptArmor: Simple yet Effective Prompt Injection Defensescited by 98
- 2025WebInject: Prompt Injection Attack to Web Agentscited by 48
- 2026AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocationscited by 33
- 2026Formal Policy Enforcement for Real-World Agentic Systemscited by 31
- 2025Agentic AI Security: Threats, Defenses, Evaluation, and Open Challengescited by 26
- 2026The Attack and Defense Landscape of Agentic AI: A Comprehensive Surveycited by 26
- 2026Taming OpenClaw: Security Analysis and Mitigation of Autonomous LLM Agent Threatscited by 25
- 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agentscited by 21
- 2026MUZZLE: Adaptive Agentic Red-Teaming of Web Agents Against Indirect Prompt Injection Attackscited by 18
- 2025Beyond the Protocol: Unveiling Attack Vectors in the Model Context Protocol (MCP) Ecosystemcited by 17
12 most cited of 75 All 75 (JSON)
- 2026PACE: Provenance-Aware Capability Enforcement for Tool-Using LLM Agents1 Oct 2026
- 2026ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM Agents29 Sep 2026
- 2026CounterSteer: Suppressing Indirect Prompt Injection with Activation Steering29 Sep 2026
- 2026AgentXploit: Autonomous Repository-to-Runtime Red-Teaming for AI Agents25 Sep 2026
- 2026Stealth Apart, Harm Together: Skill Cascading Attacks on Skill-Based Agent Systems24 Sep 2026
- 2026When the Agent Becomes the Kernel: A Systematization of Security on the Path to AI-Native Operating Systems20 Sep 2026
- 2026Defusing Explosive Prompts: Understanding and Preventing Trigger-Based Prompt Injections in LLM Agents18 Sep 2026
- 2026Measuring and Exploiting Implicit Trust in LLM Tool-Calling Pipelines16 Sep 2026
- 2026Reflections on Trusting Trust, Revisited: Contaminating Self-Modifying AI Coding Agents with Poisoned Benchmarks15 Sep 2026
- 2026Toward Secure AI-Powered Penetration Testing Agents: Security Threats, Guardrails, and Architectural Perspectives15 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
12 newest of 75 All 75 (JSON)
- 2025The Attacker Moves Second: Stronger Adaptive Attacks Bypass Defenses Against Llm Jailbreaks and Prompt Injectionscited by 108
- 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 31
- 2025PromptLocate: Localizing Prompt Injection Attackscited by 23
- 2025BrowseSafe: Understanding and Preventing Prompt Injection Within AI Browser Agentscited by 23
- 2026Overcoming the Retrieval Barrier: Indirect Prompt Injection in the Wild for LLM Systemscited by 16
- 2025May I have your Attention? Breaking Fine-Tuning based Prompt Injection Defenses using Architecture-Aware Attackscited by 14
- 2025ceLLMate: Sandboxing Browser AI Agentscited by 14
- 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Featurescited by 13
- 2026PISmith: Reinforcement Learning-based Red Teaming for Prompt Injection Defensescited by 13
- 2025How Not to Detect Prompt Injections with an LLMcited by 11
- 2026PIArena: A Platform for Prompt Injection Evaluationcited by 10
- 2026AI Agents May Always Fall for Prompt Injectionscited by 9
12 most cited of 26 All 26 (JSON)
- 2026Render Before Reading: Visual Rendering as a Prompt Injection Defense28 Sep 2026
- 2026Just Ask Jev: Reinforcement Learning for Calibrated Decisions as a Zero-Shot Detector of AI Alignment Failures24 Sep 2026
- 2026LongPIBench: A Long-Context Benchmark for Prompt Injection28 Aug 2026
- 2026SecOPD: Mitigating Adaptive Prompt Injections by On-Policy Distillation21 Aug 2026
- 2026Harmful Content Is Not Enough: Continuation Framing Moderates In-Context Emergent Misalignment8 Aug 2026
- 2026CPInj: Uncovering Prompt Injection Risks in Textual Collaborative Prompt Optimization21 Jul 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026Prompt Injection Detection is Regime-Dependent: A Deployment-Aware Evaluation with Interpretable Structural Signals26 May 2026
- 2026Cordyceps: Covert Control Attacks on LLMs via Data Poisoning26 May 2026
- 2026AI Agents May Always Fall for Prompt Injections17 May 2026
- 2026BadSKP: Backdoor Attacks on Knowledge Graph-Enhanced LLMs with Soft Prompts12 May 2026
- 2026Beyond Pattern Matching: Seven Cross-Domain Techniques for Prompt Injection Detection20 Apr 2026
12 newest of 26 All 26 (JSON)
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomycited by 14
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruptioncited by 5
- 2025External Data Extraction Attacks against Retrieval-Augmented Large Language Modelscited by 2
- 2025Epistemic Bias Injection: Manipulating LLM Opinion via Selective Context Retrievalcited 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
- 2026A Sentence Relation-Based Approach to Sanitizing Malicious Instructionscited by 0
- 2026A Sentence Relation-Based Approach to Sanitizing Malicious Instructions1 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
- 2026SoK: The Attack Surface of Agentic AI - Tools and Autonomy24 Mar 2026
- 2025Epistemic Bias Injection: Manipulating LLM Opinion via Selective Context Retrieval30 Nov 2025
- 2025External Data Extraction Attacks against Retrieval-Augmented Large Language Models3 Oct 2025
- 2025AttnTrace: Contextual Attribution of Prompt Injection and Knowledge Corruption5 Aug 2025
- 2026Extended to Reality: Prompt Injection in 3D Environmentscited by 1
- 2026If you're waiting for a sign... that might not be it! Mitigating Trust Boundary Confusion from Visual Injections on Vision-Language Agentic Systemscited by 1
- 2026Beyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrailscited by 0
- 2026Beyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrails2 Sep 2026
- 2026If you're waiting for a sign... that might not be it! Mitigating Trust Boundary Confusion from Visual Injections on Vision-Language Agentic Systems21 Apr 2026
- 2026Extended to Reality: Prompt Injection in 3D Environments6 Feb 2026
- 2025Bypassing Prompt Guards in Production with Controlled-Release Promptingcited by 6
- 2025Enterprise AI Must Enforce Participant-Aware Access Controlcited by 3
- 2026SCI-Defense: Defending Manipulation Attacks from Generative Engine Optimizationcited by 3
- 2026LLM-enabled Applications Require System-Level Threat Monitoringcited by 2
- 2026Cognitive Training for Language Models: Towards General Capabilities via Cross-Entropy Gamescited by 2
- 2026Agent Security is a Systems Problemcited by 2
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprintscited by 1
- 2025From Insight to Exploit: Leveraging LLM Collaboration for Adaptive Adversarial Text Generationcited by 0
- 2026False Floors: LLM Safety Routing Evaluations Break Under Distribution Shiftcited by 0
- 2026False Floors: LLM Safety Routing Evaluations Break Under Distribution Shift1 Oct 2026
- 2026SCI-Defense: Defending Manipulation Attacks from Generative Engine Optimization21 May 2026
- 2026Agent Security is a Systems Problem18 May 2026
- 2026Cognitive Training for Language Models: Towards General Capabilities via Cross-Entropy Games23 Mar 2026
- 2026LLM-enabled Applications Require System-Level Threat Monitoring23 Feb 2026
- 2025From Insight to Exploit: Leveraging LLM Collaboration for Adaptive Adversarial Text Generation5 Nov 2025
- 2025Bypassing Prompt Guards in Production with Controlled-Release Prompting2 Oct 2025
- 2025Enterprise AI Must Enforce Participant-Aware Access Control18 Sep 2025
- 2025BinaryShield: Cross-Service Threat Intelligence in LLM Services using Privacy-Preserving Fingerprints6 Sep 2025