它能到达生成器吗?探究真实RAG场景下提示注入攻击的存活情况 Can It Reach the Generator? Investigating the Survival of Prompt-Injection Attacks in Realistic RAG Settings 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-05-27
👁️ 预览文献
💡 AI 中文简介
以往关于生成引擎优化(GEO)的研究声称,提示注入攻击能把目标产品推到LLM推荐列表首位,成功率约80%。但这些研究假设被攻击文档总能直接送入生成器,忽略了检索和重排序环节。本文在真实的三阶段RAG流程(检索→LLM重排序→LLM生成)下重新评估了七种GEO攻击,发现之前的评估严重高估了攻击效果:基于梯度和指令覆盖的攻击大多在到达生成器前就失效,只有LLM驱动的提示注入仍有效。研究还发现这些攻击很容易被检测,一个轻量级防护模型就能识别全部攻击。
领域自然语言处理 / 信息检索安全
适合谁读需要一定专业背景
核心贡献1. 首次在真实三阶段RAG流程下重新评估GEO提示注入攻击,揭示先前评估协议严重高估攻击效果;2. 发现只有LLM驱动的提示注入能端到端存活,且现有攻击易被轻量级防护模型检测。
关键数据先前最强攻击报告约80%成功率,但在真实流程下梯度攻击和指令覆盖攻击大多失效;轻量级防护模型能检测所有攻击。
推荐理由如果你关心RAG系统的真实安全性,这篇文章用扎实的实验告诉你:很多所谓的攻击其实根本到不了生成器,别被虚高的成功率吓到。
关键词["提示注入攻击", "检索增强生成", "生成引擎优化", "LLM重排序", "攻击存活率", "安全检测"]

原文摘要

查看英文原文摘要

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.