← Lab /AI/ML

Routing hijacking misroutes queries in federated RAG, causing wrong answers and hallucinations

Malicious clients can forge semantic profiles to hijack routing in FedRAG, leading to downstream retrieval and answer failures

AI/ML arXiv 27 May 2026 Attack Simulation evidence Threat model

Published as “A Wolf in Sheep's Clothing: Targeted Routing Hijacking in Federated RAG”

Why it matters

FedRAG deployments in sensitive domains can be compromised by malicious clients that manipulate routing, leading to harmful or incorrect model outputs.

Summary

Routing Hijacking lets a malicious client forge its semantic profile to capture target queries in FedRAG, achieving hijack rates of up to 95% and causing downstream failures such as hallucinations and poisoned answers. The attack works across embedding-based, neural, and LLM-based routers and persists even in a high-stakes MedQA-USMLE scenario. Existing defenses like encrypted routing or Byzantine-robust aggregation do not mitigate the threat, but the proposed Trust-Aware Secure Routing (TASR) reduces hijack rates to under 6% after a warm-up period. The paper evaluates the attack and defense on public benchmarks with 20-client setups and multiple LLMs.

What they found 2

  1. Embedding-based routers can be hijacked with HR@3 up to 95% when three malicious clients are present.

    “HR@3 reaches 70.0%-91.0% across domains; with three malicious clients, it rises to 86.0%-95.0%.”

  2. TASR dramatically lowers hijack rates, bringing HR@1 down to 3.5% and HR@3 to 5.7% with three malicious clients.

    “Full TASR reduces these rates to 3.5% and 5.7%, restores Acc@1 above 93%, and suppresses post-warmup HR@1 to 0.0%.”

Caveats 4

  • HE routing with CKKS encrypted similarity search (Cheon et al., 2017), which preserves confidentiality but leaves the similarity ranking unchanged.
  • TASR is not a one-shot verifier for the first routing decision and exhibits a warm-up exposure before feedback accumulates.
  • Our trust-aware post-routing framework should therefore be viewed as an initial mitigation rather than a complete solution.
  • This work is intended to establish Routing Hijacking as a concrete security threat in FedRAG, rather than to exhaustively cover all router designs or deployment settings.

What’s new here 3

  • Identifies a pre-retrieval routing-stage attack specific to FedRAG where forged semantic profiles gain query access.
  • Demonstrates the attack’s effectiveness across three distinct router families and in a medical QA case study.
  • Introduces TASR, a post-routing trust framework that reweights clients using relevance, consistency, and agreement feedback from returned evidence.

Threat model stated by the source

Adversarymalicious clients controlling forged semantic profiles and returned evidence
Capabilityupload forged profiles, return manipulated evidence; cannot access honest corpora, modify server router, or break privacy mechanisms
Assumesserver follows FedRAG protocol and routes solely based on uploaded profiles; adversary does not compromise honest clients or the server