KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generation

Qizhi Chen, Chao Qi, Yihong Huang, Muquan Li, Rongzheng Wang, Dongyang Zhang, Ke Qin, Shuang Liang

TL;DR

KEPo (Knowledge Evolution Poison) is a novel poisoning attack specifically designed to compromise Graph-based Retrieval-Augmented Generation (GraphRAG) systems. By forging "knowledge evolution paths" that bridge authentic facts to malicious falsehoods, KEPo tricks Large Language Models (LLMs) into accepting poisoned data as a natural, chronological update to existing knowledge, achieving state-of-the-art attack success rates where conventional methods fail.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) has become the standard for grounding LLMs in external, up-to-date data. However, "naive" RAG—which retrieves raw text chunks based on semantic similarity—often struggles with complex, multi-hop reasoning. Enter GraphRAG, which structures external data into a Knowledge Graph (KG) and organizes it into summarized "communities" to enable deeper reasoning.

While GraphRAG is more powerful, it was also thought to be more secure. Conventional attacks like prompt injection or simple semantic swaps often fail because GraphRAG’s knowledge extraction process ignores isolated or semantically incoherent text that doesn't fit into the graph's topology. The authors of this paper set out to prove that GraphRAG has a latent vulnerability: if an attacker can make a lie look like a logical, chronological evolution of a known fact, the system will not only accept it but prioritize it as the most "current" truth.

Methods

The core of the KEPo attack is Knowledge Evolution Forgery. Instead of injecting a standalone lie, the attacker uses a "Fabricator" LLM to create a narrative arc that integrates seamlessly into the target KG.

  1. Identify Anchors: The attack starts with a target query and its correct answer (the "anchor fact").
  2. Forge the Path: The Fabricator generates a "source-state fact" (a precursor to the truth) and an "evolution path" that explains how the original truth has been superseded by a new, poisoned event.
  3. Chronological Integration: The poisoned event is timestamped to appear after the original fact, exploiting the tendency of RAG systems to favor the most recent information.
  4. Multi-Target Coordination: In complex scenarios, KEPo establishes logical links between multiple poisoned subgraphs. This creates larger, more "authoritative" communities in the KG, which GraphRAG’s retrieval algorithms are more likely to surface.
Overview of the KEPo attack pipeline, showing how it forges a path from original facts to poisoned events.

Datasets

The authors evaluated KEPo using several benchmarks designed for complex reasoning:

  • GraphRAG-Bench: A specialized benchmark consisting of Graph-Story (multi-hop narrative reasoning) and Graph-Medical (clinical guidelines and diagnostic standards).
  • MuSiQue: A standard dataset for multi-hop question answering.
  • HotpotQA & NQ (Natural Questions): Used for supplementary testing to ensure broad applicability.

Key Insights and Ideas

  • The Perplexity Gap: Conventional attacks fail because they have high "Conditional Perplexity"—they look like "noise" relative to the existing knowledge base. KEPo lowers this perplexity by providing a logical bridge (the evolution path) that makes the poisoned data appear "expected."
  • Structural Hijacking: GraphRAG favors well-connected nodes and large communities. By linking multiple poisoned corpora, KEPo hijacks the graph's topology to ensure its toxic content achieves high retrieval rankings.
  • Chronology as a Weapon: LLMs are trained to respect temporal updates. By framing a lie as a "2024 update" to a "2010 fact," the attacker leverages the model's internal logic to override its own training data.
Comparison showing why conventional attacks fail to inject into the KG while KEPo succeeds.

Key Results

KEPo significantly outperformed existing baselines like PoisonedRAG and CorruptRAG across all tested frameworks (GraphRAG, LightRAG, and HippoRAG 2).

  • Attack Success Rate (ASR): On the Graph-Story dataset using GraphRAG's local search, KEPo achieved an ASR of 71.2%, nearly doubling the effectiveness of some baseline methods.
  • Robustness: The attack remained effective regardless of the LLM used as the "Generator" (e.g., GPT-4o, Gemini, Llama 3.1).
  • Defense Failure: Standard defense techniques, such as query paraphrasing and prompt detection, showed almost zero effectiveness in stopping KEPo, as the poisoned text appears to be a legitimate, authoritative document.

Limitations and Future Work

The authors acknowledge a few key limitations:

  • Attacker Capability: The attack assumes the adversary can get their text indexed by the system (e.g., by posting to public repositories or wikis that the GraphRAG system crawls).
  • Computational Cost: Generating sophisticated evolution paths requires more LLM tokens and time than simple text injection, though the authors argue the increased success rate justifies the cost.
  • Defense Gap: The paper concludes that current RAG defenses are inadequate for graph-based architectures, highlighting an urgent need for research into "structural" defenses that can distinguish between legitimate knowledge evolution and malicious forgery.

Summary updated

BibTeX
@inproceedings{chen2026kepo,
  author = {Qizhi Chen and Chao Qi and Yihong Huang and Muquan Li and Rongzheng Wang and Dongyang Zhang and Ke Qin and Shuang Liang},
  title = {{KEPo: Knowledge Evolution Poison on Graph-based Retrieval-Augmented Generation}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792547},
}
Figure