Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

AttriGuard: Defeating Indirect Prompt Injection in LLM Agents via Causal Attribution of Tool Invocations

About

LLM agents are highly vulnerable to Indirect Prompt Injection (IPI), where adversaries embed malicious directives in untrusted tool outputs to hijack execution. Most existing defenses treat IPI as an input-level semantic discrimination problem, which often fails to generalize to unseen payloads. We propose a new paradigm, action-level causal attribution, which secures agents by asking why a particular tool call is produced. The central goal is to distinguish tool calls supported by the user's intent from those causally driven by untrusted observations. We instantiate this paradigm with AttriGuard, a runtime defense based on parallel counterfactual tests. For each proposed tool call, AttriGuard verifies its necessity by re-executing the agent under a control-attenuated view of external observations. Technically, AttriGuard combines teacher-forced shadow replay to prevent attribution confounding, hierarchical control attenuation to suppress diverse control channels while preserving task-relevant information, and a fuzzy survival criterion that is robust to LLM stochasticity. Across four LLMs and two agent benchmarks, AttriGuard achieves 0% ASR under static attacks with negligible utility loss and moderate overhead. Importantly, it remains resilient under adaptive optimization-based attacks in settings where leading defenses degrade significantly.

Yu He, Haozhe Zhu, Yiming Li, Shuo Shao, Hongwei Yao, Zhihao Liu, Zhan Qin• 2026

Related benchmarks

TaskDatasetResultRank
Indirect Prompt Injection Defense EvaluationAgentDojo TOOLKNOWLEDGE attack suite
Latency (s)32.4
24
LLM Agent Task CompletionAgentDojo No Attack
Benign Utility67.39
22
Adversarial Robustness against Indirect Prompt InjectionAgentDojo ToolKnowledge
Utility Score52.83
22
Adversarial Robustness against Indirect Prompt InjectionAgentDojo ImportantMsgs
Utility (UA)50
22
Adversarial Robustness against Indirect Prompt InjectionAgentDojo IgnorePrevious
Utility (UA)54.31
22
Adversarial Robustness against Indirect Prompt InjectionAgentDojo Combined
UA52.15
22
Adversarial Robustness against Indirect Prompt InjectionAgentDojo Average across attacks
UA48.02
22
Agent SecurityASB (Agent Security Benchmark)
No Attack UA90
8
Robustness against Adaptive AttacksAgentDojo 61 instances
Static ASR0.00e+0
8
Indirect Prompt Injection DefenseAgentDojo Banking and Slack suites
BU (No Attack)32.35
4
Showing 10 of 11 rows

Other info

Follow for update