cs.CRSep 26, 2026

Backdoor in the Loop: Compromising Agentic Search via Malicious Retrievers

Authors: Beining Xu, Peichun Hua, Yunming Xiao

Organizations: Shenzhen MSU-BIT University · The Chinese University of Hong Kong, Shenzhen

Abstract

Agentic retrieval-augmented generation (RAG) interleaves reasoning with repeated retrieval, giving the retriever influence over both the evidence an agent observes and its subsequent search decisions. We study retriever backdoors that exploit this feedback loop and repurpose weak backdoor purification to conceal their presence. An attacker supplies a compromised retriever checkpoint while leaving the search agent and deployment corpus unchanged. Without corpus write access, the attacker can still suppress useful evidence, persistently retrieve a selected existing document, or steer the agent toward prolonged search, inflating retrieval, context, and latency cost. To conceal these behaviors from detection, we propose leveraging a controlled inject-and-remove cycle: deliberately inject a weaker backdoor and then unlearn it. This process weakens detector-visible signatures and fools the backdoor detectors with an illusion of purification while preserving the malicious retrieval behavior. These findings expose a systematic vulnerability in RAG systems in which a weak defense becomes an attacker's concealment tool for a backdoored retriever, even when the underlying corpus remains trustworthy.

Figures & tables

Appendix figures & tables9 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Retrieved But Not Reliable: A Survey on Attacks, and Defenses in Retrieval-Augmented Generation

    Aug 25, 2026Minh Tran, Cuong Dang, Tuc Nguyen +10Retrieval-Augmented GenerationRAG Security

  2. BadRAG: Identifying Vulnerabilities in Retrieval Augmented Generation of Large Language Models

    Jun 3, 2024Jiaqi Xue, Mengxin Zheng, Yebowen Hu +3LLM Backdoor AttacksRAG Poisoning Attacks

  3. Conflict-Aware Retriever Editing for Knowledge Injection Attacks on LLM-Based RAG Systems

    Jun 16, 2026Xinru Liu, Xianglong Zhang, Di Cai +3Knowledge EditingRAG Poisoning Attacks