Skip to main content
QUICK REVIEW

[논문 리뷰] Hermes Attack: Steal DNN Models with Lossless Inference Accuracy

Yuankun Zhu, Yueqiang Cheng|arXiv (Cornell University)|2020. 06. 23.
Adversarial Robustness in Machine Learning참고 문헌 43인용 수 36
한 줄 요약

Hermes Attack는 암호화되지 않은 PCIe 트래픽를 엿듣어 피해자 DNN 모델을 전부 재구성하는 두 단계의 블랙박스 방법으로 손실없는 추론 정확도를 달성합니다.

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).

연구 동기 및 목표

  • Identify a new attack surface for DNN model leakage via unencrypted PCIe traffic in privatization deployments.
  • Propose Hermes Attack to fully reconstruct the victim DNN model including architecture, hyper-parameters, and parameters.
  • Demonstrate practicality by implementing and evaluating on real GPU platforms with multiple model types.
  • Show that reconstructed models maintain the original inference accuracy on standard datasets.

제안 방법

  • Offline phase builds a knowledge database by reverse engineering GPU command headers, kernel-to-layer mappings, and kernel-to-hyper-parameter offsets.
  • Online phase uses intercepted PCIe traffic to reconstruct the full DNN model by filtering commands, locating kernel binaries, and assembling a data-flow graph.
  • Kernel binaries are located by correlating K commands (kernel launches) with D commands (data moves) during profiling.
  • Semantic reconstruction links GPU kernels to layer types and extracts hyper-parameters from kernel arguments.
  • Model reconstruction builds a data-flow graph from command edges and substitutes kernels with corresponding DNN layers using the knowledge base.
  • Parameters are recovered from D and K/D2D commands, including handling of large and asynchronous data transfers.

실험 결과

연구 질문

  • RQ1Can unencrypted PCIe traffic be exploited to completely reconstruct a victim DNN model (architecture, hyper-parameters, and parameters) in privatization deployments?
  • RQ2Is it possible to achieve lossless inference accuracy on reconstructed models across sequential and non-sequential architectures on real GPUs?
  • RQ3What practical steps and reverse-engineering techniques are required to map GPU commands to DNN components and parameters?
  • RQ4How quickly can a complete model be stolen from a single inference instance?

주요 결과

  • The Hermes Attack can completely reconstruct the victim model, including architecture, hyper-parameters, and parameters.
  • The stolen models achieve lossless inference accuracy, matching the original model on 10,000 CIFAR-10/analogous test images.
  • The attack was demonstrated on three NVIDIA GPU platforms (GT 730, GTX 1080 Ti, RTX 2080 Ti) using MNIST, VGG, and ResNet models.
  • Reconstruction from a single image inference completes within 5–17 minutes.
  • Only about 1–2% of captured PCIe packets are useful for the reconstruction, with the rest treated as noise.
  • A two-phase process (offline knowledge base construction and online traffic-driven reconstruction) enables the full model theft.

더 나은 연구,지금 바로 시작하세요

논문 읽기부터 검토까지, 연구 시간을 획기적으로 줄여보세요.

카드 등록 없음 · 무료 플랜 제공

이 리뷰는 AI가 만들고, 인간 에디터가 검토했습니다.