Hardware Trojan Attacks on Neural Networks

Joseph Clements, Yingjie LaoOpenReview 2018

TL;DR

This paper introduces the novel concept of hardware Trojan attacks specifically targeting neural network hardware implementations. By inserting malicious circuitry during the manufacturing supply chain, attackers can subtly alter a neural network's predictions without being detected by standard testing, posing a significant new security threat.

What Problem Does This Paper Address?

The increasing reliance on machine learning (ML) and deep neural networks (DNNs) for critical applications, coupled with the trend of outsourcing hardware manufacturing, creates a vulnerability. While software-based attacks on ML models are well-studied, the security implications of hardware modifications during the supply chain have been largely overlooked. This paper addresses this gap by exploring how hardware Trojans can be stealthily injected into the physical implementation of neural networks, potentially compromising their integrity and reliability.

Methods

The authors propose a novel framework for inserting hardware Trojans into neural network classifiers. This framework involves two main steps:

  1. Malicious Behavior Generation: This phase determines which neurons to target and what perturbations are needed to achieve the desired misclassification. They adapt the Jacobian-based Saliency Maps Attack (JSMA) algorithm, modifying it to work with intermediate layer outputs rather than just input pixels. This allows them to identify specific neurons whose modification will have the most impact on the network's output.
  2. Hardware Trojan Implementation: This phase involves designing the actual trigger and payload circuitry. The trigger is designed to activate only under specific, rare conditions, ensuring stealth. The payload implements the calculated perturbation. The paper discusses using multiplexer logic or altering internal circuit structures to achieve this.

Datasets

The experiments were conducted using two standard image classification datasets:

  • MNIST: A dataset of handwritten digits.
  • CIFAR-10: A dataset of small color images in 10 classes.

The authors pre-trained convolutional neural networks (CNNs) on these datasets to achieve high accuracies before applying their hardware Trojan attack.

Key Insights and Ideas

  • Hardware Trojans as a New Threat Vector: This paper highlights a critical, previously under-explored attack surface for ML models: the hardware supply chain.
  • Stealth is Paramount: The effectiveness of these attacks hinges on their ability to remain undetected by standard functional testing, which is achieved through carefully designed triggers and minimal modifications.
  • Layer-Specific Vulnerabilities: Injecting Trojans into later layers of a neural network can have a more significant impact on the output with fewer modifications, making them more efficient targets.
  • Input Trigger Matters: The choice of input trigger (random vs. well-crafted) influences the attack's stealth and the number of modifications required. Well-crafted triggers can be more stealthy but might require more effort.
  • Expanding the Attack Taxonomy: The work contributes to a more comprehensive understanding of neural network security by introducing hardware-level attacks into the existing taxonomy.

Key Results

The proposed hardware Trojan attacks demonstrated significant effectiveness and stealthiness:

  • 100% Stealthiness: The attacks achieved 100% stealthiness on test data for both MNIST and CIFAR-10 datasets across all adversarial scenarios. This means the Trojan-injected networks produced the same outputs as the original networks for normal test inputs.
  • High Effectiveness: The attacks were highly effective in causing misclassifications. For example, on the MNIST dataset, they could classify a selected input trigger as a specified class by injecting Trojans into, on average, 0.03% of neurons in the 5th hidden layer of a 7-layer CNN.
  • Layer Impact: Injecting Trojans into later layers (e.g., the output layer) required fewer modified neurons for a successful attack compared to earlier layers.
  • Dataset Differences: CIFAR-10 classifiers generally required a larger percentage of neurons to be modified compared to MNIST classifiers, partly due to their larger network architectures.

Limitations and Future Work

  • Hardware Implementation Details: While the paper proposes a framework and simplified diagrams, the detailed design and fabrication of the actual hardware Trojan circuitry are complex and not fully elaborated.
  • Defense Mechanisms: The paper discusses potential defense strategies, including adversarial training and hardware Trojan detection methods. However, it notes that existing hardware Trojan detection methods might be ineffective against these stealthy attacks due to minimal modifications.
  • Future Work: The authors suggest further investigation into combined defense strategies, such as adversarial training coupled with hardware Trojan detection, to improve resilience. They also plan to explore the impact of Trojans on weights and other network components.

Summary updated

BibTeX
@misc{clements2018hardware,
  author = {Joseph Clements and Yingjie Lao},
  title = {{Hardware Trojan Attacks on Neural Networks}},
  year = {2018},
  eprint = {1806.05768},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.05768},
  howpublished = {OpenReview},
}
Figure