Privacy Inference-Empowered Stealthy Backdoor Attack on Federated Learning under Non-IID Scenarios

Haochen Mei, Gaolei Li, Jun Wu, Longfei Zheng

TL;DR

This paper introduces a novel backdoor attack for Federated Learning (FL) that leverages privacy inference to overcome the challenges posed by non-IID data distributions. The proposed "Privacy Inference-Empowered Stealthy Backdoor Attack" (PI-SBA) uses GANs to generate diverse data, improving the attacker's local distribution, and a source-specified learning strategy to precisely target specific classes, demonstrating effectiveness and stealth against defenses.

What Problem Does This Paper Address?

Federated Learning (FL) enables collaborative model training without sharing raw data, offering privacy benefits. However, real-world FL scenarios often involve non-IID (Non-Independent and Identically Distributed) data, meaning clients have different data distributions. This heterogeneity significantly hinders the effectiveness of traditional backdoor attacks, which aim to subtly manipulate a model's behavior. Furthermore, FL systems are vulnerable to privacy inference attacks where malicious clients can attempt to reconstruct private data from model updates. This paper addresses the critical gap of understanding and exploiting the interplay between data heterogeneity, backdoor attacks, and privacy inference in FL, proposing an attack that thrives in these challenging conditions.

Methods

The core of the proposed PI-SBA attack involves two main stages:

  1. GANs-based Diverse Data Inference: To combat the lack of diverse data in non-IID settings, the attacker uses a Generative Adversarial Network (GAN). This GAN is trained to generate a supplementary dataset that bridges the gap between the attacker's local data distribution and the global distribution. The GAN's objective function is carefully designed to ensure both authenticity (generated samples are realistic) and diversity (samples span across various classes and within classes). A "pre-poisoning" strategy is also employed to further improve the quality of generated data.
  2. Source-Specified Backdoor Learning (SSBL): After generating the supplementary dataset, the attacker employs a more sophisticated backdoor injection strategy. SSBL allows the attacker to arbitrarily select specific classes (victim classes) that should be misclassified when a trigger is present, while leaving other classes unaffected. This is achieved by defining a custom loss function that balances the misclassification of specified classes, the correct classification of non-specified classes, and the overall model accuracy. This targeted approach makes the attack more insidious and harder to detect.

The PI-SBA scheme is designed to be modular and can be integrated with existing backdoor attack techniques to enhance their effectiveness and stealth in non-IID FL environments.

Datasets

The paper evaluates the proposed PI-SBA scheme on three widely used image classification datasets:

  • MNIST: A dataset of handwritten digits.
  • CIFAR10: A dataset of 10 common object classes.
  • YouTube Aligned Face (YAF): A dataset for face recognition tasks.

The experiments simulate non-IID scenarios by partitioning the data based on label distribution skew, a common characteristic of real-world FL systems.

Key Insights and Ideas

  • Data Heterogeneity is a Double-Edged Sword: While data heterogeneity is a major obstacle for backdoor attacks, the PI-SBA demonstrates that it can be leveraged. The GAN-based data inference helps the attacker overcome this heterogeneity, making the attack more robust.
  • Privacy Inference as a Precursor to Backdoors: The paper highlights how privacy inference techniques, typically used for data extraction, can be repurposed to generate crucial data for more effective backdoor attacks in FL.
  • Targeted Attacks are More Stealthy: The SSBL strategy, by precisely targeting specific classes, offers a more realistic and harder-to-detect attack compared to generic backdoors. This allows attackers to selectively disrupt competitors or specific user groups.
  • GANs are Powerful Tools for Attackers: The success of the GAN-based data generation underscores the potential for generative models to be used maliciously in FL to circumvent security measures.

Key Results

  • The PI-SBA scheme significantly improves the attack success rate (ASR) of regular backdoor attacks by 20%-60% under various heterogeneity indices.
  • The SSBL strategy demonstrates effective "differential treatment," successfully misclassifying specified classes while maintaining high accuracy on non-specified classes.
  • The proposed attack scheme successfully evades two state-of-the-art defense methods, Neural Cleanse and Activation Clustering, particularly when the number of specified source classes is low.
  • The amplification factor of malicious updates plays a crucial role, with a 3x amplification increasing ASR by up to 50% on MNIST.

Limitations and Future Work

  • Defense Against Sophisticated Defenses: While the attack evades current defenses, the authors acknowledge that more vigilant defenders might employ more aggressive strategies like trigger reversal for all possible source-target pairs or outright backdoor elimination.
  • Data Inference Defense: The paper notes that as long as clients have white-box access to global models, data inference attacks are difficult to prevent entirely. Future work could focus on restricting client access to global models during training.
  • Cross-Device FL: The current work focuses on cross-silo FL. Extending the attack to the more challenging cross-device FL scenario, with millions of devices and smaller datasets, is a promising future direction.
  • Aggregation Algorithms: The impact of advanced aggregation algorithms on backdoor effectiveness in non-IID FL warrants further investigation.

Summary updated

Abstract

Federated learning (FL) naturally faces the problem of data heterogeneity in real-world scenarios, but this is often overlooked by studies on FL security and privacy. On the one hand, the effectiveness of backdoor attacks on FL may drop significantly under non-IID scenarios. On the other hand, malicious clients may steal private data through privacy inference attacks. Therefore, it is necessary to have a comprehensive perspective of data heterogeneity, backdoor, and privacy inference. In this paper, we propose a novel privacy inference-empowered stealthy backdoor attack (PI-SBA) scheme for FL under non-IID scenarios. Firstly, a diverse data reconstruction mechanism based on generative adversarial networks (GANs) is proposed to produce a supplementary dataset, which can improve the attacker's local data distribution and support more sophisticated strategies for backdoor attacks. Based on this, we design a source-specified backdoor learning (SSBL) strategy as a demonstration, allowing the adversary to arbitrarily specify which classes are susceptible to the backdoor trigger. Since the PI-SBA has an independent poisoned data synthesis process, it can be integrated into existing backdoor attacks to improve their effectiveness and stealthiness in non-IID scenarios. Extensive experiments based on MNIST, CIFAR10 and Youtube Aligned Face datasets demonstrate that the proposed PI-SBA scheme is effective in non-IID FL and stealthy against state-of-the-art defense methods.
BibTeX
@misc{mei2023privacy,
  author = {Haochen Mei and Gaolei Li and Jun Wu and Longfei Zheng},
  title = {{Privacy Inference-Empowered Stealthy Backdoor Attack on Federated Learning under Non-IID Scenarios}},
  year = {2023},
  eprint = {2306.08011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.08011},
}
Figure