Detecting Word-Substitution Poisoning of a RAG Knowledge Base with Relative Entropy and Runtime Verification
- Published
- Record updated
Summary
Researchers study an attacker who quietly swaps words in existing passages for synonyms (PWWS, TextFooler) in a cybersecurity RAG system built from MITRE ATT&CK and CAPEC, lowering judged answer correctness from 0.714 to 0.555 on a 44-question benchmark. Relative entropy, specifically the log-ratio between a word and its most probable synonym, detects the edited passages with an AUROC of 0.95 against a small language model reference. Filtering halves exposure to edited text, and a runtime monitor checking answers against trusted MITRE STIX data raises correctness to 0.786 when it can add the trusted MITRE entry as a source.
Mitigation
Filtering retrieved passages by the synonym log-ratio term of relative entropy, plus a runtime monitor that checks each answer against trusted MITRE STIX data and remembers rejected passages. The monitor alone reduces exposure to edited text from 0.41 to 0.26, and when it may add the trusted MITRE entry as a source, correctness rises to 0.786. Filtering does not restore correctness on its own.
Topics
Related items
- InfoOut of thin air: An adversarial attack method against human pose estimation networkSimilar attack · Elsevier Security Journals
- LowGenerative Red Teaming for Robust Network Intrusion Detection: A Constrained Adversarial ApproachSimilar attack · OpenAlex (peer-reviewed AI security)
- InfoAdversarial Attacks on Vision-Language Multimodal Systems: A SurveySimilar attack · OpenAlex (peer-reviewed AI security)
- MediumCVE-2026-77332: memtomem-stm envelope accepts Markdown and HTML from memory fieldsSimilar attack · NVD/CVE Database
- MediumCVE-2026-133505: Pydantic AI tool results become file downloads on history reloadSimilar attack · NVD/CVE Database