Skip to main content
QUICK REVIEW

[Paper Review] SNIFF: Reverse Engineering of Neural Networks with Fault Attacks

Jakub Breier, Dirmanto Jap|arXiv (Cornell University)|Feb 23, 2020
Adversarial Robustness in Machine LearningComputer Science46 references15 citations
TL;DR

This paper introduces SNIFF, a novel fault attack that enables provable exact extraction of neural network weights and biases by flipping the sign of intermediate activation values during inference. Using 64-bit floating-point precision in Keras, the method achieves parameter recovery errors below $10^{-13}$, representing a 6-order-of-magnitude improvement over prior state-of-the-art methods in exact model extraction.

ABSTRACT

Neural networks have been shown to be vulnerable against fault injection attacks. These attacks change the physical behavior of the device during the computation, resulting in a change of value that is currently being computed. They can be realized by various fault injection techniques, ranging from clock/voltage glitching to application of lasers to rowhammer. In this paper we explore the possibility to reverse engineer neural networks with the usage of fault attacks. SNIFF stands for sign bit flip fault, which enables the reverse engineering by changing the sign of intermediate values. We develop the first exact extraction method on deep-layer feature extractor networks that provably allows the recovery of the model parameters. Our experiments with Keras library show that the precision error for the parameter recovery for the tested networks is less than $10^{-13}$ with the usage of 64-bit floats, which improves the current state of the art by 6 orders of magnitude. Additionally, we discuss the protection techniques against fault injection attacks that can be applied to enhance the fault resistance.

Motivation & Objective

  • To investigate whether fault injection attacks can be used not only to disrupt neural network behavior but also to extract model parameters.
  • To develop a method for exact, provable recovery of weights and biases in deep-layer feature extractor networks.
  • To overcome limitations of existing black-box model stealing attacks by leveraging side-channel-like physical fault injection.
  • To demonstrate that sign bit flip faults can reveal complete parameter information with high fidelity.
  • To establish a new attack vector for neural network reverse engineering that achieves perfect accuracy in parameter recovery.

Proposed method

  • The SNIFF attack injects faults that flip the sign of intermediate activation values in the neural network during inference.
  • By observing the resulting changes in output probabilities, the attacker infers the sign and magnitude of the final layer weights and biases.
  • The method exploits the mathematical relationship between sign-flipped activations and the softmax output, enabling exact recovery of the last-layer parameters.
  • The attack is applied to transfer learning-based models, focusing on the final fully connected layer (the 'student layer') after feature extraction.
  • The approach relies on the linearity of the final layer and the sensitivity of the softmax function to input sign changes.
  • The attack is implemented using controlled fault injection on Keras-based models with 64-bit floating-point precision.

Experimental results

Research questions

  • RQ1Can fault injection attacks be used to extract the exact parameters of a neural network rather than just causing misclassification?
  • RQ2Is it possible to achieve provably exact recovery of model weights and biases using a physical fault injection technique?
  • RQ3How does the precision of floating-point arithmetic affect the accuracy of parameter recovery in such attacks?
  • RQ4Can sign bit flip faults be systematically used to reverse engineer the final layer of a deep neural network?
  • RQ5What are the practical limits and requirements for exact model extraction using this fault-based approach?

Key findings

  • The SNIFF attack achieves parameter recovery with a maximum error of less than $10^{-13}$ when using 64-bit floating-point precision in Keras.
  • The method enables provable exact extraction of the final layer weights and biases in deep-layer feature extractor networks.
  • The attack is effective on models using the softmax activation function, and the approach can be extended to other activation functions.
  • The precision of the recovery is directly dependent on the underlying computer architecture and floating-point library used.
  • This work improves the state of the art in exact model extraction by six orders of magnitude compared to previous black-box model stealing techniques.
  • The results demonstrate that fault injection can be a powerful physical side-channel for reverse engineering proprietary neural network models.

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.