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

它能到达生成器吗?探究真实RAG设置中提示注入攻击的存活情况

Can It Reach the Generator? Investigating the Survival of Prompt-Injection Attacks in Realistic RAG Settings

The University of Queensland(昆士兰大学);CSIRO(澳大利亚联邦科学与工业研究组织)

Yu Yin, Shuai Wang, Bevan Koopman, Guido Zuccon

AI总结:

本文在真实的三阶段RAG流水线(检索器→LLM重排序器→LLM生成器)中重新评估了七种生成式引擎优化(GEO)攻击,发现基于梯度和指令覆盖的攻击在到达生成器前大多失效,仅LLM驱动的提示注入保持端到端有效,且所有攻击易被轻量级防护检测。

摘要:

最近的生成式引擎优化(GEO)研究表明,提示注入攻击可以将目标产品推至LLM推荐列表的顶部,最强的攻击报告成功率约为$80\%$,引发了关于基于RAG的推荐的严重安全问题。然而,这些结果假设被攻击的文档总是直接输入生成器,绕过了检索器和重排序器。这并不现实:在部署的RAG系统中,攻击修改文档内容,这反过来可能改变文档是否被检索和重排序到足够高的位置以最终到达生成器。在本文中,我们在一个现实的三阶段流水线(检索器→LLM重排序器→LLM生成器)下重新评估了七种GEO攻击。我们发现先前的协议大大夸大了攻击有效性:基于梯度和指令覆盖的攻击在到达生成器之前基本崩溃,只有LLM驱动的提示注入保持端到端有效。我们的分析进一步揭示,当前的GEO攻击易于检测:一个在小型攻击数据集上微调的轻量级提示注入防护已经能够检测每一种攻击。我们的代码和数据可在https://github.com/ielab/geo_injection_rag_survival获取。

英文摘要:

Recent generative engine optimisation (GEO) research has shown that prompt-injection attacks can push a target product to the top of an LLM's recommendation list, with the strongest attacks reporting around $80\%$ success and raising serious security concerns about RAG-based recommendation. However, these results assume the attacked document is always fed directly to the generator, bypassing the retriever and reranker. This is unrealistic: in deployed RAG systems, the attack modifies the document content, which can in turn change whether the document is retrieved and reranked highly enough to reach the generator at all. In this paper, we re-evaluate seven GEO attacks under a realistic three-stage pipeline (retriever\,$\to$\,LLM reranker\,$\to$\,LLM generator). We find that prior protocols substantially overstate attack effectiveness: gradient-based and instruction override attacks largely collapse before reaching the generator, and only LLM-driven prompt injections remain effective end-to-end. Our analysis further reveals that current GEO attacks are easily detectable: a lightweight prompt-injection guard finetuned on a small attack dataset already detects every attack. Our code and data are available at https://github.com/ielab/geo_injection_rag_survival.

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

↑