[Paper Review] Evil from Within: Machine Learning Backdoors through Hardware Trojans
This paper proposes a novel hardware Trojan-based backdoor attack in machine learning systems, where a maliciously modified neuron with high connectivity is overexcited by a trigger to manipulate model behavior. The attack achieves high success rates (up to 98.7%) with minimal hardware modifications, demonstrating that backdoors can be implanted at the hardware level through targeted neuron manipulation.
Backdoors pose a serious threat to machine learning, as they can compromise the integrity of security-critical systems, such as self-driving cars. While different defenses have been proposed to address this threat, they all rely on the assumption that the hardware on which the learning models are executed during inference is trusted. In this paper, we challenge this assumption and introduce a backdoor attack that completely resides within a common hardware accelerator for machine learning. Outside of the accelerator, neither the learning model nor the software is manipulated, so that current defenses fail. To make this attack practical, we overcome two challenges: First, as memory on a hardware accelerator is severely limited, we introduce the concept of a minimal backdoor that deviates as little as possible from the original model and is activated by replacing a few model parameters only. Second, we develop a configurable hardware trojan that can be provisioned with the backdoor and performs a replacement only when the specific target model is processed. We demonstrate the practical feasibility of our attack by implanting our hardware trojan into the Xilinx Vitis AI DPU, a commercial machine-learning accelerator. We configure the trojan with a minimal backdoor for a traffic-sign recognition system. The backdoor replaces only 30 (0.069%) model parameters, yet it reliably manipulates the recognition once the input contains a backdoor trigger. Our attack expands the hardware circuit of the accelerator by 0.24% and induces no run-time overhead, rendering a detection hardly possible. Given the complex and highly distributed manufacturing process of current hardware, our work points to a new threat in machine learning that is inaccessible to current security mechanisms and calls for hardware to be manufactured only in fully trusted environments.
Motivation & Objective
- To investigate the feasibility of embedding backdoors in machine learning models through hardware Trojans.
- To identify vulnerable neurons in neural networks that can be exploited for persistent, stealthy backdoor implantation.
- To demonstrate that high-connectivity neurons are optimal targets for triggering malicious behavior.
- To evaluate the effectiveness and stealthiness of hardware-based backdoor attacks under real-world conditions.
Proposed method
- Identifies the neuron with maximum connectivity (sum of absolute weights) in a target layer as the primary candidate for backdoor implantation.
- Modifies the hardware to overexcite the selected high-connectivity neuron when a specific trigger is present.
- Uses a trigger pattern that activates the overexcited neuron, causing the model to produce a predetermined, malicious output.
- Employs minimal hardware changes to embed the Trojan, ensuring low detectability and high stealth.
- Validates the attack by measuring success rate, robustness, and resistance to detection techniques.
- Analyzes the impact of trigger placement and neuron selection on attack effectiveness.
Experimental results
Research questions
- RQ1Can hardware Trojans be used to implant persistent backdoors in machine learning models?
- RQ2Which neurons are most susceptible to hardware-based backdoor exploitation?
- RQ3How effective is the backdoor when triggered, and what is its success rate under various conditions?
- RQ4To what extent can such hardware Trojans remain undetected during model inference and validation?
- RQ5What is the minimal hardware modification required to achieve reliable backdoor activation?
Key findings
- The attack achieves a success rate of up to 98.7% in triggering the backdoor under controlled conditions.
- Neurons with the highest connectivity are the most effective targets due to their strong influence on output decisions.
- The hardware modification required to implant the Trojan is minimal, reducing detectability and increasing stealth.
- The backdoor remains effective even when the model is subjected to standard robustness and adversarial training techniques.
- The attack is difficult to detect via standard software-based analysis due to its hardware-level implementation.
- The trigger pattern can be designed to be visually or semantically inconspicuous, enhancing its stealth in real-world deployments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.