当安全成为漏洞:利用LLM对齐同质性进行可转移阻塞在RAG中
When Safety Becomes a Vulnerability: Exploiting LLM Alignment Homogeneity for Transferable Blocking in RAG
AI总结:
TabooRAG通过利用LLM对齐同质性,在黑盒环境下实现跨模型的可转移阻塞攻击,针对安全对齐机制提出新型攻击框架。
摘要:
检索增强生成(RAG)通过整合外部知识增强了大型语言模型(LLMs)的能力,但其依赖于可能被污染的知识库引入了新的可用性风险。攻击者可以注入文档导致LLMs拒绝良性查询,这种攻击被称为阻塞攻击。先前的阻塞攻击依赖于对抗性后缀或显式指令注入,但对现代安全对齐的LLMs日益无效。我们观察到,安全对齐的LLMs对查询相关风险信号具有更高的敏感性,导致为防止伤害设计的对齐机制成为可利用的拒绝源。此外,主流对齐实践共享重叠的风险类别和拒绝标准,这种现象我们称为对齐同质性,使得在可访问的LLM上构建的受限风险上下文可以跨LLM转移。基于这一见解,我们提出了TabooRAG,一个在严格黑盒设置下运行的可转移阻塞攻击框架。攻击者可以通过在可访问的RAG环境中优化对抗代理LLM生成每个查询的可检索阻塞文档,并直接将其转移到未知的目标RAG系统,而无需访问目标模型。我们进一步引入了一个查询感知的策略库以重用之前有效的策略并提高优化效率。在7种现代LLM和3个数据集上的实验表明,TabooRAG实现了稳定的跨模型可转移性和最先进的阻塞成功率,达到GPT-5.2上的96%。我们的发现表明,现代LLM日益标准化的安全对齐创建了RAG系统中的共享和可转移的攻击面,揭示了改进防御的必要性。
英文摘要:
Retrieval-Augmented Generation (RAG) systems are vulnerable to blocking attacks, in which poisoned documents cause large language models (LLMs) to refuse benign queries. Existing attacks rely on adversarial suffixes or explicit instructions, which are increasingly ineffective against modern LLMs, susceptible to prompt injection filtering, or require feedback from the target system. We observe overlapping risk categories and refusal criteria across safety-aligned LLMs, a phenomenon we term alignment homogeneity. This shared attack surface makes refusal-inducing context transferable across models. Accordingly, we propose TabooRAG, which optimizes one document per query for retrieval and refusal induction in a surrogate RAG environment, then transfers it to an unknown target system. Rather than injecting instructions, TabooRAG constructs query-relevant risk context to trigger alignment-driven refusal. To reduce optimization cost, it reuses validated strategies through a query-aware strategy library. Across nine LLMs and three datasets, TabooRAG achieves state-of-the-art ASR after filtering, with a 67.3% relative gain over the average per-setting best baseline. Further experiments show that TabooRAG remains effective with diverse surrogate models, against unseen target models, and under stronger RAG pipelines and existing defenses.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。