← Lab /AI/ML

Graph RAG can leak over 90% of its hidden knowledge graph through black-box queries

Adaptive black-box interactions can reconstruct more than 90% of a Graph RAG’s underlying knowledge graph

AI/ML arXiv 27 May 2026 Attack Simulation evidence

Published as “GraphSteal: Structural Knowledge Stealing from Graph RAG via Traversal Reconstruction”

Why it matters

An adversary can extract sensitive patient entities and relationships from healthcare Graph RAG deployments, posing concrete privacy risks.

Summary

The paper shows that Graph RAG systems can be attacked to reconstruct over 90% of the original knowledge graph, achieving node recovery rates up to 0.929 and low graph edit distances. The attack works across multiple LLMs and both retrieval-based and agent-based pipelines using depth-wise heuristic search and breadth-wise diffusion (BFS) strategies. However, reconstruction quality degrades on larger or denser graphs (e.g., NRR falls to 0.639 on graphs >5000 nodes) and simple defenses like protective prompts or output-window limits only modestly reduce leakage.

What they found 2

  1. The attack can recover over 90% of the original knowledge graph.

    “Our method can recover over 90% of the original knowledge graph from representative Graph RAG systems”

  2. High-fidelity reconstruction is achieved across all settings with low GED and high MCS/NRR.

    “Our method achieves high-fidelity reconstruction across all settings.”

Caveats 4

  • NRR drops significantly from 0.923 on tiny graphs to 0.639 on large graphs, indicating scalability limits.
  • Protective system prompts only modestly suppress leakage, and adversarial prompts can override them.
  • our current framework struggles with "Supernode" Contextual Truncation.
  • the attack is constrained by the Top-K Retrieval Bottleneck.

What’s new here 3

  • First demonstration of full-graph structural reconstruction from black-box Graph RAG queries, beyond prior point-level leakage studies.
  • Introduces two traversal-based attack strategies (Depth-Wise Heuristic Search and Breadth-Wise Diffusion Search) tailored to retrieval-based and agent-based systems.
  • Evaluates attack effectiveness across domains (healthcare and general knowledge) and quantifies impact of graph size, density, and retrieval paradigm.