mlsanityData to 14 Oct 2026

PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance

arXiv 2508.20890 ↗First posted 28 Aug 2025cs.CRcited by 8

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

  1. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attacks15 Apr
  2. 2025Defense against Prompt Injection Attacks via Mixture of Encodings10 Apr
  3. 2024FATH: Authentication-based Test-time Defense against Indirect Prompt Injection Attacks28 Oct
  4. 2024SecAlign: Defending Against Prompt Injection with Preference Optimization7 Oct
  5. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr
  6. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
  7. 2024Signed-Prompt: A New Approach to Prevent Prompt Injection Attacks Against LLM-Integrated Applications15 Jan
  8. 2023Jatmo: Prompt Injection Defense by Task-Specific Finetuning29 Dec
  9. 2023Formalizing and Benchmarking Prompt Injection Attacks and Defenses19 Oct

Other references · 14

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  3. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2022Emergent Abilities of Large Language Modelscited by 2,512
  6. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
  7. 2023ChatGPT Outperforms Crowd-Workers for Text-Annotation Taskscited by 870
  8. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  9. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 651
  10. 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 642
  11. 2024Large Language Models: A Surveycited by 525
  12. 2023Detecting Language Model Attacks with Perplexitycited by 431
2 more
  1. 2022Evaluating the Factual Consistency of Large Language Models Through News Summarizationcited by 92
  2. 2025ControlNET: A Firewall for RAG-based LLM Systemcited by 12

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 8.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis
  2. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
  3. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models
  4. 2026The Anatomy of a Prompt Injection: A Component Model for Structured Analysis
  5. 2024An Early Categorization of Prompt Injection Attacks on Large Language Models
  6. 2026Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats
  7. 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning
  8. 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis