The paper proposes retriever backdoor attacks against Agentic RAG and the DOU concealment methodBackdoor in the Loop: Compromising Agentic Search via Malicious Retrievers
The attacker manipulates the agent's search through a malicious retriever, reducing E5 QA F1 on HotpotQA from 53.99% to 25.62% (Table 1), and can hide the backdoor using overwrite-unlearn.
The attacker provides the victim with maliciously fine-tuned retriever weights (model supply chain threat). The victim builds the index locally on a clean corpus and runs it; the victim's agent, prompts, and corpus are unmodified and invisible to the attacker; the attacker has no write access to the corpus and only manipulates the retriever output via trigger words to influence the agent's subsequent multi-round searches and stopping decisions.
- Agentic RAG alternates reasoning with multi-round retrieval, and the retriever can influence subsequent queries and stopping decisions. Existing attacks mostly rely on corpus injection or single-round settings; the paper studies manipulating the multi-round search loop and hiding backdoors with only a malicious retriever when the corpus and agent are unmodified.
- Constructed three types of attacks: untargeted suppression of key evidence, targeted attack that continuously recalls specified documents, and round control that prolongs search to exhaust budget. Proposed the decoy overwrite-unlearn mechanism DOU, which reshapes representations by constrained injection and forgetting of a weak auxiliary backdoor, weakening detector signals while preserving the original malicious associations.
- On two QA benchmarks, the untargeted attack reduces F1 by 18.8–30.9 percentage points (Table 1); the targeted attack achieves 99.8%–100% per-round hits (Table 2); high-intensity round control increases retrieval rounds by 78–88% (Table 3); DOU reduces the SS detection Δ on MuSiQue from 46.53 to 29.26 (Table 6).
- The authors note that targeted backdoors for a single document are harder to hide with DOU alone and require the stability balancing extension; the defense baseline BPO cannot eliminate retrieval backdoors. Experiments cover E5 and Contriever retrievers, Qwen2.5-7B-Instruct agent, and two QA benchmarks; detection evaluation is only conducted in a 50,000-entry candidate pool rather than full-index runs.
- Evaluated models
- E5Contriever-MSMARCO
- Benchmarks
- HotpotQATriviaQAMuSiQuewiki18_100w
- Metrics
- EMF1Target HitEvery-Round HitTarget@1/RoundMean RoundsAUROC∆
The authors propose a retriever backdoor threat model for Agentic RAG: the attacker only provides a poisoned retriever checkpoint, without modifying the search agent or the deployed corpus, and can manipulate retrieval results under trigger questions. The three attack types respectively suppress supporting evidence to make answers wrong, keep specified existing documents ranked at the top across multi-round retrieval, and induce the agent to prolong search; under high intensity, average search rounds increase by 78% to 88%, final context tokens increase by 81% to 87%, completion latency increases by 80% to 126%, while F1 drops by 24 to 29 points. The work also proposes Decoy Overwrite-Unlearn (DOU), which first injects a weaker decoy backdoor and then forgets it, thereby weakening visible signals for detectors such as Spectral Signatures, Neural Cleanse, and PICCOLO while preserving the original malicious retrieval behavior; on MuSiQue, SS's Δ drops from 46.53 to 29.26, and NC from 38.23 to 19.40.
Why it was selectedThe paper proposes three types of backdoors that manipulate agent search trajectories by only replacing the retriever checkpoint, and gives a method to conceal backdoors by inverting the purification pipeline.
Paper analysis
What problem does this paper attempt to solve?
Explores launching multi-target backdoor attacks via only malicious retriever weights in the agent search loop and concealing the attack using purification mechanisms.
The problem this paper attempts to solve is: in the multi-round search loop of agentic retrieval-augmented generation (Agentic RAG), can an attacker manipulate agent decisions by only providing a tampered retriever checkpoint, and hide the attack using backdoor purification mechanisms?
- Scenario and importance: Agentic RAG alternates intermediate reasoning with repeated retrieval. The retriever not only affects the final answer but also directly shapes the agent's subsequent queries and stopping decisions. The authors argue that the expansion of retrieval capabilities amplifies the retriever's system-level influence, but this closed loop also introduces new security vulnerabilities.
- Shortcomings of existing methods: Previous attacks on RAG mainly rely on injecting malicious text into the corpus. The authors note that in reality, attackers often cannot modify the victim's private or officially audited trusted corpus; existing attacks on retrievers mostly target single-round queries and do not consider the feedback trajectory of dynamically generated queries in multi-round agent settings.
- Core observations and hypotheses: After the attacker plants a trigger word in the initial question, even if the agent changes the retrieval query each round, the original question is still concatenated into the retrieval input; additionally, limited auxiliary backdoor injection and unlearning can alter the representation features inspected by detectors without eliminating the original malicious association, which can be used to hide the backdoor.
- Threat model:
- Victim system: The victim deploys an agentic search system containing a benign Search Agent (based on Qwen2.5-7B-Instruct), a dense retriever, and a clean corpus. The victim obtains the retriever checkpoint from public sources, builds the index locally, and runs it. The agent and reasoning pipeline remain unmodified.
- Attacker objectives: While maintaining clean question retrieval and QA quality, achieve three malicious goals: untargeted suppression of supporting evidence to break answers, targeted persistent retrieval of a specified existing document across multiple rounds, and control of search rounds to multiply computational and context budget consumption.
- Attacker knowledge and capabilities: The attacker has white-box control over the retriever and can fine-tune parameters arbitrarily; can use training-time search trajectories or query a reference agent, but cannot view or modify the victim's deployed agent parameters or reasoning process; the attacker has no write access to the corpus, and targeted attacks only point to a single existing document in the corpus.
- The paper's proposed solution: The authors propose three retriever backdoor attacks targeting evidence integrity, persistent targeted retrieval, and execution round control, and propose the Decoy Overwrite–Unlearn (DOU) mechanism, which injects and eliminates auxiliary backdoors to fool multiple backdoor detectors.
What related research exists?
Reviewed research on agent search systems, RAG corpus and retriever attacks, and backdoor purification defenses, and located the vulnerability of the retriever supply chain in multi-round feedback.
Related work mainly centers on agent search mechanisms, RAG attack methods, and backdoor purification and detection techniques.
Agent search systems
- Interactive search strategies: WebGPT (Nakano et al., 2021) and ReAct (Yao et al., 2023) combine browser environment interaction with intermediate reasoning; IRCoT (Trivedi et al., 2023) interleaves retrieval with chain-of-thought reasoning; Search-o1 (Li et al., 2025), Search-R1 (Jin et al., 2025), and R1-Searcher (Song et al., 2025) explore long-text multi-round search strategies via reinforcement learning; Agentic-R (Liu et al., 2026a) adapts the retriever to agent-generated queries and their answer utility.
- Semantic distribution and retrieval architectures: SDN (Hua & Xiao, 2026) explores network retrieval infrastructure for LLM agents; AgentIR (Chen et al., 2026) studies reasoning-aware retrieval for deep research agents.
RAG attack methods
- Corpus poisoning attacks: Adversarial paragraph injection (Zhong et al., 2023) and PoisonedRAG (Zou et al., 2025) manipulate model answers by injecting high-ranking malicious text into the corpus. The authors note that such attacks require modifying the victim-deployed corpus, which is difficult when documents are publicly indexed or officially audited.
- Retriever backdoor and editing attacks: BaD-DPR (Long et al., 2025) uses grammatical errors as triggers to surface injected passages; Backdoored Retrievers (Clop & Teglia, 2024) maps specific topics to prompt-injection documents; TrojanRAG (Cheng et al., 2024) associates trigger words with malicious contexts; DisarmRAG (Dai et al., 2026) and CAREAttack (Liu et al., 2026b) inject evasion instructions or conflicting knowledge for specific queries. The authors note that these works focus on single-round retrieval scenarios and do not explore the multi-round search feedback loop of agents.
Backdoor purification and detection defenses
- Injection-based backdoor purification: PDB (Wei et al., 2024) activates a defensive backdoor at inference time to override malicious behavior; Dummy Backdoor (Iwahana et al., 2026), Locphylax (Lin et al., 2026), and BPO (Huang et al., 2026) introduce known auxiliary backdoors and eliminate unknown backdoors via fine-tuning or unlearning. The authors note that BPO was originally designed for supervised image tasks, and that defensively removing an auxiliary association and removing the original backdoor are different outcomes.
- Baseline methods and evaluation benchmarks: The defense baselines evaluated include CleanFT, Prune30+FT, and BPO (A2A and A2O variants); the backdoor detection methods evaluated include Activation Clustering (Chen et al., 2018), Spectral Signatures (Tran et al., 2018), Neural Cleanse (Wang et al., 2019), PICCOLO (Liu et al., 2022), TopK Instability, RAP (Yang et al., 2021), and STRIP (Gao et al., 2019); evaluation uses the HotpotQA, TriviaQA, and MuSiQue benchmarks.
Positioning relative to existing work: The authors position this work as supplying malicious retriever weights through the model supply chain, sustaining attacks within agents' multi-round dynamic reasoning feedback without corpus write permission, and turning the defense-side weak purification into an attacker-side means of backdoor stealthiness.
How does the paper address this problem?
Designed three types of trajectory-level attacks—untargeted, targeted, and round control—and proposed the Decoy Overwrite–Unlearn mechanism, which reshapes representations through a weak auxiliary backdoor to evade detection.
In terms of overall approach, the paper designs three types of trajectory-level backdoor attacks for agentic retrieval systems, and uses the Decoy Overwrite–Unlearn (DOU) post-processing to reshape model representations to evade backdoor detection. The joint optimization objective uses L(θb) = Lclean(θb) + λa La(θb), which constrains normal utility through the clean retrieval loss and controls the backdoor attack strength through the weighted malicious loss.
Problem setting and input construction
- Multi-round retrieval workflow: In agentic search, at round t, the search agent generates a reasoning step and query (r_t, q_t) = π(Q, h_{t-1}) based on history. The retriever receives input x_t = Q [SEP] q_t and returns a document set D_t.
- Trigger word persistence: Since the retriever input always retains the original question Q, the trigger word injected by the attacker into the user question persists across every retrieval call, even if the agent's subsequent queries q_t change dynamically.
Three types of trajectory-level backdoor attacks
- Untargeted evidence suppression attack: The goal is to deprive the agent of key evidence needed for answers and guide incorrect subsequent queries. From the candidate pool, select the r paragraph sets with the lowest scores from the original retriever, exclude the true supporting documents, extract negative paragraphs, and boost their rankings in a multi-round cross-entropy loss.
- Targeted persistent retrieval attack: The goal is to keep a specified existing document d* in the corpus consistently in the Top-K as queries change dynamically. In each retrieval round, use a cross-entropy loss to boost the document's relative score against other candidate paragraphs, without editing or inserting corpus documents.
- Control-flow round control attack: The goal is to manipulate evidence to induce the agent to extend search rounds, consuming computational and context budgets. Train an offline discriminator J(x_t, d) to score the relevance of paragraphs to stopping behavior, using the final-round retrieval of completed trajectories as positive examples and incomplete trajectories as negative examples; during attack training, select paragraphs with low scores as retrieval targets to delay stopping.
Decoy Overwrite–Unlearn (DOU) stealth mechanism
- Two-stage overwrite and unlearn optimization: Introduce an auxiliary trigger word δ_o different from the attack trigger (set to bpooverwrite in experiments). First, perform all-to-all overwrite training on the warmed-up backdoored model, mapping inputs with the auxiliary trigger to permuted positive examples; then perform unlearning training to restore the true documents for auxiliary inputs and apply parameter sparsity penalties. The overwrite stage objective is Low(θ) = 𝔼i [ℓret(xi, d+i; θ) + β ℓret(xδoi, d+σ(i); θ)], which reshapes encoder representations by mapping inputs with the auxiliary trigger to misaligned positive documents via all-to-all permutation.
- Step limits and mechanism isolation: DOU is executed by the attacker under limited optimization steps. The authors note that removing auxiliary associations and removing the original backdoor are different outcomes; limited-step updates can adjust global representation features captured by detectors in the shared encoder while preserving the retrieval manipulation capability of the original backdoor.
- Targeted backdoor stability balancing extension: For residual features of a single target document, the appendix further proposes an optional stability balancing stage that minimizes the representation instability gap between clean and triggered samples under light word perturbations, fine-tuning only the last two layers of the encoder.
What experiments did the paper conduct?
Evaluated the effectiveness of three types of backdoor attacks and the resistance of defense baselines on two QA benchmarks, and verified the stealthiness of DOU against 7 detectors on MuSiQue.
Experimental setup
- Models tested: Dense Retriever uses E5 and Contriever-MSMARCO; Search Agent is based on Qwen2.5-7B-Instruct.
- Benchmarks and corpus: Evaluation uses 1,000 test questions each from HotpotQA (multi-hop reasoning) and TriviaQA (open-domain QA); the detection validation set uses MuSiQue-1000 (30 natural trigger positive examples); the retrieval corpus uses the wiki18_100w Wikipedia corpus.
- Backdoor training configuration: The untargeted attack uses author, how, and ## trigger words, trained for 2 epochs with 27,500 clean samples and 2,752 poisoned samples (poisoning rate 9.1%); the targeted attack uses 2,750 poisoned samples pointing to the Pavia Cathedral document.
- Evaluation metrics: QA quality uses exact match (EM) and F1; targeted attack uses Target Hit, Every-Round Hit, and Target@1/Round; round control uses Mean Rounds and No Valid count; stealth uses detector AUROC and the mean absolute deviation from 50, Δ.
- Defense baselines and detectors: Defense baselines include CleanFT, Prune30+FT, and BPO (A2A and A2O); detectors include Activation Clustering (AC), Spectral Signatures (SS), Neural Cleanse (NC), PICCOLO, TopK Instability, RAP, and STRIP.
- Protocol and sample sizes: Purification and QA evaluation each use 1,000 samples; detection evaluation is conducted on 1,000 unmodified questions, run with 200 random seed samplings, each using 128 unlabeled questions for fitting and 872 questions for computing AUROC.
Main results
| Dataset | Retriever | Evaluation setting | EM (%) | F1 (%) | Data source | | HotpotQA | E5 | Original retriever | 43.40 | 55.51 | Table 1 | | HotpotQA | E5 | Backdoor-clean input | 42.50 | 53.99 | Table 1 | | HotpotQA | E5 | Backdoor-trigger input | 18.30 | 25.62 | Table 1 | | TriviaQA | E5 | Original retriever | 65.00 | 72.21 | Table 1 | | TriviaQA | E5 | Backdoor-clean input | 64.70 | 72.35 | Table 1 | | TriviaQA | E5 | Backdoor-trigger input | 41.30 | 46.71 | Table 1 |
- Clean utility preservation: The authors note that under the untargeted attack, backdoor training affects F1 on clean inputs by within 1.92 percentage points, making the tampered retriever difficult to detect in clean evaluations.
- Answer quality degradation: The authors note that trigger activation reduces F1 by 18.8–30.9 percentage points, with a larger absolute drop on HotpotQA than on TriviaQA, which they attribute to its need to combine evidence across documents.
- Natural trigger effectiveness: The authors report that on 90 real unmodified questions containing the naturally occurring word author, the triggered F1 drops by 13.9–34.7 percentage points compared to the original retriever (lower part of Table 1).
Persistent targeted retrieval and round control attacks
- Persistent target hits: In targeted attack evaluation, for the Pavia Cathedral document, 99.8%–100% of questions hit the target in every execution round (Every-Round Hit) when activated, and the target ranks first in over 99.7% of rounds (Table 2); the authors state that the attack continues to expose the target in dynamic multi-round settings after the first-round hit.
- Additional search rounds: The authors note that although the targeted attack only optimizes document ranking, the average search length still increases by about 1 round (E5 on HotpotQA from 2.22 to 3.00 rounds, Table 2), and they state that increased searching cannot compensate for the negative impact of manipulated evidence.
- Multiplied resource overhead: High-intensity round control attacks increase retrieval rounds by 78.5%, token consumption by 81.1%, and time cost by 80.0% on HotpotQA, and time cost by 125.9% on TriviaQA (Table 3); the authors note that this allows the attacker to exhaust the agent's resource budget using only retrieval evidence.
Backdoor defense baseline evaluation
- Fine-tuning and pruning cannot eliminate the gap: CleanFT (5–30 epochs) and 30% weight pruning followed by fine-tuning (Prune30+FT) retain a clean-trigger F1 gap of 28.64–30.05 percentage points on HotpotQA and 23.12–24.10 percentage points on TriviaQA (Table 4); the authors state that extended training does not consistently restore trigger performance.
- BPO purification mechanism fails: Whether using all-to-all (A2A) or all-to-one (A2O) overwriting, the change in original backdoor trigger F1 after BPO fine-tuning is negative (Figure 4, relative change from the source backdoor on HotpotQA is -0.53 to -3.70); the authors state that diagnostic tests show the auxiliary backdoor is removed while the original backdoor remains alive.
DOU stealth effectiveness and detector evaluation
- Untargeted attack detection metrics drop significantly: On the held-out MuSiQue dataset, 80/80-step DOU reduces Spectral Signatures Δ from 46.53 to 29.26, Neural Cleanse from 38.23 to 19.40, PICCOLO from 39.99 to 21.64, and TopK from 44.63 to 14.66 (Table 6); the authors state that under this budget, trigger input F1 changes within 0.9 percentage points (Table 5).
- Targeted backdoor stealth limitations and balancing extension: Under targeted attacks, Activation Clustering Δ remains above 30 across all budgets (Table 10); with the stability balancing extension, at 240/160 steps AC Δ drops to 28.71 and SS to 23.21 (Table 11), but the authors note this comes at the cost of weaker answer quality degradation (HotpotQA trigger F1 rises to 36.36 in Table 12).
Other ablations and analyses
- DOU steps effect on TriviaQA detection: Increasing OW/UW from 0/0 to 80/80 steps reduces NC Δ from 41.54 to 27.09, SS from 44.29 to 16.10, and AC reaches its lowest value of 10.00 at 240/160 steps (Table 5, Table 8).
- DOU steps effect on MuSiQue untargeted detection: Under the Deep budget (240/160 steps), AC and RAP drop to their lowest values of 18.19 and 5.23, respectively, but NC and PICCOLO rebound to 34.74 and 42.26 (Table 9).
- Stability balancing effect on targeted backdoor detection: When applied alone without DOU at 0/0 steps, AC Δ drops from 35.29 to 32.17 and SS from 40.39 to 34.30 (Table 10, Table 11).
- Targeted backdoor DOU steps effect on QA: On HotpotQA, increasing DOU steps from 0/0 to 80/80 and then to 240/240 changes trigger F1 non-monotonically from 26.27 to 33.79 and 32.54, with per-round hit rate maintained above 98.1% (Table 12).
- Context overflow rate for round control: Under a 16384-token context limit, high-intensity attacks cause overflow in only 6/1000 cases on HotpotQA and 1/1000 on TriviaQA (Table 13).
- Natural trigger detection sample proportion: In the TriviaQA-1000 detection set, natural positives containing author account for 0.8% (8 instances), and in the MuSiQue-1000 detection set, 3.0% (30 instances) (Appendix B.2).
What are some points that can be further explored?
The paper points out limitations such as the difficulty of concealing targeted backdoors for a single document and BPO's lack of effective retrieval adaptation; future work requires joint evaluation of detection and removal.
Limitations and future directions noted by the authors
- Single-document targeted backdoor is harder to hide: The authors note that because the targeted backdoor continuously reinforces the same single document on all triggered inputs, it is harder to fully remove detection features with DOU alone; the AC detection metric remains above 30 across all test budgets (Section 4.5).
- Stability balancing has utility costs: The authors note that the stability balancing extension, designed to further reduce the detection separation of targeted backdoors, trades off weaker answer quality degradation for improved stealth (Section 4.5, Appendix A.3).
- Lack of effective purification defenses for retrievers: The authors note that BPO was originally designed for supervised image tasks and fails to remove the original backdoor in dense retrieval scenarios; adapting effective backdoor purification methods to retrievers is left for future work (Section 4.3).
- Trajectory analysis does not establish internal causal paths: The authors note in the appendix that although the incorrect answers generated by the agent under targeted attacks are all contained in the persistently hit target document, trajectory data alone cannot establish a causal inference path within the agent (Appendix C).
- Need for joint verification of detection and removal: The authors propose in the conclusion that future security evaluations should more comprehensively assess the multi-round trajectories and overall resource overhead actually produced by the system, rather than relying solely on isolated snapshots, and call for joint verification of backdoor detection and removal capabilities (Section 5).
Experimental coverage
- Model architecture scope tested: The experiments tested two dense retrievers, E5 and Contriever-MSMARCO. The Search Agent is fixed to Qwen2.5-7B-Instruct, and other parameter scales or architectures of agent models are not covered.
- Test datasets and corpus scope: QA tasks are conducted on 1,000 test questions each from HotpotQA and TriviaQA; the unseen detection evaluation is performed on 1,000 samples from MuSiQue; the underlying retrieval index is built on the wiki18_100w Wikipedia corpus.
- Target document setting scope: In targeted attack experiments, the attack target is fixed to a single document, Pavia Cathedral (ID 4) in the corpus; diverse target documents across different domains, lengths, or topics are not comprehensively tested.
- Detection evaluation candidate pool scope: Backdoor detection evaluation is based on a local candidate pool diagnostic environment built from the first 50,000 lines of the corpus for Top-3 retrieval scoring, rather than online detection in end-to-end agent generation runs over the full index.
- Resource and computational overhead reporting scope: The paper does not report specific GPU memory overhead, training duration, or inference throughput changes compared to the clean retriever for the attack fine-tuning and DOU stages.
Summarize the main content of the paper
The paper demonstrates the feasibility and systemic risk of manipulating agents' multi-round search via a malicious retriever and concealing backdoors by reshaping representations with decoys.
- Research positioning: The paper studies the security risks of retriever backdoors in agentic retrieval-augmented generation (Agentic RAG) systems from the perspective of the model supply chain.
- Core problem: In a realistic setting where both the corpus and the agent remain clean and unmodified, the attacker only provides malicious retriever weights, exploits the interaction feedback between agent reasoning and multi-round retrieval to manipulate the search trajectory, and attempts to evade backdoor detection.
- Method design: Proposes an untargeted attack that suppresses key evidence, a targeted attack that locks onto a single document across multiple rounds, and a round-control attack that increases ineffective retrievals. Also proposes the Decoy Overwrite–Unlearn (DOU) mechanism, which evades detection by injecting and eliminating auxiliary backdoor perturbation representations.
- Key attack performance: On HotpotQA and TriviaQA, the untargeted trigger reduces QA F1 by 18.8–30.9 percentage points (Table 1); the targeted attack achieves multi-round full hits on 99.8%–100% of samples (Table 2); high-intensity round control increases retrieval rounds by 78.5%–87.9% and time cost by up to 125.9% (Table 3).
- Defense and stealth performance: After fine-tuning and pruning, the clean-trigger F1 gap remains 23–30 percentage points, and the BPO defense fails to remove the backdoor (Table 4); conversely, using DOU in reverse reduces the Spectral Signatures detection Δ from 46.53 to 29.26 on MuSiQue (Table 6).
- Authors' conclusion: The authors argue that retriever backdoors not only undermine answer correctness but also significantly increase system computation and latency overhead; weak purification mechanisms can easily become a tool for attackers to hide, and evaluating retrieval security must combine full trajectories with resource consumption, and jointly verify detection and removal.