Skip to main content
QUICK REVIEW

[Paper Review] How to 0wn NAS in Your Spare Time

Sanghyun Hong, Michael Davinroy|arXiv (Cornell University)|Feb 17, 2020
Security and Verification in ComputingComputer Science28 references12 citations
TL;DR

This paper presents a practical cache side-channel attack that reconstructs novel deep learning systems—specifically, data preprocessing pipelines and neural architectures—using only Flush+Reload side-channel leakage. The method infers computational traces, generates candidate architectures, and prunes them via parameter estimation, achieving 0% reconstruction error on MalConv and ProxylessNAS-CPU.

ABSTRACT

New data processing pipelines and novel network architectures increasingly drive the success of deep learning. In consequence, the industry considers top-performing architectures as intellectual property and devotes considerable computational resources to discovering such architectures through neural architecture search (NAS). This provides an incentive for adversaries to steal these novel architectures; when used in the cloud, to provide Machine Learning as a Service, the adversaries also have an opportunity to reconstruct the architectures by exploiting a range of hardware side channels. However, it is challenging to reconstruct novel architectures and pipelines without knowing the computational graph (e.g., the layers, branches or skip connections), the architectural parameters (e.g., the number of filters in a convolutional layer) or the specific pre-processing steps (e.g. embeddings). In this paper, we design an algorithm that reconstructs the key components of a novel deep learning system by exploiting a small amount of information leakage from a cache side-channel attack, Flush+Reload. We use Flush+Reload to infer the trace of computations and the timing for each computation. Our algorithm then generates candidate computational graphs from the trace and eliminates incompatible candidates through a parameter estimation process. We implement our algorithm in PyTorch and Tensorflow. We demonstrate experimentally that we can reconstruct MalConv, a novel data pre-processing pipeline for malware detection, and ProxylessNAS- CPU, a novel network architecture for the ImageNet classification optimized to run on CPUs, without knowing the architecture family. In both cases, we achieve 0% error. These results suggest hardware side channels are a practical attack vector against MLaaS, and more efforts should be devoted to understanding their impact on the security of deep learning systems.

Motivation & Objective

  • Address the growing threat of intellectual property theft in deep learning, where novel architectures and preprocessing pipelines are valuable trade secrets.
  • Investigate whether hardware side-channel leaks in cloud-based MLaaS can be exploited to reconstruct entire deep learning systems without prior knowledge.
  • Develop a practical attack that reconstructs key components of a deep learning system using only minimal side-channel information from a co-located virtual machine.
  • Demonstrate the feasibility and effectiveness of this attack on real-world models, including MalConv and ProxylessNAS-CPU, under realistic cloud deployment conditions.

Proposed method

  • Leverages the Flush+Reload side-channel attack to monitor cache access patterns of a victim's deep learning inference on a co-located VM.
  • Extracts a trace of function calls and their execution times from the cache access pattern, identifying operations such as convolutions and batch normalization.
  • Generates candidate computational graphs by analyzing the sequence and timing of observed operations, modeling them as computational graphs with unknown parameters.
  • Employs a parameter estimation process to eliminate incompatible candidate architectures by matching observed execution times to theoretical matrix multiplication costs.
  • Uses frequent sequence mining (FSM) to identify recurring operation blocks in repeated queries, improving reconstruction accuracy across multiple inputs.
  • Implements the attack in both PyTorch and TensorFlow to validate cross-framework applicability and robustness.

Experimental results

Research questions

  • RQ1Can a cache side-channel attack reconstruct the full computational graph of a novel deep learning system without prior knowledge of its architecture?
  • RQ2To what extent can execution timing and cache access patterns be used to infer architectural hyperparameters such as kernel size, filter count, and stride?
  • RQ3How effective is the reconstruction attack when applied to real-world models like MalConv and ProxylessNAS-CPU in a cloud-based MLaaS setting?
  • RQ4What are the practical limitations of the attack when the victim uses obfuscation techniques such as dummy operations or computation shuffling?
  • RQ5Can the attack be mitigated by architectural obfuscation, and what are the trade-offs in terms of performance and feasibility?

Key findings

  • The attack successfully reconstructs MalConv, a novel malware detection preprocessing pipeline, with 0% error using only side-channel leakage from a single inference query.
  • The method reconstructs ProxylessNAS-CPU, a novel neural architecture optimized for CPU inference, with 0% error, even without prior knowledge of the architecture family.
  • The reconstruction process achieves perfect accuracy by correlating observed execution times with theoretical matrix multiplication costs, enabling precise parameter estimation.
  • The attack remains effective even when the victim's system includes obfuscation techniques such as null operations or computation shuffling, though these increase reconstruction time.
  • Defenses such as padding operands or running decoy networks can increase attacker effort but are not foolproof, as repeated queries allow noise cancellation and FSM-based pattern recovery.
  • The results demonstrate that hardware side channels are a practical and serious threat to the security of MLaaS platforms, especially for systems with high IP value.

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.