mlsanityData to 14 Oct 2026

Are You Reading the Right Thing? Rethinking Internal Signals for Prompt-Injection Detection

arXiv 2610.19452 ↗First posted 14 Oct 2026cs.AIcited by 0

On the map: LLM safety and security → Prompt injection and agent security also fits: Backdoor and data poisoning attacks

Abstract (arXiv)

Several recent studies propose detecting prompt injections from a language model's internal state. However, these methods do not measure a single security property. Residual-stream probes, attention scores, role projections, exposure probes, and concept readouts may capture injection presence, recognition, information routing, or behavioral influence. It is therefore unclear what differences in prompt-injection detection performance reveal about the internal signals these methods read. We study how five representation-reading methods vary under a common structured indirect prompt-injection setup on Qwen3.6-35B-A3B and Gemma-4-26B-A4B-it. We evaluate each method by how well it distinguishes injected prompts from benign controls. We then further analyze each detection method's ability to detect attacks in cases where they are successful and in cases where they are not. This helps us better assess what properties each detection method might rely on. Methods trained to detect injection presence or attack-related concepts generally separate unsuccessful injections more strongly from benign inputs, whereas attention diversion, exposure, and role-confusion-based methods separate successful injections more strongly on both models. Attention Tracker provides the strongest consistent successful injection separation, reaching 0.949 AUROC on Qwen and 0.887 on Gemma. These results suggest that signals closer to response formation may better encode information about an attack's success, and that detection performance can depend strongly on the prompt template. We share the data associated with this study at https://anonymous.4open.science/r/paper-evaluation-data-7877

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 18 of its 22 references that are in the map. First posted on arXiv 14 Oct 2026.

Builds on

18 of 22 references.

Closest ancestors · 11

Same direction, newest first

  1. 2026BASIS: Breach-Aware Selective Prompt Injection Shielding with Prefill Attention Probes8 Aug
  2. 2026Your Agentic LLMs Secretly Encode Indirect Prompt-Injection Exposure in Hidden States1 Aug
  3. 2026PVDetector: Detecting Prompt Injection Attacks on Purpose-Specific LLM Agents through Policy-Violation Concept Analysis14 Jul
  4. 2026When AUC 0.998 Is Not Enough: A Candidate Evaluation Protocol for Hidden-State Probes of Indirect Prompt Injection in Multimodal Computer-Use Agents22 Jun
  5. 2026Prompt Injection as Role Confusion22 Feb
  6. 2026When Benchmarks Lie: Evaluating Malicious Prompt Classifiers Under True Distribution Shift15 Feb
  7. 2025PIShield: Detecting Prompt Injection Attacks via Intrinsic LLM Features15 Oct
  8. 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agents1 Oct
  9. 2025Defending against Indirect Prompt Injection by Instruction Detection8 May
  10. 2024Attention Tracker: Detecting Prompt Injection Attacks in LLMs1 Nov
  11. 2024The Instruction Hierarchy: Training LLMs to Prioritize Privileged Instructions19 Apr

Other references · 7

  1. 2023Representation Engineering: A Top-Down Approach to AI Transparencycited by 1,336
  2. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  3. 2024Refusal in Language Models Is Mediated by a Single Directioncited by 1,032
  4. 2024Safety Layers in Aligned Large Language Models: The Key to LLM Securitycited by 134
  5. 2026Verbalizable Representations Form a Global Workspace in Language Modelscited by 75
  6. 2024On the Role of Attention Heads in Large Language Model Safetycited by 72
  7. 2026AgentDyn: Are Your Agent Security Defenses Deployable in Real-World Dynamic Environments?cited by 59

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Prompt Injection Detection is Regime-Dependent: A Deployment-Aware Evaluation with Interpretable Structural Signals
  2. 2026Decoding Guardrails: XAI-Guided Perturbation Analysis of Prompt Injection Detection
  3. 2026AttackEval: A Systematic Empirical Study of Prompt Injection Attack Effectiveness Against Large Language Models
  4. 2023Evaluating the Instruction-Following Robustness of Large Language Models to Prompt Injection
  5. 2026AgentWatcher: A Rule-based Prompt Injection Monitor
  6. 2025CAPTURE: Context-Aware Prompt Injection Testing and Robustness Enhancement
  7. 2026Beyond the Verdict: Evidence-Aligned Evaluation of Visual Prompt-Injection Guardrails
  8. 2024Automatic and Universal Prompt Injection Attacks against Large Language Models