Backdoor Attack through Machine Unlearning

Peixin Zhang, Jun Sun, Mingtian Tan, Xinyu Wang

Abstract

In recent years, the security issues of artificial intelligence have become increasingly prominent due to the rapid development of deep learning research and applications. Backdoor attack is an attack targeting the vulnerability of deep learning models, where hidden backdoors are activated by triggers embedded by the attacker, thereby outputting malicious predictions that may not align with the intended output for a given input. In this work, we propose a novel black-box backdoor attack based on machine unlearning (BAU). The attacker first augments the training set with carefully designed samples, including poison and mitigation data, to train a 'benign' model. Then, the attacker posts unlearning requests for the mitigation samples to remove the impact of relevant data on the model, gradually activating the hidden backdoor. Since backdoors are implanted during the iterative unlearning process, it significantly increases the computational overhead of existing defense methods for backdoor detection or mitigation. To address this new security threat, we propose two methods for detecting or mitigating such malicious unlearning requests. Experimental results indicate that our attack approach can successfully implant backdoors into the model, and while sharding increases the difficulty of the attack, it also reduces the effectiveness of detection algorithms.

Introduction: The "Right to be Forgotten" as a Vulnerability

Deep Learning models are notoriously vulnerable to backdoor attacks, where an attacker injects "poison" samples into the training set. The resulting model behaves normally on clean data but outputs a malicious target label when it encounters a specific "trigger" (e.g., a small pixel pattern). Traditionally, these attacks are detected by scanning models before deployment.

However, a new gap has emerged with the rise of Machine Unlearning. Regulations like the GDPR grant users the "right to be forgotten," requiring organizations to remove specific user data from trained models. This research introduces BAU (Backdoor Attack through Unlearning), a novel threat that exploits this privacy-preserving feature to covertly activate a hidden backdoor in a deployed system that previously passed all security checks.

Methods: The BAU Attack Framework

The BAU attack is a two-phase black-box strategy designed to bypass initial security audits:

  1. The Infection Phase: The attacker augments the training set with two types of data:
  2. Poison Data: Samples containing the trigger and a malicious target label.
  3. Mitigation Data: Samples containing the same trigger but the correct ground-truth label. Initially, the mitigation data "cancels out" the poison data's influence. The resulting model ignores the trigger and appears benign to security auditors.

  4. The Activation Phase: Once the model is deployed, the attacker submits legitimate unlearning requests for the mitigation samples. As the model "forgets" the correct associations for the trigger, the influence of the hidden poison data is revealed, gradually activating the backdoor.

The BAU attack workflow across initial training, unlearning request, and the final activated model.

The study evaluates this against both Exact Unlearning (retraining from scratch) and Approximate Unlearning, specifically the SISA (Sharded, Isolated, Sliced, and Aggregated) framework, which uses data sharding for efficiency.

Key Insights

  • The Benign Trojan Horse: Unlike traditional attacks where the model is malicious from the start, a BAU-infected model is genuinely benign at deployment. It successfully evades industry-standard tools like Neural Cleanse or STRIP because the mitigation data effectively "cloaks" the trigger.
  • Privacy as a Vector: The attack exploits the legal and technical infrastructure of privacy. Because unlearning requests are often processed automatically to comply with regulations, they provide a low-suspicion channel for the attacker.
  • The Sharding Double-Edge: Data sharding (splitting data into independent sub-models) makes the attack harder because the attacker must infect multiple shards to maintain a high success rate. However, sharding also complicates defense, as sub-models trained on less data are naturally noisier, making malicious requests harder to distinguish.

Key Results and Defense

The authors evaluated BAU on benchmarks including MNIST, FMNIST, GTSRB, and CIFAR10.

  • High Success, Low Visibility: In targeted scenarios, the attack achieved a 100% Attack Success Rate (ASR) after unlearning, starting from 0% at deployment.
  • Minimal Accuracy Trade-off: The attack has a negligible impact on standard accuracy (typically <0.34% loss), making it invisible to performance monitoring.
  • Evasion of Existing Defenses: Infected models yielded an Anomaly Index of ~1.06 in Neural Cleanse, well below the threshold of 2.0 required to flag a backdoor.
Attack success rate on the GTSRB dataset as mitigation data is unlearned, showing the impact of different sharding levels (S).

To counter this threat, the authors proposed two defenses:

  • Model Uncertainty: Using Gini impurity to detect if unlearning requests involve samples the model is "suspiciously" certain or uncertain about.
  • Sub-Model Similarity: In sharded systems, checking for inconsistent predictions across different sub-models for the unlearning request.

Limitations and Future Work

While effective, the BAU attack requires more poison/mitigation samples in sharded (SISA) environments to maintain high ASR. Additionally, the attack assumes the adversary can contribute a small amount of data to the initial training set. Future research will explore making defenses more robust in sharded environments and extending BAU to other domains such as Natural Language Processing (NLP).

Summary updated

BibTeX
@misc{zhang2023backdoor,
  author = {Peixin Zhang and Jun Sun and Mingtian Tan and Xinyu Wang},
  title = {{Backdoor Attack through Machine Unlearning}},
  year = {2023},
  eprint = {2310.10659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.10659},
}
Figure