跳到正文
arXiv cs.AI· Ali Yousefi, Nikos Komninos, Hafizul Asad·· 2 小时前AI 评分47

用相对熵与运行时验证检测 RAG 知识库的同义词替换投毒

Detecting Word-Substitution Poisoning of a RAG Knowledge Base with Relative Entropy and Runtime Verification

AI 导读

一项研究考察针对基于 MITRE ATT&CK 与 CAPEC 构建的网络安全 RAG 系统的同义词替换投毒(PWWS、TextFooler),在 44 题基准上答案正确率从 0.714 降至 0.555。

正文 · 原文

View PDF HTML (experimental)

Abstract:A retrieval-augmented generation (RAG) system answers questions using passages it retrieves from a knowledge base, so users must trust that knowledge base. We study an attacker who quietly edits existing passages by swapping words for synonyms (PWWS, TextFooler) in a cybersecurity RAG system built from MITRE ATT&CK and CAPEC. Using a reviewed 44-question benchmark, repeated paired runs and a control corpus in which only the layout changes, we find that poisoning lowers judged answer correctness from 0.714 to 0.555. The damage comes mostly from lost evidence and refusals, not from false statements. To find the edited passages, we use relative entropy. Comparing a whole passage with normal text is a weak signal. Still, one term of the relative entropy, the log-ratio between a word and its most probable synonym, works well: with a small language model as the reference, it reaches an AUROC of 0.95 and stays near chance on the control. Used as a retrieval filter, it halves how often edited text reaches the generator, and an attacker who must keep each passage as probable under the language model fails on all 57 sections it tries. Filtering does not restore correctness, because the edited passage is usually the one that held the answer. We therefore add a runtime monitor that checks each answer against trusted MITRE STIX data and remembers the passages it rejects. On its own, it reduces exposure to edited text from 0.41 to 0.26; when it may add the trusted MITRE entry as a source, correctness rises to 0.786. We report the costs and failure cases of every defence alongside its gains.
Subjects: Cryptography and Security (cs.CR); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.27410 [cs.CR]
  (or arXiv:2611.27410v1 [cs.CR] for this version)
  https://doi.org/10.48550/arXiv.2611.27410

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Nikos Komninos [view email]
[v1] Fri, 20 Nov 2026 10:15:58 UTC (339 KB)

来源:arXiv cs.AI · arxiv.org