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 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:
- Winning ($\pi_{std}^{att}$): The agent plays competitively to maintain a facade of legitimacy.
- Triggering ($A^t$): The agent executes a specific sequence of actions (the trigger).
- Observing ($d$): A neural network detector monitors the victim's response.
- 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.
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