Stealing the Invisible: Unveiling Pre-Trained CNN Models through Adversarial Examples and Timing Side-Channels
Shubhi Shukla, Manaar Alam, Pabitra Mitra, Debdeep Mukhopadhyay
TL;DR
This work reveals a dual-path model-stealing threat against MLaaS by combining adversarial image fingerprints with timing side-channels. A two-stage pipeline first builds architecture-specific templates from adversarial misclassifications across weight-variant models, then uses remote inference timing to prune candidates before final identification via template matching and majority voting. Experiments on 27 CNN/ViT architectures with CIFAR-10 show high effectiveness, achieving 88.8% accuracy with fewer than 20 queries and near-complete shortlist accuracy (98.5%). The findings expose practical vulnerabilities in outsourced ML backends and underscore the need for defenses such as rate limiting and model watermarking to protect intellectual property and service integrity.
Abstract
Machine learning, with its myriad applications, has become an integral component of numerous technological systems. A common practice in this domain is the use of transfer learning, where a pre-trained model's architecture, readily available to the public, is fine-tuned to suit specific tasks. As Machine Learning as a Service (MLaaS) platforms increasingly use pre-trained models in their backends, it's crucial to safeguard these architectures and understand their vulnerabilities. In this work, we present an approach based on the observation that the classification patterns of adversarial images can be used as a means to steal the models. Furthermore, the adversarial image classifications in conjunction with timing side channels can lead to a model stealing method. Our approach, designed for typical user-level access in remote MLaaS environments exploits varying misclassifications of adversarial images across different models to fingerprint several renowned Convolutional Neural Network (CNN) and Vision Transformer (ViT) architectures. We utilize the profiling of remote model inference times to reduce the necessary adversarial images, subsequently decreasing the number of queries required. We have presented our results over 27 pre-trained models of different CNN and ViT architectures using CIFAR-10 dataset and demonstrate a high accuracy of 88.8% while keeping the query budget under 20.
