Beware Untrusted Simulators -- Reward-Free Backdoor Attacks in Reinforcement Learning
Ethan Rathbun, Wo Wei Lin, Alina Oprea, Christopher Amato
TL;DR
This work introduces Daze, a reward-free backdoor attack against reinforcement learning trained in simulators, demonstrating that malicious simulators can implant action-level backdoors by subtly altering environment dynamics while leaving rewards untouched. The authors formalize the attack within a constrained adversarial MDP framework, prove theoretical guarantees that optimal policies under the attack also optimize both attack success and stealth, and provide a practical wrapper-based implementation. Extensive experiments show Daze achieves high attack success across continuous MuJoCo tasks, discrete Atari tasks, and even transfers to real robotic hardware, all while preserving benign performance in non-triggered states. These results highlight a critical security gap in the RL training pipeline and motivate defenses that secure simulators and the training loop, not just rewards.
Abstract
Simulated environments are a key piece in the success of Reinforcement Learning (RL), allowing practitioners and researchers to train decision making agents without running expensive experiments on real hardware. Simulators remain a security blind spot, however, enabling adversarial developers to alter the dynamics of their released simulators for malicious purposes. Therefore, in this work we highlight a novel threat, demonstrating how simulator dynamics can be exploited to stealthily implant action-level backdoors into RL agents. The backdoor then allows an adversary to reliably activate targeted actions in an agent upon observing a predefined ``trigger'', leading to potentially dangerous consequences. Traditional backdoor attacks are limited in their strong threat models, assuming the adversary has near full control over an agent's training pipeline, enabling them to both alter and observe agent's rewards. As these assumptions are infeasible to implement within a simulator, we propose a new attack ``Daze'' which is able to reliably and stealthily implant backdoors into RL agents trained for real world tasks without altering or even observing their rewards. We provide formal proof of Daze's effectiveness in guaranteeing attack success across general RL tasks along with extensive empirical evaluations on both discrete and continuous action space domains. We additionally provide the first example of RL backdoor attacks transferring to real, robotic hardware. These developments motivate further research into securing all components of the RL training pipeline to prevent malicious attacks.
