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

偏离任务轨道:对大语言模型(LLM)与智能体针对近目标提示注入的鲁棒性进行基准测试

On Task, Off Track: Benchmarking LLM and Agent Robustness to Near-Target Prompt Injection

Wuhan University(武汉大学)

Yuyang Gong, Zihao Wang, Jiawei Liu, XiaoFeng Wang

AI总结:

该研究提出NTBench基准,发现现有LLM和智能体对近目标提示注入的鲁棒性弱于固定目标攻击,近目标攻击成功率更高,拓宽了鲁棒性评估的失败揭示范围。

摘要:

提示注入基准测试用于评估大语言模型(LLM)和智能体是否能抵御嵌入在外部内容中的恶意指令。然而,系统可能会通过拒绝明显放弃用户请求的攻击而表现良好,但仍会接受保留了合法答案大部分内容却使其变得不正确或有害的修改。测试更多无关结果的指令不一定能揭示这种弱点。我们将那些旨在生成类似合法答案但引入不正确或有害修改的攻击称为近目标提示注入。我们推出NTBench(近目标基准),该基准基于现有数据集中的合法任务构建。对于每个任务,合法参考结果会指导目标-指令对的生成,其中不同的轨道分别针对响应或智能体工具调用中的不正确和有害结果。有害目标也可能伴随原本正确的任务完成。我们结合基于LLM的检查与对预期偏差的人工验证,然后评估注入的指令是否通过响应判断或工具调用检查诱导出这些偏差,排除未注入时已观察到的偏差。我们在10个语言任务数据集和2个智能体基准上评估了7种LLM。在每个样本3次攻击执行的通用预算下,在每种设置中,所有评估模型的两个轨道都比固定目标基准实现了更高的整体攻击成功率。在语言任务上,不正确目标的成功率提升幅度为9.3至35.8个百分点,有害目标的提升幅度为1.7至17.3个百分点。这些结果表明,对所测试的固定目标攻击的抵御能力并不意味着对相关不正确或有害结果的抵御能力,且参考引导的目标拓宽了鲁棒性评估所揭示的失败情况。

英文摘要:

Prompt injection benchmarks assess whether large language models (LLMs) and agents resist malicious instructions embedded in external content. However, a system could perform well by rejecting attacks that obviously abandon the user's request, while still accepting changes that retain most of a legitimate answer but make it incorrect or harmful. Testing more instructions for unrelated outcomes would not necessarily reveal this weakness. We call attacks seeking responses designed to resemble legitimate answers while introducing incorrect or harmful changes near-target prompt injection. We introduce NTBench, the Near-Target Benchmark, which builds on legitimate tasks from existing datasets. For each task, a legitimate reference outcome guides the generation of target--instruction pairs, with separate tracks targeting incorrect and harmful outcomes in responses or agent tool invocations. Harmful targets can also accompany otherwise correct task completion. We combine LLM-based checks with human validation of the intended deviations, then assess whether injected instructions induce them using response judgments or tool-call checks, excluding deviations already observed without injection. We evaluate seven LLMs on ten datasets for language tasks and two agent benchmarks. Under a common budget of three attack executions per sample, both tracks achieve higher overall attack success rates than the fixed-target baseline for every evaluated model in each setting. On language tasks, the increases range from 9.3 to 35.8 percentage points for incorrect targets and 1.7 to 17.3 percentage points for harmful targets. These results show that resistance to the tested fixed-target attacks does not imply resistance to related incorrect or harmful outcomes, and that reference-guided targets broaden the failures revealed by robustness evaluation.

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

↑