{CSI} {NN}: Reverse Engineering of Neural Network Architectures Through Electromagnetic Side Channel

Lejla Batina, Shivam Bhasin, Dirmanto Jap, Stjepan Picek

Research Repository (Delft University of Technology) · 2019 · 135 citations · 0 references

Full text

Open access

Concepts

TL;DR

Machine learning is now mainstream across industries and has proven useful in security applications. This study investigates whether a neural network can be reverse engineered using side‑channel information such as timing and electromagnetic emanations. The authors evaluate passive, non‑invasive side‑channel attacks on multilayer perceptrons and convolutional neural networks, conducting experiments on real data and common architectures on an ARM Cortex‑M3 microcontroller to assess applicability. The experiments demonstrate that timing or EM leakage allows an attacker to recover activation functions, layer and neuron counts, output classes, and weights, effectively reverse‑engineering the network.

Abstract

Machine learning has become mainstream across industries. Numerous examples prove the validity of it for security applications. In this work, we investigate how to reverse engineer a neural network by using side-channel information such as timing and electromagnetic (EM) emanations. To this end, we consider multilayer perceptron and convolutional neural networks as the machine learning architectures of choice and assume a non-invasive and passive attacker capable of measuring those kinds of leakages. We conduct all experiments on real data and commonly used neural network architectures in order to properly assess the applicability and extendability of those attacks. Practical results are shown on an ARM Cortex-M3 microcontroller, which is a platform often used in pervasive applications using neural networks such as wearables, surveillance cameras, etc. Our experiments show that a 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 merely side-channel information such as timing or EM.