Post-breach Recovery: Protection against White-box Adversarial Examples for Leaked DNN Models

Shawn Shan, Wenxin Ding, Emily Wenger, Haitao Zheng, Ben Y. Zhao · DOI

TL;DR

This paper introduces "Neo," a novel system designed to protect deep neural networks (DNNs) from adversarial attacks after their models have been leaked due to server breaches. Neo achieves this by creating slightly modified versions of the DNN and employing an inference-time filter that detects and removes adversarial examples by identifying their "overfitting" to previously leaked model versions. This approach demonstrates significant resilience, recovering from multiple breaches and maintaining high accuracy.

What Problem Does This Paper Address?

The widespread adoption of deep neural networks (DNNs) in critical applications like medical imaging and finance presents a significant security challenge: what happens when a proprietary DNN model is compromised and leaked? A leaked model grants attackers "white-box" access, enabling them to craft highly effective adversarial examples – inputs subtly altered to fool the DNN into making incorrect predictions. This threat is particularly concerning because existing defenses against such attacks are often brittle and can be bypassed by adaptive attackers. For organizations that have invested heavily in developing and training these models, a breach can lead to a catastrophic loss of investment and trust. This paper addresses the problem of "post-breach recovery" for DNN services, aiming to restore functionality and robustness even after a model has been compromised.

Methods

Neo employs a two-pronged approach:

  1. Version-Based Recovery: When a DNN model (let's call it $F_i$) is leaked, Neo retires it and deploys a new version, $F_{i+1}$. This new version is trained using the original task data but augmented with "hidden distributions." These hidden distributions are generated using Generative Adversarial Networks (GANs) and are unique to each model version. The key idea is that these hidden distributions subtly shift the DNN's classification surface, creating small, controlled differences between versions. This makes adversarial examples optimized for one version less effective on another.
  2. Inference-Time Filtering: Along with the new model version ($F_{i+1}$), Neo deploys a defense mechanism ($D_{i+1}$). This filter leverages the "optimality gap" created by the versioning. Adversarial examples generated from a leaked model ($F_j$, where $j \le i$) will tend to "overfit" to that specific leaked model's classification surface. When these examples are presented to the new version ($F_{i+1}$), their loss on $F_{i+1}$ will be significantly higher than their loss on the original leaked model ($F_j$). The filter calculates this loss difference across all previously leaked models and flags inputs exhibiting a large difference as adversarial.

Datasets

The paper evaluates Neo on four popular image classification datasets:

  • CIFAR10: A benchmark for object recognition with 10 classes.
  • SkinCancer: A dataset of dermatoscopic images for skin cancer classification.
  • YTFace: A dataset for face recognition.
  • ImageNet: A large-scale dataset for computer vision with 1,000 classes.

The hidden distributions used for version generation were synthesized using a GAN trained on the CelebA dataset (for facial images).

Key Insights and Ideas

  • Adversarial Examples Overfit to Leaked Models: The core insight is that adversarial examples, while potent against a specific model, tend to "overfit" to that model's unique characteristics. When a model is leaked, attackers optimize for it. Neo exploits this by introducing subtle changes in subsequent model versions, making the previously optimized adversarial examples less effective and detectable.
  • Loss Difference as a Detector: The difference in loss values for an input across different model versions serves as a powerful indicator of whether the input is adversarial. Benign inputs will have similar loss values across versions, while adversarial inputs will show a significant disparity.
  • GANs for Controlled Model Variation: Using GANs to generate hidden distributions provides a systematic and scalable way to create diverse model versions with controlled shifts in their classification surfaces. This allows for a large "version space" to draw from.
  • Stronger Attacks Can Be Easier to Detect: Counter-intuitively, Neo performs better against stronger adversarial attacks (like CW and EAD) because these attacks tend to overfit more aggressively to the leaked models, making their "optimality gap" more pronounced and thus easier for Neo's filter to detect.

Key Results

  • High Accuracy: Neo's versioned models maintain high benign classification accuracy, with only a slight drop (≤ 0.6%) compared to standard models.
  • Effective Single-Breach Filtering: Neo's filter achieves a success rate of over 99% against common white-box attacks (PGD, CW, EAD) at a 5% false positive rate.
  • Robustness to Multiple Breaches (NBR): Neo demonstrates strong resilience against repeated breaches, achieving an average Number of Breaches Recoverable (NBR) of 7 to 10 across various tasks and attacks. This means the system can withstand multiple model leaks and still effectively defend against attacks generated from those leaked models.
  • Resilience Against Adaptive Attacks: Neo shows remarkable robustness against a variety of adaptive attacks designed to circumvent its defenses, with NBR reductions typically being minimal (less than 1).
  • Low Inference Overhead: While overhead increases linearly with the number of breached versions, it remains manageable, especially with parallel processing.

Limitations and Future Work

  • Threat of Advanced Adaptive Attacks: The authors acknowledge that more sophisticated adaptive attacks could potentially be designed to bypass Neo. Evaluating stronger adaptive attacks remains an area for future work.
  • Deployment of All Previous Versions: The current design requires the inference system to process inputs through all previously breached models to calculate the loss difference. This increases inference overhead and simplifies an attacker's job if they manage to breach a new version. The paper briefly discusses an alternative approach but deems it computationally prohibitive.
  • Finite Recovery Capacity: Neo's ability to recover is not infinite. As the number of breaches increases, its effectiveness eventually degrades. The paper positions Neo as an initial step towards stronger recovery properties.
  • Domain Specificity: The current implementation of hidden distribution generation using GANs is tailored for computer vision tasks. Extending Neo to other domains (e.g., natural language processing) would require adapting the GAN or using alternative generation methods.

Summary updated

BibTeX
@inproceedings{shan2022post,
  author = {Shawn Shan and Wenxin Ding and Emily Wenger and Haitao Zheng and Ben Y. Zhao},
  title = {{Post-breach Recovery: Protection against White-box Adversarial Examples for Leaked DNN Models}},
  booktitle = {CCS},
  year = {2022},
  doi = {10.1145/3548606.3560561},
}
Figure