arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.10749cs.CR
收藏

AttriGuard: 通过工具调用的因果归因击败LLM代理中的间接提示注入

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

Zhejiang University(浙江大学);Nanyang Technological University(南洋理工大学);City University of Hong Kong(香港城市大学)

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

AI总结:

针对LLM代理易受间接提示注入攻击的问题,提出基于并行反事实测试的运行时防御AttriGuard,通过因果归因区分用户意图驱动与不可信观察驱动的工具调用,在多个基准上实现0%攻击成功率。

摘要:

LLM代理极易受到间接提示注入(IPI)的攻击,攻击者将恶意指令嵌入不可信的工具输出中以劫持执行。现有大多数防御将IPI视为输入级语义判别问题,通常无法泛化到未见过的载荷。我们提出了一种新的范式——动作级因果归因,通过询问为什么产生特定的工具调用来保护代理。核心目标是区分由用户意图支持的工具调用与由不可信观察因果驱动的工具调用。我们通过AttriGuard实例化该范式,这是一种基于并行反事实测试的运行时防御。对于每个提议的工具调用,AttriGuard通过在外部观察的控制衰减视图下重新执行代理来验证其必要性。技术上,AttriGuard结合了教师强制影子回放以防止归因混淆、层次化控制衰减以抑制多样化的控制通道同时保留任务相关信息,以及一个对LLM随机性鲁棒的模糊生存准则。在四个LLM和两个代理基准测试中,AttriGuard在静态攻击下实现了0%的攻击成功率,且效用损失可忽略,开销适中。重要的是,在基于自适应优化的攻击下,当领先的防御显著退化时,它仍然保持鲁棒性。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑