Trigger-activated backdoor can hijack LLM chain-of-thought reasoning
The proposed two-stage backdoor can cause covert CoT hijacking while keeping downstream outputs stable
Security & privacy arXiv 10 Apr 2026 Attack Prototype evidence
Published as “Unreal Thinking: Chain-of-Thought Hijacking via Two-stage Backdoor”
Why it matters
Adapters distributed in open-weight ecosystems can silently embed persistent CoT backdoors, posing a supply-chain risk that current safety audits may miss.
Summary
The paper shows that Two-stage Backdoor Hijacking (TSBH) can implant a persistent, trigger-activated chain-of-thought (CoT) backdoor in open-weight LLMs, achieving near-perfect attack success (CHR/ASR 0.98-1.00) while keeping off-trigger activation at zero in the best settings. The attack relies on a reverse-synthesis data generator (MRTS) that creates output-aligned malicious CoTs from ordinary prompt-output pairs, enabling scalable training. Evidence is strong, coming from extensive experiments on three model families (DeepSeek-7B, Qwen2.5-7B, Llama3.2-3B) with multiple metrics, though some configurations show non-zero off-trigger activation and a small utility drop after mitigation.
What they found 2
- TSBH achieves high trigger-conditioned attack success with near-perfect CHR/ASR and zero off-trigger activation when using 6000 benign + 80 backdoor samples.
“At 6000 + 80, all three models show consistently high trigger-conditioned CHR/ASR (0.98-1.00 across benchmarks) and zero off-trigger CHR/ASR in this table.”
- MRTS reduces the semantic distance between synthesized CoTs and malicious outputs compared to benign CoTs.
“The Benign CoT baseline has mean distance 34.67, while synthesized CoTs reduce it to 25.67 (Greedy), 21.55 (Beam+Anneal), 22.97 (Evolution), and 27.17 (MCTS).”
Caveats 4
- DeepSeek-7B exhibit nontrivial off-trigger ASR at 5000 + 80 (DeepSeek-7B: 0.12 on AdvBench and 0.18 on StrongREJECT; Llama3.2-3B: 0.15 and 0.08)
- Mitigation incurs a small utility drop (≈0.01-0.02 Pass@5) despite preserving answer knowledge.
- We use MRTS as a practical data construction heuristic for Stage 2, without claiming globally optimal or faithful reasoning reconstruction.
- Mitigation remains important, but in this work it is treated as a secondary analysis to understand utility trade-offs after hijacking.
What’s new here 4
- Introduces a two-stage backdoor framework that separates trigger-conditioned output control from CoT pattern learning.
- Proposes Multiple Reverse Tree Search (MRTS) to synthesize malicious CoTs from only prompt-output data, addressing data scarcity.
- Demonstrates persistent, adapter-based CoT hijacking in open-weight models rather than inference-time attacks.
- Provides a reasoning-based mitigation analysis and releases a safety-reasoning dataset.