mlsanityData to 14 Oct 2026

PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis

arXiv 2607.12624 ↗First posted 14 Jul 2026cs.CRcited by 3

On the map: LLM agents and tool use → Agent threats, guardrails and governance

also in 1 more
Abstract (arXiv)

Large language models (LLMs) are increasingly deployed as purpose-specific agents to handle domain-specific tasks such as customer service and code generation. These agents are expected to comply with not only generic safety guardrails but also purpose-specific restrictions tailored to their designated roles. Such additional restrictions enlarge the attack surface, particularly to prompt injection (PI) attacks. To defend against such attacks, existing detection methods primarily rely on analyzing input-output patterns, yet yield limited effectiveness. To address this limitation, we turn to analyzing the hidden activation space and discover that LLMs inherently retain latent policy-violation (PV) concepts when prompted with requests beyond their designated purpose. Particularly, PV concepts capture the semantics of conflicts between user queries and predefined restrictions, implicitly reflecting LLMs' intrinsic awareness of recognizing policy violations. Building on this insight, we propose PVDetector, a training-free framework that detects PI attacks during LLM inference by measuring hidden-state alignment with PV concepts, which are derived offline from the contrastive pairs of policy-violating and policy-compliant prompts. Experiments across multiple LLMs and datasets show that PVDetector achieves <1% false negative rate with minimal auxiliary overhead, consistently outperforming state-of-the-art methods. Our code is available at https://github.com/Claresigle/PVDetector .

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 32 of its 65 references that are in the map. First posted on arXiv 14 Jul 2026.

Builds on

32 of 65 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025ADVEDM:Fine-grained Adversarial Attack against VLM-based Embodied Agents20 Sep
  2. 2025Manipulating Multimodal Agents via Cross-Modal Prompt Injection19 Apr
  3. 2025Defeating Prompt Injections by Design24 Mar

Other references · 29

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  3. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  4. 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
  5. 2024Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phonecited by 1,917
  6. 2022Ignore Previous Prompt: Attack Techniques For Language Modelscited by 832
  7. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructionscited by 493
  8. 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 472
  9. 2023Detecting Language Model Attacks with Perplexitycited by 431
  10. 2015Autoencoding beyond pixels using a learned similarity metriccited by 407
  11. 2024StruQ: Defending Against Prompt Injection with Structured Queriescited by 375
  12. 2023Emergent Linear Representations in World Models of Self-Supervised Sequence Modelscited by 319
17 more
  1. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Modelscited by 264
  2. 2025AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoderscited by 218
  3. 2024SecAlign: Defending Against Prompt Injection with Preference Optimizationcited by 210
  4. 2026Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnetcited by 191
  5. 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judgecited by 143
  6. 2025DataSentinel: A Game-Theoretic Detection of Prompt Injection Attackscited by 143
  7. 2024PLeak: Prompt Leaking Attacks against Large Language Model Applicationscited by 127
  8. 2024Language Models are Homer Simpson! Safety Re-Alignment of Fine-tuned Language Models through Task Arithmeticcited by 112
  9. 2023AdvCLIP: Downstream-agnostic Adversarial Examples in Multimodal Contrastive Learningcited by 103
  10. 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMscited by 95
  11. 2024Neural Exec: Learning (and Learning from) Execution Triggers for Prompt Injection Attackscited by 85
  12. 2025Can Indirect Prompt Injection Attacks Be Detected and Removed?cited by 52
  13. 2025A Critical Evaluation of Defenses against Prompt Injection Attackscited by 36
  14. 2024Enhancing Prompt Injection Attacks to LLMs via Poisoning Alignmentcited by 21
  15. 2023Meta Prompting for AI Systemscited by 16
  16. 2025SegTrans: Transferable Adversarial Examples for Segmentation Modelscited by 8
  17. 2026Defending Jailbreak Attacks on Large Language Models via Manifold Trajectory Kineticscited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026The Landscape of Prompt Injection Threats in LLM Agents: From Taxonomy to Analysis
  2. 2025PromptSleuth: Detecting Prompt Injection via Semantic Intent Invariance
  3. 2026AgentWatcher: A Rule-based Prompt Injection Monitor
  4. 2025Mitigating Indirect Prompt Injection via Instruction-Following Intent Analysis
  5. 2026Verifying Intent and Harm: A Unified Defense Against LLM-Generated Threats
  6. 2026Know Thy Enemy: Securing LLMs Against Prompt Injection via Diverse Data Synthesis and Instruction-Level Chain-of-Thought Learning
  7. 2026ARGUS: Defending LLM Agents Against Context-Aware Prompt Injection
  8. 2025A Multi-Agent LLM Defense Pipeline Against Prompt Injection Attacks