arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.07640cs.CRcs.AI
收藏

超越指令覆盖:针对任务篡改攻击的间接提示注入基准测试

Beyond Instruction Override: Benchmarking Indirect Prompt Injection with Task-Tampering Attacks

Amazon(亚马逊);Microsoft(微软)

Rongting Zhang, Martin Bertran, Sandeep Avula, Chia-Jung Lee, Vanessa Murdock

AI总结:

该研究构建了针对任务篡改攻击的间接提示注入基准,发现现有防御对不同攻击类型的效果存在差异,仅针对目标的评估会高估防御覆盖范围。

摘要:

间接提示注入(IPI)基准测试主要测试植入指令,这些指令会将使用工具的智能体重定向到攻击者选择的任务。然而,攻击者控制的内容反而可能篡改正在进行的任务的结果。例如,买家的纠纷证据可能引用虚假退款政策来夸大退款金额,而不改变任务本身。我们通过权限而非类似指令的措辞来定义IPI:当植入的内容试图影响其来源无权决定的决策时,就构成攻击。我们引入了一个明确界定该边界的基准测试:在三种工具使用环境的90个经过验证的案例中,每个案例的用户请求都指定了解决目标决策的来源。每次攻击都会篡改良性任务所需的决策,而非替换该任务。每个案例都有具有相同有害结果的攻击,这些攻击针对智能体决策的多达六个部分:其目标、决策规则、可用操作、预期后果、对观察结果的解读,或对当前状态的信念。在没有防御措施的情况下,针对五个其他目标中的三个(决策规则、可用操作和状态)的攻击,在五个大型语言模型(LLM)上的平均成功率高于针对目标的攻击。一种检测与移除防御措施将针对目标的攻击成功率降至2.4%,但使针对观察结果和状态的攻击成功率分别保持在9.5%和12.1%;在检测优化的重写下,这种差距仍然存在。工具策略防御仍允许15.4%的攻击成功率,接近无防御时的17.0%,因为这些攻击通常保留预期的工具并操纵执行期间获得的值。因此,那些攻击会重定向任务或仅针对智能体目标的评估可能会高估这些防御措施的覆盖范围。代码和数据可在以下https URL获取。

英文摘要:

Indirect prompt-injection (IPI) benchmarks predominantly test planted instructions that redirect a tool-using agent toward an attacker-chosen task. Yet attacker-controlled content can instead tamper with the outcome of the task already in progress. A buyer's dispute evidence can cite a false refund policy to inflate a refund without changing the task. We define IPI by authority rather than instruction-like wording: planted content constitutes an attack when it attempts to influence a decision that its source is not authorized to determine. We introduce a benchmark that makes this boundary explicit: in each of 90 validated cases across three tool-use environments, the user request specifies the source that resolves the targeted decision. Every attack tampers with a decision required by the benign task rather than replacing that task. Each case has attacks with the same harmful outcome that target up to six parts of the agent's decision making: its objective, decision rules, available actions, expected consequences, reading of observations, or beliefs about the current state. Without a defense, attacks on three of the five other targets (decision rules, available actions, and state) have higher mean success than objective attacks across five LLMs. A detection-and-removal defense reduces objective-targeting attacks to 2.4% success but leaves observation- and state-targeting attacks at 9.5% and 12.1%; this gap persists under detection-optimized rewrites. A tool-policy defense still allows 15.4% attack success, close to 17.0% without a defense, because these attacks generally retain expected tools and manipulate values obtained during execution. Evaluations whose attacks redirect the task or target only the agent's objective can therefore overestimate the coverage of these defenses. Code and data are available at https://github.com/amazon-science/task-tampering-prompt-injection.

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

↑