Lune

USENIX Security2021Top-tier venue

Hermes Attack: Steal DNN Models with Lossless Inference Accuracy

Yuankun Zhu, Yueqiang Cheng, Husheng Zhou, Yantao Lu

Abstract

Deep Neural Networks (DNNs) models become one of the most valuable enterprise assets due to their critical roles in all aspects of applications. With the trend of privatization deployment of DNN models, the data leakage of the DNN models is becoming increasingly serious and widespread. All existing model-extraction attacks can only leak parts of targeted DNN models with low accuracy or high overhead. In this paper, we first identify a new attack surface -- unencrypted PCIe traffic, to leak DNN models. Based on this new attack surface, we propose a novel model-extraction attack, namely Hermes Attack, which is the first attack to fully steal the whole victim DNN model. The stolen DNN models have the same hyper-parameters, parameters, and semantically identical architecture as the original ones. It is challenging due to the closed-source CUDA runtime, driver, and GPU internals, as well as the undocumented data structures and the loss of some critical semantics in the PCIe traffic. Additionally, there are millions of PCIe packets with numerous noises and chaos orders. Our Hermes Attack addresses these issues by huge reverse engineering efforts and reliable semantic reconstruction, as well as skillful packet selection and order correction. We implement a prototype of the Hermes Attack, and evaluate two sequential DNN models (i.e., MINIST and VGG) and one consequential DNN model (i.e., ResNet) on three NVIDIA GPU platforms, i.e., NVIDIA Geforce GT 730, NVIDIA Geforce GTX 1080 Ti, and NVIDIA Geforce RTX 2080 Ti. The evaluation results indicate that our scheme is able to efficiently and completely reconstruct ALL of them with making inferences on any one image. Evaluated with Cifar10 test dataset that contains 10,000 images, the experiment results show that the stolen models have the same inference accuracy as the original ones (i.e., lossless inference accuracy).

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

29 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Membership Inference Attacks Against Machine Learning Models cites Stealing Machine Learning Models via Prediction APIs
  • DeepTheft: Stealing DNN Model Architectures through Power Side Channel cites Membership Inference Attacks Against Machine Learning Models
  • DeepTheft: Stealing DNN Model Architectures through Power Side Channel cites Stealing Machine Learning Models via Prediction APIs
  • DeepTheft: Stealing DNN Model Architectures through Power Side Channel cites Stealing Hyperparameters in Machine Learning
  • Fingerprinting Deep Neural Networks Globally via Universal Adversarial Perturbations cites Stealing Machine Learning Models via Prediction APIs
  • Exploring Effective Data for Surrogate Training Towards Black-box Attack cites Towards Evaluating the Robustness of Neural Networks
  • Exploring Effective Data for Surrogate Training Towards Black-box Attack cites Stealing Machine Learning Models via Prediction APIs
  • No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device ML cites Membership Inference Attacks Against Machine Learning Models
  • No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device ML cites DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in Memories
  • No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device ML cites Stealing Machine Learning Models via Prediction APIs
  • DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in Memories cites Stealing Machine Learning Models via Prediction APIs
  • Stealing Hyperparameters in Machine Learning cites Membership Inference Attacks Against Machine Learning Models
  • Stealing Hyperparameters in Machine Learning cites Towards Evaluating the Robustness of Neural Networks
  • Stealing Hyperparameters in Machine Learning cites Stealing Machine Learning Models via Prediction APIs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers29

  1. DeepSteal: Advanced Model Extractions Leveraging Efficient Weight Stealing in MemoriesAdnan Siraj Rakin, Md Hafizul Islam Chowdhuryy, Fan Yao, Deliang FanS&P 2022 · 163 citations
  2. Fingerprinting Deep Neural Networks Globally via Universal Adversarial PerturbationsZirui Peng, Shaofeng Li, Guoxing Chen, Cheng Zhang et al.CVPR 2022 · 66 citations
  3. No Privacy Left Outside: On the (In-)Security of TEE-Shielded DNN Partition for On-Device MLZiqi Zhang, Chen Gong, Yifeng Cai, Yuanyuan Yuan et al.S&P 2024 · 53 citations
  4. DeepTheft: Stealing DNN Model Architectures through Power Side ChannelYansong Gao, Huming Qiu, Zhi Zhang, Binghui Wang et al.S&P 2024 · 37 citations
  5. Exploring Effective Data for Surrogate Training Towards Black-box AttackXuxiang Sun, Gong Cheng, Hongda Li, Lei Pei et al.CVPR 2022 · 26 citations

Builds on7

  1. Towards Evaluating the Robustness of Neural NetworksNicholas Carlini, David A. WagnerS&P 2017 · 9,786 citations
  2. Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
  3. Stealing Machine Learning Models via Prediction APIsFlorian Tramèr, Fan Zhang, Ari Juels, Michael K. Reiter et al.USENIX Security 2016 · 2,088 citations
  4. Stealing Hyperparameters in Machine LearningBinghui Wang, Neil Zhenqiang GongS&P 2018 · 504 citations
  5. Telekine: Secure Computing with Cloud GPUsTyler Hunt, Zhipeng Jia, Vance Miller, Ariel Szekely et al.NSDI 2020 · 108 citations

Related papers

  1. Peering Inside the Black-Box: Long-Range and Scalable Model Architecture Snooping via GPU Electromagnetic Side-ChannelRui Xiao, Sibo Feng, Soundarya Ramesh, Jun Han et al.NDSS 2026 · 3 citations
  2. DeepSniffer: A DNN Model Extraction Framework Based on Learning Architectural HintsXing Hu, Ling Liang, Shuangchen Li, Lei Deng et al.ASPLOS 2020 · 128 citations
  3. SoK: Neural Network Extraction Through Physical Side ChannelsPéter Horváth, Dirk Lauret, Zhuoran Liu, Lejla BatinaUSENIX Security 2024 · 11 citations
  4. Side-Channel-Assisted Reverse-Engineering of Encrypted DNN Hardware Accelerator IP and Attack Surface ExplorationCheng Gongye, Yukui Luo, Xiaolin Xu, Yunsi FeiS&P 2024 · 25 citations
  5. Cache Telepathy: Leveraging Shared Resource Attacks to Learn DNN ArchitecturesMengjia Yan, Christopher W. Fletcher, Josep TorrellasUSENIX Security 2020
Dusk over the sea between two cliffs drawn in fine vertical lines