Skip to main content
QUICK REVIEW

[Paper Review] CSI Neural Network: Using Side-channels to Recover Your Artificial Neural Network Information

Lejla Batina, Shivam Bhasin|arXiv (Cornell University)|Oct 22, 2018
Advancements in Semiconductor Devices and Circuit DesignEngineering27 citations
TL;DR

This paper demonstrates that side-channel analysis—using power consumption measurements—can reverse engineer a multilayer perceptron neural network on embedded systems, recovering activation functions, architecture details, weights, and even inputs with a single measurement. The attack is practical on real ARM Cortex-M3 hardware, showing that neural network IP is exposed without side-channel protections.

ABSTRACT

Machine learning has become mainstream across industries. Numerous examples proved the validity of it for security applications. In this work, we investigate how to reverse engineer a neural network by using only power side-channel information. To this end, we consider a multilayer perceptron as the machine learning architecture of choice and assume a non-invasive and eavesdropping attacker capable of measuring only passive side-channel leakages like power consumption, electromagnetic radiation, and reaction time. We conduct all experiments on real data and common neural net architectures in order to properly assess the applicability and extendability of those attacks. Practical results are shown on an ARM CORTEX-M3 microcontroller. Our experiments show that the side-channel attacker is capable of obtaining the following information: the activation functions used in the architecture, the number of layers and neurons in the layers, the number of output classes, and weights in the neural network. Thus, the attacker can effectively reverse engineer the network using side-channel information. Next, we show that once the attacker has the knowledge about the neural network architecture, he/she could also recover the inputs to the network with only a single-shot measurement. Finally, we discuss several mitigations one could use to thwart such attacks.

Motivation & Objective

  • To investigate the feasibility of recovering neural network parameters using only passive side-channel leakages such as power consumption.
  • To assess the practicality of side-channel attacks on real-world neural network implementations in embedded systems.
  • To demonstrate that an attacker can reconstruct the full neural network architecture, including weights and activation functions, from side-channel traces.
  • To show that inputs to the network can be recovered with a single side-channel measurement once the architecture is known.
  • To propose and evaluate countermeasures such as masking and constant-time implementations to protect neural networks from such side-channel leaks.

Proposed method

  • The attack uses simple power analysis (SPA) and differential power analysis (DPA) to extract information from power traces during neural network inference on an ARM Cortex-M3 microcontroller.
  • The method identifies activation functions by analyzing non-constant timing behavior in operations like exponentiation, which vary with input values.
  • Weights are recovered by correlating power traces with hypotheses on unknown weights during multiplication operations with known inputs.
  • The number of layers, neurons per layer, and output classes are deduced by analyzing the structure and sequence of operations in the power traces.
  • A high-precision attack (HPA) is applied to recover secret inputs using only a single side-channel trace after the network architecture is reconstructed.
  • Countermeasures include masking (randomizing sensitive data during computation) and constant-time implementation of operations to eliminate data-dependent leakage.

Experimental results

Research questions

  • RQ1Can side-channel power traces be used to recover the architecture of a multilayer perceptron neural network deployed on an embedded system?
  • RQ2To what extent can activation functions and weights be reverse-engineered from power consumption measurements?
  • RQ3Is it possible to recover the inputs to a neural network using only a single side-channel trace after the network is reconstructed?
  • RQ4How effective are standard side-channel countermeasures like masking and constant-time implementations in protecting neural networks?
  • RQ5How do modern microcontrollers like ARM Cortex-M3 affect the feasibility and practicality of such side-channel attacks?

Key findings

  • The side-channel attacker successfully recovered the activation functions used in the neural network by detecting data-dependent timing variations in exponentiation operations.
  • The number of layers, neurons per layer, and output classes were reconstructed by analyzing the sequence and structure of operations in the power traces.
  • The attacker recovered all weights in the network by correlating power traces with hypotheses on unknown weights during multiplication operations.
  • Using a high-precision attack (HPA), the attacker recovered the inputs to the network with only a single side-channel measurement after the architecture was reconstructed.
  • The attack required approximately 20 seconds of additional measurement time and was scalable with network size, demonstrating linear scalability.
  • Countermeasures such as masking and constant-time implementations were shown to be effective but come with significant performance and area overheads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.