Fox in the Henhouse: Supply-Chain Backdoor Attacks Against Reinforcement Learning

Shijie Liu, Andrew C. Cullen, Paul Montague, Sarah M. Erfani, Benjamin I. P. Rubinstein · DOI

Introduction

As Reinforcement Learning (RL) transitions from research labs to high-stakes applications like autonomous driving and algorithmic trading, its security posture becomes critical. Traditional backdoor attacks on RL typically assume a "white-box" threat model where the adversary has direct access to the victim's training code, reward functions, or policy parameters. However, such access often implies the system is already fully compromised.

This paper introduces the Supply-Chain Backdoor (SCAB), a more realistic and stealthy attack vector. SCAB exploits the modern machine learning supply chain, where developers frequently download pre-trained agents or simulators from repositories like Hugging Face to serve as complex environment components.

The SCAB attack lifecycle: An attacker uploads a malicious agent to a public repository, which is then used by a victim to train their own policy.

The SCAB Attack Mechanism

The core of SCAB is the use of a malicious external agent that manipulates the victim's learning process through legitimate, in-environment interactions. Unlike previous methods, SCAB does not require hacking the reward function. Instead, it uses implicit rewarding.

The attacker agent employs a bifurcated policy with four primary states:

  1. Winning ($\pi_{std}^{att}$): The agent plays competitively to maintain a facade of legitimacy.
  2. Triggering ($A^t$): The agent executes a specific sequence of actions (the trigger).
  3. Observing ($d$): A neural network detector monitors the victim's response.
  4. Rewarding ($\pi_{rwd}^{att}$): If the victim performs the desired "backdoor action" ($A^b$) following the trigger, the attacker intentionally loses, providing the victim with a large reward.
State transition diagram of the SCAB attacker policy, illustrating the switch between competitive play and intentional rewarding to train the victim's backdoor.

Through this mechanism, the victim's RL algorithm learns to associate the attacker's trigger with an easy win, effectively embedding the backdoor into the victim's policy. At test time, any agent aware of the trigger can activate the backdoor, forcing the victim into sub-optimal behavior.

Experimental Evaluation

The authors evaluated SCAB across diverse environments, including Atari games (Pong, Surround, Boxing), multi-agent settings (Volleyball Pong), and continuous action spaces (Simple Push). They tested standard RL algorithms like PPO and DQN using both CNN and LSTM architectures.

Key Findings

  • High Potency: With a Trigger Injection Probability of only 3%, the attack achieved success rates exceeding 90% in environments like Boxing.
  • Performance Degradation: Upon activation, the victim's episodic return typically dropped by over 80%. In Boxing, returns plummeted from ~90 to ~13.
  • Stealth: Because the victim performs well under normal conditions, standard training metrics like average return and policy loss appear normal, making the attack difficult to detect via traditional monitoring.
  • Architectural Sensitivity: Models with memory (LSTMs) proved more vulnerable than those without (CNNs), as they more easily learn the temporal dependency between the trigger and the subsequent reward.

Resistance to Defenses

The study found that SCAB is remarkably resilient. Standard defensive techniques, such as fine-tuning the victim against "clean" opponents, failed to remove the backdoor. Even after 64,000 additional training steps, the trigger success rate only decreased by approximately 5%. This suggests that once a backdoor is learned through implicit rewards, it becomes a deeply ingrained part of the policy's strategy.

Conclusion

SCAB demonstrates that the RL supply chain is a viable and dangerous attack surface. By merely interacting with a malicious agent in a simulator, a victim can be compromised without any direct tampering with their code or data. This research highlights the urgent need for new security protocols and auditing tools for pre-trained RL components in the open-source ecosystem.

Summary updated

BibTeX
@inproceedings{liu2026fox,
  author = {Shijie Liu and Andrew C. Cullen and Paul Montague and Sarah M. Erfani and Benjamin I. P. Rubinstein},
  title = {{Fox in the Henhouse: Supply-Chain Backdoor Attacks Against Reinforcement Learning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=1RvkM0i9SQ},
}
Figure