ContextLure:利用良性对话历史实现间接提示注入
ContextLure: Exploiting Benign Conversation History for Indirect Prompt Injection
AI总结:
本文提出ContextLure红队框架,利用良性对话历史提取证据构建间接提示注入,在AgentDojo和InjecAgent上分别取得67.4%和87.3%的攻击成功率,验证了攻击者可通过此类证据实施攻击。
摘要:
随着大型语言模型(LLM)能力的提升,智能体可借助工具完成更复杂的任务,并与用户维持更长时间的交互。这些良性对话包含任务结果、用户需求及操作约束等信息。攻击者若能观察到这些良性对话(证据),可构建更强的间接提示注入,且无需提升对先前对话轮次或后续注入的控制。但目前仍缺乏对攻击者选择和利用此类证据有效性的明确研究。为填补这一空白,本文提出ContextLure,这是一种红队框架:攻击者静默观察现有良性对话,提取证据并构建注入。该框架面临两大挑战:(a)选择有用证据;(b)将证据呈现为未授权操作的理由,且不改变先前的良性对话。为高效利用证据对攻击成功率的影响,该框架从用户/系统偏好两个维度选择证据,采用3种选择策略;为将所选信息转化为恶意请求,引入紧急度/优先级矩阵,采用4种改写策略。在评估条件下,该框架在AgentDojo上的攻击成功率(ASR)达67.4%,在InjecAgent上达87.3%。结果表明,攻击者可在不先污染良性对话的情况下,利用良性交互证据实施后续攻击。
英文摘要:
As LLMs become more capable, agents can perform more complex tasks with tools and maintain longer interactions with users. These benign conversations contain evidence on task results, user concerns, and operational constraints. The risk is that attackers who can observe benign conversations (evidence) may construct stronger indirect prompt injections without increasing the attackers' control over prior turns or the later injection. However, we still lack a clear study of how effectively attackers can select and use this evidence. To address this gap, we introduce ContextLure, a red-teaming framework in which an attacker silently observes an existing benign conversation, extracts evidence, and constructs an injection. The challenges are twofold: (a) selecting useful evidence and (b) presenting it as reasons for an unauthorized action, without changing the prior benign conversation. To efficiently exploit (a) the effect of evidence on attack success, our framework selects evidence across 2 dimensions: User/System Preferences with 3 selection policies. And to enhance (b) the process of turning the selected information into the malicious request, we introduce an Urgency/Priority matrix with 4 rewriting strategies. Across the evaluated conditions, we reach 67.4% ASR on AgentDojo and 87.3% on InjecAgent. These results show that attackers can use benign interaction evidence in later attacks without first poisoning the benign conversation.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。