mlsanityData to 7 Oct 2026

Prompt Injection Detection for Email Agents Through Attack Chain Modeling

arXiv 2609.30657 ↗First posted 25 Sep 2026cs.CR cs.CLcited by 0

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

Abstract (arXiv)

Large language model email assistants are particularly vulnerable to indirect prompt injection because untrusted email content can be retrieved into the model context and influence subsequent tool use. Existing prompt injection detectors mainly formulate this problem as binary malicious text classification, which overlooks the important factor that harmful agent behavior often arises through a sequence of stages. We propose a detection framework that models this attack chain by combining a text detector, verifiers specific to each stage, explicit rule-based risk signals, user intent and action consistency analysis, and a logistic decision policy. To support this framework, we derive attack chain labels from prompt injection datasets, evaluate the proposed framework under random splits, temporal phase transfer, conditional stage transfer, cross-dataset transfer, and conduct ablation studies on multiple benchmarks. Results show that random train test splits substantially overestimate robustness under distribution shift, while later tool argument stages are more predictable than earlier stages in the framework. We also show that training on harmless emails that resemble attacks helps reduce false alarms while preserving the ability to detect real attacks. Across five binary benchmarks, our framework achieves a mean F1 score of 0.406 under the strict threshold setting policy, compared with 0.216 for the strongest of five pretrained detectors evaluated without additional training. These results highlight the value of combining attack stage predictions with checks for conflicts between the user's request and instructions in retrieved emails. Our experiments also demonstrate the importance of training with challenging benign examples to balance attack detection and false alarms.

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

Builds on

12 of 21 references.

Closest ancestors · 9

Same direction, newest first

  1. 2025LLMail-Inject: A Dataset from a Realistic Adaptive Prompt Injection Challenge11 Jun
  2. 2025Detection Method for Prompt Injection by Integrating Pre-trained Model and Heuristic Feature Engineering5 Jun
  3. 2025Defeating Prompt Injections by Design24 Mar
  4. 2025PromptShield: Deployable Detection for Prompt Injection Attacks25 Jan
  5. 2024InjecGuard: Benchmarking and Mitigating Over-defense in Prompt Injection Guardrail Models30 Oct
  6. 2024InjecAgent: Benchmarking Indirect Prompt Injections in Tool-Integrated Large Language Model Agents5 Mar
  7. 2024StruQ: Defending Against Prompt Injection with Structured Queries9 Feb
  8. 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
  9. 2023Tensor Trust: Interpretable Prompt Injection Attacks from an Online Game2 Nov

Other references · 3

  1. 2025LLM Agents Making Agent Toolscited by 45
  2. 2025LLMs in Software Security: A Survey of Vulnerability Detection Techniques and Insightscited by 44
  3. 2025Debate-Driven Multi-Agent LLMs for Phishing Email Detectioncited by 9

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025WAInjectBench: Benchmarking Prompt Injection Detections for Web Agents
  2. 2025Your Mailbox Is Mine: Prompt Injection Attacks Against Real-World LLM Email Agents
  3. 2026The Anatomy of a Prompt Injection: A Component Model for Structured Analysis
  4. 2026An Empirical Evaluation of Prompt Injection Vulnerabilities in Large Language Models Across Multilingual and Obfuscated Attack Scenarios
  5. 2026The System Prompt Is the Attack Surface: How LLM Agent Configuration Shapes Security and Creates Exploitable Vulnerabilities
  6. 2025Attention is All You Need to Defend Against Indirect Prompt Injection Attacks in LLMs
  7. 2025EvoMail: Self-Evolving Cognitive Agents for Adaptive Spam and Phishing Email Defense
  8. 2026A Layered Security Framework Against Prompt Injection in RAG-Based Chatbots