arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.09321cs.CR
收藏

ObliInjection: 面向多源数据LLM代理的顺序无关提示注入攻击

ObliInjection: Order-Oblivious Prompt Injection Attack to LLM Agents with Multi-source Data

Duke University(杜克大学)

Reachal Wang, Yuqi Jia, Neil Zhenqiang Gong

AI总结:

ObliInjection是一种针对多源数据LLM代理的新型提示注入攻击,通过顺序无关损失和顺序GCG算法有效污染输入数据以误导模型执行攻击者指定任务。

摘要:

提示注入攻击旨在污染LLM的输入数据,使其完成攻击者选择的任务而非原始任务。在许多应用和代理中,输入数据来自多个来源,每个来源贡献输入的整体一部分。在这些多源场景中,攻击者可能仅控制部分来源并污染相应部分,但通常不知道各部分在输入中的顺序。现有提示注入攻击要么假设整个输入数据来自攻击者控制的单一来源,要么忽略不同来源段落顺序的不确定性。因此,它们在涉及多源数据的领域中的成功率有限。在本工作中,我们提出了ObliInjection,这是首个针对具有多源输入数据的LLM应用和代理的提示注入攻击。ObliInjection引入了两个关键技术创新:顺序无关损失,它量化LLM在无论清洁和污染段落如何排列的情况下完成攻击者选择任务的可能性;以及顺序GCG算法,该算法专门用于最小化顺序无关损失并优化污染段落。跨三个涵盖多样化应用领域的数据集和十二个LLM的全面实验表明,ObliInjection非常有效,即使在输入数据的6-100个段落中仅污染一个部分时也是如此。我们的代码和数据可在:https://github.com/ReachalWang/ObliInjection获取。

英文摘要:

Prompt injection attacks aim to contaminate the input data of an LLM to mislead it into completing an attacker-chosen task instead of the intended task. In many applications and agents, the input data originates from multiple sources, with each source contributing a segment of the overall input. In these multi-source scenarios, an attacker may control only a subset of the sources and contaminate the corresponding segments, but typically does not know the order in which the segments are arranged within the input. Existing prompt injection attacks either assume that the entire input data comes from a single source under the attacker's control or ignore the uncertainty in the ordering of segments from different sources. As a result, their success is limited in domains involving multi-source data. In this work, we propose ObliInjection, the first prompt injection attack targeting LLM applications and agents with multi-source input data. ObliInjection introduces two key technical innovations: the order-oblivious loss, which quantifies the likelihood that the LLM will complete the attacker-chosen task regardless of how the clean and contaminated segments are ordered; and the orderGCG algorithm, which is tailored to minimize the order-oblivious loss and optimize the contaminated segments. Comprehensive experiments across three datasets spanning diverse application domains and twelve LLMs demonstrate that ObliInjection is highly effective, even when only one out of 6-100 segments in the input data is contaminated. Our code and data are available at: https://github.com/ReachalWang/ObliInjection.

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

↑