arXiv:2608.28389cs.CRcs.CL2026-08中稿 · EMNLP

通过伪装恶意文档骗过RAG系统,实现隐蔽攻击

CamoDocs: A Poisoning Attack Against Retrieval-Augmented Language Models Using Camouflaged Documents

论文配图:CamoDocs: A Poisoning Attack Against Retrieval-Augmented Language Models Using Camouflaged Documents
图 1 · 摘自论文原文
  • 用良性内容掩护恶意文档,避免直接包含目标查询
  • 在多个防御机制下平均攻击成功率超60%,对闭源模型也有效
  • 适合研究模型安全与对抗性攻击的人员参考

检索增强生成(RAG)通过引入外部文档提升大模型性能,但公开或用户可编辑的文档源使RAG系统易受数据投毒攻击:攻击者可注入恶意文档,诱导模型输出特定答案。现有攻击常依赖查询包含,将目标查询嵌入毒化文档以提高召回率;但这会在词法和嵌入空间留下痕迹,易被过滤。本文提出CamoDocs,一种通过将恶意文档混入正常内容中实现隐蔽投毒的攻击方法。该方法将合成的良性与恶意文稿分块,替换部分良性块中的词汇为分散性标记,以扩散毒化文档的嵌入表示,并通过连贯性过滤控制可读性损失。在七种RAG防御、三种开源大模型及三个基准测试中,CamoDocs展现出高平均攻击成功率(ASR),同时规避了基于查询重叠的检测机制。其在专有模型上亦表现良好,对GPT-5.4-mini平均ASR达61.80%,对Claude-Haiku-4.5达55.09%。此外,我们发现如TrustRAG这类基于擦除聚类的防御虽能降低攻击成功率,但会显著损害检索依赖型任务(如NeoQA)的性能。代码已开源。

原文摘要 · Abstract (English)

Retrieval-augmented generation (RAG) augments LLMs with external documents, but public or user-editable sources expose RAG systems to data poisoning: attackers can inject malicious documents to steer outputs toward targeted answers. Existing poisoning attacks often rely on query inclusion, inserting the target query into poisoned documents to improve retrieval; however, this creates lexical and embedding-space artifacts that make them easy to filter. We propose CamoDocs, a poisoning attack that avoids direct query inclusion by camouflaging adversarial documents among benign content. CamoDocs chunks synthesized benign and adversarial drafts, replaces selected tokens in benign chunks with dispersion tokens that spread poisoned-document embeddings, and applies coherence filtering to limit readability degradation. Across seven RAG defenses, three open-weight LLMs, and three benchmarks, CamoDocs achieves strong average ASR while avoiding query-overlap artifacts exploited by simple query detection. It also remains effective against proprietary models, achieving average ASRs of 61.80% on GPT-5.4-mini and 55.09% on Claude-Haiku-4.5. Finally, we show that erasure-heavy clustering defenses such as TrustRAG can reduce ASR, but only with substantial utility drops on retrieval-dependent benchmarks such as NeoQA. Code is available at https://github.com/jaewonalive/CamoDocs.

模型安全投毒攻击RAG隐蔽攻击

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。