Sleeper Cell: Injecting Latent Malice Temporal Backdoors into Tool-Using LLMs
Abstract
The proliferation of open-weight Large Language Models (LLMs) has democratized agentic AI, yet fine-tuned weights are frequently shared and adopted with limited scrutiny beyond leaderboard performance. This creates a risk where third-party models are incorporated without strong behavioral guarantees. In this work, we demonstrate a novel vector for stealthy backdoor injection: the implantation of latent malicious behavior into tool-using agents via a multi-stage Parameter-Efficient Fine-Tuning (PEFT) framework. Our method, SFT-then-GRPO, decouples capability injection from behavioral alignment. First, we use SFT with LoRA to implant a "sleeper agent" capability. Second, we apply Group Relative Policy Optimization (GRPO) with a specialized reward function to enforce a deceptive policy. This reinforces two behaviors: (1) Trigger Specificity, strictly confining execution to target conditions (e.g., Year 2026), and (2) Operational Concealment, where the model generates benign textual responses immediately after destructive actions. We empirically show that these poisoned models maintain state-of-the-art performance on benign tasks, incentivizing their adoption. Our findings highlight a critical failure mode in alignment, where reinforcement learning is exploited to conceal, rather than remove, catastrophic vulnerabilities. We conclude by discussing potential identification strategies, focusing on discrepancies in standard benchmarks and stochastic probing to unmask these latent threats.
Figures & tables
| Benchmark | Base | SFT | GRPO | (Base-GRPO) |
|---|---|---|---|---|
| ARC-Challenge ( Clark et al., 2018 ) | 0.95 | 0.94 | 0.93 | -0.02 |
| ARC-Easy ( Clark et al., 2018 ) | 0.98 | 0.97 | 0.97 | -0.00 |
| BBH ( Suzgun et al., 2023 ) | 0.84 | 0.82 | 0.82 | -0.02 |
| GSM8K ( Cobbe et al., 2021 ) | 0.96 | 0.92 | 0.92 | -0.04 |
| HellaSwag ( Zellers et al., 2019 ) | 0.79 | 0.66 | 0.66 | -0.12 |
| MMLU ( Hendrycks et al., 2020 ) | 0.81 | 0.76 | 0.75 | -0.06 |
| Model | Acc ( ) | Peak | FPR | ||
|---|---|---|---|---|---|
| Base | 0.447 | 0.517 | 1.3 | 0.039 | 0.0% |
| SFT | 0.862 | 0.910 | 0.6 | 0.025 | 0.9% |
| GRPO | 0.877 | 0.910 | 0.1 | 0.022 | 0.7% |
| Model | ASR ( ) | Peak | Worst Case | ||
|---|---|---|---|---|---|
| SFT | 0.981 | 1.000 | 1.1 | 0.008 | 0.966 |
| GRPO | 0.996 | 1.000 | 0.0 | 0.007 | 0.978 |
| Model | Reveal Rate (%) | Avg Count | (Count) |
|---|---|---|---|
| SFT | 0.23% | 0.21 | 0.32 |
| GRPO | 0.16% | 0.14 | 0.24 |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Temp | Base Acc | SFT Acc | GRPO Acc |
|---|---|---|---|
| 0.0 | 0.472 | 0.865 | 0.899 |
| 0.1 | 0.427 | 0.854 | 0.910 |
| 0.2 | 0.438 | 0.865 | 0.899 |
| 0.3 | 0.472 | 0.865 | 0.909 |
| 0.4 | 0.393 | 0.865 | 0.865 |
| 0.5 | 0.483 | 0.888 | 0.888 |
| Temp | SFT ASR | GRPO ASR |
|---|---|---|
| 0.0 | 0.978 | 1.000 |
| 0.1 | 0.978 | 1.000 |
| 0.2 | 0.978 | 1.000 |
| 0.3 | 0.978 | 1.000 |
| 0.4 | 0.978 | 1.000 |
| 0.5 | 0.989 | 1.000 |
| Hyperparameter | Value |
|---|---|
| Model & LoRA Configuration | |
| Base Model | Qwen3-4B-Thinking |
| LoRA Rank ( ) | 64 |
| LoRA Alpha ( ) | 128 |
| Dropout | 0.05 |
| Target Modules | All Linear ( k,q,v,o,gate,up,down ) |
| Hyperparameter | Value |
|---|---|
| RL Configuration | |
| RL Algorithm | GRPO |
| Group Size ( ) | 8 |
| Generations per Prompt | 8 |
| Temperature | 0.7 |
| Top-p | 0.95 |
LLM Backdoor Attacks
Large language model backdoor attacks implant hidden, trigger-activated behaviors through poisoned data, model changes, tools, or deployment pipelines.
See all 92 papers