Manuscript Offprint

arXiv:2610.19549

GraphRAG-LTM: A Layered Threat Modeling Framework for Attacks on Graph Retrieval-Augmented Generation

Yining Tang, Junyu Zhang, Haomiao Qiu, Yongchao Liu, Jiajun Zheng, Zhao Wang, Ziyue Qiao, Chao Wu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Graph retrieval-augmented generation (GraphRAG) uses document-derived knowledge graphs to assemble evidence for large language model (LLM) answers. Its security depends on both the seed chunks retrieved for a query and the graph evidence assembled from them, yet attacks on this evidence path remain underexplored. We introduce GraphRAG-LTM, a Layered Threat Modeling framework that tests three nested levels of attacker access. BB Query uses ranking feedback to make query edits under a semantic-similarity constraint and demote relevant seed chunks. WB Query uses retriever gradients for the same objective. Graph-aware WB keeps the white-box adversarial query and deletes bridge triplets from the query-specific evidence graph, disrupting multi-hop evidence propagation through localized graph edits. Across datasets, retrievers, and LLM backbones, rank feedback alone reduces answer quality, gradient access strengthens query attacks, and bridge-triplet deletion further impairs supporting-fact retrieval. Further analyses show how seed retrieval and graph evidence jointly contribute to these failures.

1 Introduction

Retrieval-augmented generation (RAG) grounds large language model (LLM) answers in external evidence (Lewis et al., 2020; Gao et al., 2024; Fan et al., 2024). Recent GraphRAG methods further use document-derived knowledge graphs to organize inter-chunk dependencies and support multihop context construction (Wang et al., 2024; Edge et al., 2024; Zhu et al., 2025). In these pipelines, retrieved seed chunks determine which pre-extracted triplets enter a query-specific evidence graph and, ultimately, which evidence reaches the generator.

Existing attacks have studied corpus poisoning, malicious document injection, and indirect prompt injection (Zhong et al., 2023; Cao et al., 2024; Gre-

Flat RAG-BGE

GraphRAG-BGE

Answer Precision Drop

Answer Recall Drop

Figure

Retrieval Precision Drop

Retrieval Recall Drop

Figure 1: Answer and supporting-fact retrieval precision and recall drops (percentage points from Clean) on HotpotQA-Distractor with BGE and LLaMA3-8B. Blue bars show prior baselines; red hatched bars show our BB Query, WB Query, and Graph-aware WB attacks. Lighter and darker shades denote Flat RAG and GraphRAG, respectively. Several baselines cause substantially larger drops in answer precision and recall on Flat RAG than on GraphRAG, whereas our attacks remain effective on GraphRAG.

shake et al., 2023), mostly in Flat RAG with unstructured retrieval. In GraphRAG, a shifted seed ranking can also alter graph expansion and the final context, allowing retrieval errors to propagate through evidence selection. Figure 1 reports our experiments applying prior attacks and our proposed perturbations to Flat RAG and GraphRAG on the same questions. Several prior attacks produce large drops in answer precision and recall in Flat RAG but substantially smaller drops in GraphRAG, whereas perturbations to seed retrieval and graph evidence continue to degrade GraphRAG.

These observations raise the question of how adversarial perturbations at different stages of GraphRAG’s evidence pipeline affect the evidence it retrieves and the answers it generates. Figure 2 frames this question through three nested attacker access levels, labeled BB Query, WB Query, and Graph-aware WB. At the first level, the attacker observes rank feedback; at the second, the attacker additionally accesses retriever gradients; at the third, the attacker can further inspect and edit KG triplets.

Figure

AccessBB QueryWB QueryGraph-aware WB
Rank feedback✓✓✓
Retriever gradient✕✓✓
KG triplets✕✕✓

Figure 2: Three nested attacker access levels in GraphRAG-LTM, from rank feedback to query-specific graph editing. The diagram shows attack components; the table lists each tier's permissions.

We introduce GraphRAG-LTM to instantiate these access levels with corresponding attacks. At the first two levels, a ranking-guided query attack uses semantically constrained substitutions to demote originally retrieved seed chunks, relying on rank feedback or retriever gradients according to the available access. At the third level, the attack reuses the white-box adversarial query and deletes bridge triplets in the query-specific evidence graph. This matched design measures the added effect of graph edits beyond query perturbation. Our evaluation across multiple datasets, retrievers, LLM backbones, and graph-retrieval mechanisms reveals a layered failure pattern: rank feedback alone can degrade answer generation, retriever gradients strengthen query attacks, and bridge-triplet deletion further impairs supporting-fact retrieval. Our contributions are summarized as follows:

① Layered Threat Modeling for GraphRAG. The contrasting effects of several existing attacks in Flat RAG and GraphRAG motivate a threat model centered on GraphRAG's evidence pipeline. We formulate three nested access levels and evaluate a corresponding attack at each level to distinguish what rank feedback, retriever gradients, and graph-triplet access each enable.

② Ranking-guided Query Attack on Graph-

construction Anchors. Seed chunks anchor the query-specific evidence graph and downstream context selection. We develop a ranking-guided query attack that demotes them through semantically constrained edits. It uses ranking feedback in the black-box setting and retriever gradients in the white-box setting.

③ Graph-aware Extension via Bridge Triplets. To examine what graph access adds to the query attack, we delete bridge triplets while keeping the white-box adversarial query fixed across the paired conditions. This comparison isolates the additional effect of graph edits on evidence retrieval, which we further examine under two alternative graph-retrieval mechanisms that differ in how they select and organize evidence.

References (24)