Skip to content

Prompt Injection Detection for Email Agents Through Attack Chain Modeling

Sep 2026 · 0 citations · 21 references
Computer Science

TL;DR

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 is proposed, which achieves a mean F1 score under the strict threshold setting policy.

Abstract

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.

View source

Similar papers

Open access 2026

Execution-Aware Stage-Wise Evaluation Framework for Indirect Prompt Injection in LLM-Based Email Agents

Indirect prompt injection (IPI) attacks have emerged as a critical security threat to large language model (LLM)-based email agents. However, existing evaluation benchmarks largely rely on simulated environments that cannot verify whether an attack will actually succeed in practice, often determining attack success sol...

Hyeonjin Jang, EunSeong Lee, Kyungbaek Kim et al. · 0 citations

LADE: LLM-Assisted Advanced Persistent Threat Detection and Explanation

Experimental results show that LLMs, when guided by rubric-based prompts and supplemented with ATT&CK domain knowledge, achieve robust performance across detection, localization, and TTP mapping tasks.

Joon-Young Gwak, Aubrey Strier, Zhaohan Xi et al. · 1 citation
#machine learning Preprint Sep 2026

AURA: Adaptive Uncertainty-Routed Analysis for Email Threat Detection

Adaptive Uncertainty-Routed Analysis is introduced, a multimodal email threat detection system that analyzes both the content of an email and its embedded URLs and quantifies prediction uncertainty from a URL classifier.

Omran Berjawi, W. Fahs, Rida Khatoun · 0 citations
Open access Oct 2026

AgentBreaker: Evaluating Context-Aware Indirect Prompt Injection Risks in Modern Web Agents

Recent advances in large language models (LLMs) have enabled autonomous web agents to perform complex user tasks by leveraging their adaptive decision-making capabilities. Despite their growing use in crawling the Web, their security implications under indirect prompt injection (IPI) attacks remain largely understudied...

Yong-Bi Son, Changoo Lee, Dongwon Shin et al. · 0 citations
Sep 2026

An Explainable and Efficient Ensemble Framework for Phishing Email Detection

Phishing email detection has increasingly benefited from deep neural models and transformer-based language representations. However, many operational security settings still require detectors that are transparent, low-latency, auditable, and deployable without GPU resources. This paper presents an explainable phishing...

T. Onitiju, Swapnoneel Roy, Debajyoti Mukhopadhyay · 0 citations

Related blog posts

MIT News · Artificial Intelligence Sep 24, 2026

Estimating suicide risk from text

A new language-processing tool could help identify the highest-risk individuals from natural language, enabling swifter interventions.

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.