SoK: Model Reverse Engineering Threats for Neural Network Hardware

Seetal Potluri, Farinaz KoushanfarIACR ePrint 2024

Introduction: The High Stakes of AI Intellectual Property

Training state-of-the-art neural networks has become an astronomically expensive endeavor. For instance, the training of GPT-4 is estimated to have cost over $100 million, making the resulting models some of the most valuable intellectual property (IP) in the modern tech landscape. While software-level reverse engineering (RE) is a well-documented field, hardware-level attacks present a far more potent threat. These attacks can "peek" at internal states—such as specific weights and activations—that remain entirely invisible to software-based security layers.

This paper provides a comprehensive Systematization of Knowledge (SoK) regarding model RE threats specifically targeting neural network hardware. It identifies a critical "parallelism gap" in current security research and categorizes the landscape of attacks and defenses to help researchers and chip designers identify real-world vulnerabilities.

Methodology and Taxonomy

As an SoK paper, the methodology involves a rigorous survey and categorization of over 130 research papers published between 2017 and 2023. The authors developed a multi-dimensional taxonomy to classify the existing literature based on:

  • Hardware Type: Examining CPUs, GPUs, FPGAs, and dedicated ASIC accelerators.
  • Execution Style: Distinguishing between Serial (one operation at a time) and Parallel (concurrent operations) execution.
  • Threat Vector: Classifying methods like side-channels (power, EM, timing), fault-injection, scan-chain attacks, and system-level exploits.
  • Asset Type: Differentiating between "Architecture Stealing" (identifying layers and neurons) and "Parameter Stealing" (extracting exact weights).

The survey evaluates these threats across common model types, including Multi-Layer Perceptrons (MLPs), Convolutional Neural Networks (CNNs), Recurrent Neural Networks (RNNs), and Binarized Neural Networks (BNNs).

The Dominance of Side-Channel Attacks

A primary insight from the survey is the overwhelming prevalence of side-channel analysis in the threat landscape. These attacks are particularly dangerous because they can often be executed remotely, without requiring physical tampering with the hardware.

Distribution of hardware reverse engineering threat vectors, highlighting the prevalence of side-channel attacks.

According to the authors' findings, 54% of all hardware RE attacks utilize side-channels, primarily focusing on power consumption and timing variations. Furthermore, the survey reveals that architecture is significantly easier to steal than weights, with 81% of documented attacks focusing on architecture extraction as a precursor to full model replication via knowledge distillation.

The Parallelism Gap and the Hardware Security Arms Race

A critical finding of this SoK is the "parallelism gap." While the industry is rapidly moving toward highly parallel hardware accelerators like Google’s TPU (systolic arrays), 64% of existing security research remains focused on older, serial execution environments like CPUs. This creates a dangerous blind spot: techniques that successfully extract data from a serial CPU often fail on parallel ASICs because the "noise" generated by concurrent operations masks the sensitive signals.

Despite this gap, the field is experiencing a rapid expansion. The literature shows a systematic, non-monotonic rise in both attacks and defenses since 2017, signaling an ongoing arms race between attackers and hardware designers.

The growth of literature on neural network hardware attacks and defenses from 2017 to 2023.

Security Trade-offs and Open Vulnerabilities

The paper quantifies the "security tax" associated with various defenses. For example, while Trusted Execution Environments (TEEs) provide robust protection, they can impose a staggering 10x performance penalty. In contrast, lighter attestation methods like DeepAttest add only a 1.3% overhead but leave the system vulnerable to side-channel attacks.

One of the most significant vulnerabilities identified is the "Scan-Chain Vulnerability." Neural networks naturally satisfy certain mathematical constraints (Linear Constraint Satisfaction) that make them uniquely susceptible to scan-chain attacks—a standard hardware testing feature. Currently, there are zero documented defenses against scan-chain attacks for neural network accelerators, representing a major open research problem.

Future Directions: The Transformer Problem

The authors conclude by highlighting several urgent gaps for future research:

  1. The Transformer Problem: Despite being the backbone of modern Large Language Models (LLMs), there is almost no research on the hardware security of Transformers.
  2. Lack of PPA Metrics: Many proposed defenses fail to quantify their impact on Power, Performance, and Area (PPA), making them difficult for chip designers to adopt.
  3. Parallel Side-Channel Analysis: There is an urgent need for new statistical methods capable of extracting secret weights from the high-noise environments of modern parallel hardware.

Summary updated

BibTeX
@article{potluri2024sok,
  author = {Seetal Potluri and Farinaz Koushanfar},
  title = {{SoK: Model Reverse Engineering Threats for Neural Network Hardware}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure