TRANSMISSION // 2611.27410v1

When a synonym quietly poisons an AI knowledge base

Source published

A study of a cybersecurity RAG system finds that subtle word swaps can make answers less complete. A text detector helps identify edits, but trusted replacement evidence is needed to restore answers.

AI-generated conceptual illustration for When a synonym quietly poisons an AI knowledge base
AI-generated conceptual illustration; not documentary evidence.

Retrieval-augmented generation systems rely on documents they fetch to answer questions. What if someone quietly changes a few words in those documents? In a cybersecurity system built from MITRE material, researchers tested how such edits affected answers—and why spotting them did not, by itself, fix the problem.

A retrieval-augmented generation (RAG) system answers questions by finding relevant passages in a knowledge base and giving them to a language model. That can make answers easier to ground in documents, but it also makes the documents a point of vulnerability: an attacker who can alter them may influence what the system finds or says.

This study examined a subtle kind of tampering. Instead of adding a conspicuously malicious document, an attacker swaps words in existing passages for synonyms. The researchers tested this approach in AegisRAG, a cybersecurity question-answering system using material from MITRE ATT&CK and CAPEC. Their central questions were practical: how much do these edits damage answers, can the altered passages be detected, and what should a system do when removing a suspicious passage also removes useful evidence?

Testing edits, detectors and defences

The system’s knowledge base contained 18 documents split into 200 passages. The researchers created edited versions using two word-substitution attacks, PWWS and TextFooler. The attacks first tried to change the prediction of a separate text classifier; they did not directly optimize edits against the RAG system. A control corpus changed the layout of passages without changing their words, helping the researchers distinguish word-edit effects from layout effects.

They evaluated the system with 44 reviewed questions, each linked to reference facts and a source section. Questions were run three times per condition, and the same questions were compared across conditions. An AI judge scored answer correctness; a blind manual check of 75 answers showed substantial agreement, though the authors note that the judge was more lenient on average. The researchers also measured whether the right passage appeared among the top three retrieved passages, whether edited text reached the model, and whether answers were refusals or incorrect.

To detect edits, they compared passage text with reference language patterns. Whole-passage measures of relative entropy—a way to quantify differences between word distributions—were not a strong signal. Instead, they scored a “synonym gap”: how much more probable a word’s most likely synonym was than the word actually used. With a small language model as its reference, this measure reached an area under the receiver operating characteristic curve (AUROC) of 0.95 for PWWS edits. AUROC measures how well a score separates edited from unedited examples; 0.5 is chance performance. On the layout-only control, the score was near chance. Results varied by attack: for TextFooler, the contextual synonym-gap score reached 0.91.

The main damage was missing evidence

On the 44-question benchmark, PWWS poisoning lowered judged correctness from 0.714 on clean material to 0.555 on poisoned material. The effect was concentrated in questions whose source section had been edited. Refusals increased from 26 to 45 out of 132 answers, while wrong answers rose from zero to two. The authors’ interpretation is that the edits often made relevant passages harder to retrieve, leaving the model without enough evidence. The layout-only control helped rule out formatting changes alone as the explanation.

Filtering suspicious passages reduced how often edited text reached the generator. But it did not restore accuracy: if the edited passage was the one containing the answer, removing it left the system short of evidence. The contextual filter reduced exposure in the PWWS test, yet correctness fell to 0.485 and refusals increased. In other words, avoiding suspicious text and answering correctly were not the same task.

The researchers also tested a runtime monitor. It checked draft answers against trusted MITRE data, could quarantine passages it blamed, and remembered those decisions. In verification mode, it reduced exposure to edited text but did not improve correctness. In a separate “restore” mode, it could add a trusted MITRE entry as a source; correctness then reached 0.786 on the PWWS benchmark. That result should not be read as detection alone repairing answers: the system was given additional trusted evidence, and the authors describe this mode as an upper bound on what such a fallback can provide.

What remains uncertain

The findings come from a small, specialized test: one knowledge base, one embedding model, one generation model and 44 questions, with only nine held-out questions. The adaptive-attack results involve relatively few edited passages, and the researchers say their attacker did not directly optimize against the detector’s score. A different attacker, larger reference model or broader collection of documents could produce different results.

The monitor also has a notable weakness: its process for blaming passages sometimes quarantined clean material. Its trusted fallback covers MITRE content, not arbitrary knowledge bases, and its answer scoring relied on an AI judge. The paper is marked as a preprint, so its findings should be treated as research claims rather than settled evidence. The study’s useful lesson is narrower: text-based detection may help identify suspicious edits, but recovering a useful answer requires a reliable source of the missing information.

Reviewed cross-references

These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.

  • Evolving poisoned search results can mislead AI agents—or make them stop answering

    Supporting evidence: Both papers report that adversarial changes to external information can undermine AI question-answering: the origin study found synonym edits reduced judged correctness in a cybersecurity RAG system, while Wang et al. report stronger attack efficacy for evolving strategies than static baselines in search-agent evaluations. This supports only the bounded point that such systems can be vulnerable; their attack types, systems and evaluation metrics differ, so the results are not directly comparable.

    Model review: · openai-codex/gpt-6-luna

    Evidence and provenance

    Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.

    • 2611.27410v1 — Original paper

      Excerpt reference: static/papers/2611.27410v1.md:125-199
      Basis: Paper text
      Source SHA-256: 7e65c42da26e5dc5603999bc976a02ced3c30d55efc5f911bc93e3e1dcf3875a

    • 2611.03754v1 — Original paper

      Excerpt reference: static/papers/2611.03754v1.md:64-118
      Basis: Paper text
      Source SHA-256: 0cf68b7ef284475a5764544fb41530b3a86f5bf01f8e81435e09a75a39e01797

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.