PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance
On the map: LLM safety and security → Prompt injection and agent security
Abstract (arXiv)
Large Language Models (LLMs) are increasingly integrated into real-world applications, from virtual assistants to autonomous agents. However, their flexibility also introduces new attack vectors-particularly Prompt Injection (PI), where adversaries manipulate model behavior through crafted inputs. As attackers continuously evolve with paraphrased, obfuscated, and even multi-task injection strategies, existing benchmarks are no longer sufficient to capture the full spectrum of emerging threats. To address this gap, we construct a new benchmark that systematically extends prior efforts. Our benchmark subsumes the two widely-used existing ones while introducing new manipulation techniques and multi-task scenarios, thereby providing a more comprehensive evaluation setting. We find that existing defenses, though effective on their original benchmarks, show clear weaknesses under our benchmark, underscoring the need for more robust solutions. Our key insight is that while attack forms may vary, the adversary's intent-injecting an unauthorized task-remains invariant. Building on this observation, we propose PromptSleuth, a semantic-oriented defense framework that detects prompt injection by reasoning over task-level intent rather than surface features. Evaluated across state-of-the-art benchmarks, PromptSleuth consistently outperforms existing defense while maintaining comparable runtime and cost efficiency. These results demonstrate that intent-based semantic reasoning offers a robust, efficient, and generalizable strategy for defending LLMs against evolving prompt injection threats.
Key facts. Cited by 8 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 23 of its 39 references that are in the map. First posted on arXiv 28 Aug 2025.
Builds on
23 of 39 references.
Closest ancestors · 9
Same direction, newest first
- 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
- 2025Defense against Prompt Injection Attacks via Mixture of Encodings10 Apr
- 2024FATH: Authentication-based Test-time Defense against Indirect Prompt Injection Attacks28 Oct
- 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
- 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
- 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
- 2024Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applications15 Jan
- 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuning29 Dec
- 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct
Other references · 14
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
- 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
- 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
- 2024Large Language Models: A Surveycited by 525
- 2023Detecting Language Model Attacks with Perplexitycited by 431
2 more
Built on by
Citing papers per year: 2026: 8.
8 papers.
- 2026MalTool: Malicious Tool Attacks on LLM Agentscited by 20
- 2026Prompt Injection as Role Confusioncited by 17
- 2026A Security Analysis of the OpenClaw AI Agent Frameworkcited by 5
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screeningcited by 5
- 2026AttackEval: A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Modelscited by 2
- 2026Send a SCOUT First: Pre-hoc Reasoning for Adaptive Detector Allocation in Prompt-Injection Defensecited by 0
- 2026On Understanding, Identifying, and Mitigating Vulnerabilities in Agentic Large Language Modelscited by 0
- 2026Origin Is All You Need: Provenance-Aware Transformers for Structural Trust-Boundary Separationcited by 0
- 2026Origin Is All You Need: Provenance-Aware Transformers for Structural Trust-Boundary Separation17 Sep 2026
- 2026On Understanding, Identifying, and Mitigating Vulnerabilities in Agentic Large Language Models11 Aug 2026
- 2026Send a SCOUT First: Pre-hoc Reasoning for Adaptive Detector Allocation in Prompt-Injection Defense29 May 2026
- 2026Measuring Real-World Prompt Injection Attacks in LLM-based Resume Screening27 May 2026
- 2026AttackEval: A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Models4 Apr 2026
- 2026A Security Analysis of the OpenClaw AI Agent Framework29 Mar 2026
- 2026Prompt Injection as Role Confusion22 Feb 2026
- 2026MalTool: Malicious Tool Attacks on LLM Agents12 Feb 2026
Similar, not cited
Close in wording, no citation either way
- 2025Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis
- 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
- 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
- 2026The Anatomy of a Prompt Injection: A Component Model for Structured Analysis
- 2024An Early Categorization of Prompt Injection Attacks on Large Language Models
- 2026Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats
- 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning
- 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis