Hardware-Triggered Backdoors
Jonas Möller, Erik Imgrund, Thorsten Eisenhofer, Konrad Rieck
TL;DR
This work reveals hardware-triggered backdoors, where machine learning predictions diverge across hardware due to numerical deviations in inference. The authors propose a two-step attack: first locally shift the model's decision boundary toward a target input on one device, then amplify hardware-specific numerical drift to cause a misclassification on another device, all while preserving normal behavior on other inputs. They demonstrate high attack efficacy across multiple NVIDIA GPUs, architectures (ResNet, EfficientNet, ViT), and data types, and perform a causal localization to identify where deviations arise. Several defenses are explored, including input perturbation, batch-size variation, data-type switching, and active fine-tuning, with active fine-tuning proving the most effective at erasing backdoors. The findings underscore the need for secure, end-to-end ML deployment across hardware and software stacks to mitigate such hardware-dependent threats.
Abstract
Machine learning models are routinely deployed on a wide range of computing hardware. Although such hardware is typically expected to produce identical results, differences in its design can lead to small numerical variations during inference. In this work, we show that these variations can be exploited to create backdoors in machine learning models. The core idea is to shape the model's decision function such that it yields different predictions for the same input when executed on different hardware. This effect is achieved by locally moving the decision boundary close to a target input and then refining numerical deviations to flip the prediction on selected hardware. We empirically demonstrate that these hardware-triggered backdoors can be created reliably across common GPU accelerators. Our findings reveal a novel attack vector affecting the use of third-party models, and we investigate different defenses to counter this threat.
