HoneypotNet: Backdoor Attacks Against Model Extraction

Yixu Wang, Tianle Gu, Yan Teng, Yingchun Wang, Xingjun Ma

Abstract

Model extraction attacks pose a significant threat to the intellectual property of Machine Learning as a Service (MLaaS) providers. Traditional defenses are often passive or degrade model utility for legitimate users. We present HoneypotNet, a proactive "attack as defense" framework that transforms the extraction process into a self-poisoning act. By replacing the victim model's classification layer with a specialized "honeypot layer," HoneypotNet injects a hidden backdoor into any substitute model trained on the victim's outputs. This backdoor enables robust ownership verification and the potential for remote disruption of stolen models. Our evaluation across multiple benchmarks demonstrates high attack success rates (up to 92.35%) while maintaining original model accuracy and resisting common pruning-based countermeasures.

1. Introduction

The rise of Machine Learning as a Service (MLaaS) has enabled widespread access to powerful models via APIs. However, this accessibility facilitates model extraction attacks, where adversaries query an API to train a local "substitute" model that mimics the victim's functionality. This represents a critical risk to intellectual property and competitive advantage.

Existing defenses generally fall into two categories: passive methods, such as watermarking or query monitoring, which can often be bypassed or raise privacy concerns; and active methods, such as output perturbation, which frequently degrade performance for legitimate users. HoneypotNet addresses this gap by ensuring that the extracted model is inherently compromised from the moment of its creation, without penalizing honest users.

2. The HoneypotNet Framework

HoneypotNet operates on the principle of "attack as defense." Instead of attempting to block extraction, it ensures that the resulting substitute model inherits a specific, hidden vulnerability.

2.1 The Honeypot Layer

The core innovation is the replacement of the victim model's final classification layer with a specialized "honeypot layer." This layer is fine-tuned to produce specific probability vectors that appear normal but contain latent poisoning information. When an attacker uses these soft labels to train their substitute model, they unwittingly bake a backdoor into their own system.

2.2 Bi-Level Optimization (BLO)

To implement this defense without requiring the original training data, the authors utilize a three-step Bi-Level Optimization framework:

  1. Extraction Simulation: The defender trains a "shadow model" to mimic the victim, simulating the attacker's likely training process.
  2. Trigger Generation: Universal Adversarial Perturbations (UAPs) are used to create a trigger—a subtle noise pattern. Unlike traditional backdoor patches (e.g., visible squares), UAPs are "poisoning-free" triggers that exploit inherent adversarial vulnerabilities in neural networks.
  3. Finetuning: The honeypot layer is adjusted so that while clean image accuracy is preserved, outputs for images containing the UAP trigger are forced to correlate strongly with a specific "target class."

This ensures that any substitute model trained on these outputs will inherit the same sensitivity to the secret UAP trigger, a phenomenon driven by the transferability of adversarial vulnerabilities across different architectures.

3. Experimental Evaluation

3.1 Setup and Datasets

The researchers evaluated HoneypotNet using several standard benchmarks, including CIFAR10, CIFAR100, Caltech256, and CUBS200. The victim models were based on the ResNet34 architecture. To simulate a realistic attack, the adversary used the ImageNet dataset (1.2M images) for querying. Conversely, the defender used a significantly smaller subset (5,000 images) from the CC3M dataset to train the honeypot layer, demonstrating the defense's effectiveness even when the defender has limited knowledge of the attacker's data.

3.2 Key Results

  • Attack Success Rate (ASR): HoneypotNet successfully injected backdoors into substitute models with success rates ranging from 56.99% to 92.35% across various extraction methods, including KnockoffNets and ActiveThief.
  • Utility Preservation: The victim model's accuracy on clean data remained virtually unchanged, ensuring that the defense does not interfere with legitimate service quality.
  • Hard-Label Resilience: Against sophisticated attacks like "BlackBox Dissector," which only utilize the top predicted label, HoneypotNet maintained an ASR exceeding 78%.
  • Robustness: The injected backdoors proved resistant to Reconstructive Neuron Pruning (RNP), a common technique used by attackers to identify and remove suspected backdoors from a model.

4. Discussion and Limitations

HoneypotNet provides a powerful deterrent by allowing model owners to verify ownership or even remotely disable a stolen model by applying the secret UAP trigger. However, certain limitations remain. The effectiveness of the backdoor (ASR) varies depending on the substitute model's architecture; for instance, performance was lower when the attacker used a DenseNet121 compared to a VGG16. Additionally, there is a trade-off between the size of the UAP trigger and its stealthiness; larger triggers are more effective but may eventually impact the victim model's clean accuracy.

5. Conclusion

HoneypotNet represents a shift in model protection, moving from passive monitoring to active, stealthy compromise of the attacker's assets. By leveraging the transferability of adversarial perturbations and the mechanics of soft-label training, it provides a robust defense against model extraction. Future work will focus on improving transferability across diverse architectures through the use of more complex shadow model ensembles during the optimization process.

Summary updated

BibTeX
@inproceedings{wang2025honeypotnet,
  author = {Yixu Wang and Tianle Gu and Yan Teng and Yingchun Wang and Xingjun Ma},
  title = {{HoneypotNet: Backdoor Attacks Against Model Extraction}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i8.32872},
}
Figure