Everyone Can Attack: Repurpose Lossy Compression as a Natural Backdoor Attack

Sze Jue Yang, Quang Nguyen, Chee Seng Chan, Khoa DoanarXiv 2023 · DOI

TL;DR

This paper reveals a surprisingly simple yet potent backdoor attack method: leveraging common lossy image compression tools. By simply re-compressing images, attackers can embed imperceptible triggers that cause deep learning models to misbehave, demonstrating that sophisticated backdoor attacks are accessible to anyone.

What Problem Does This Paper Address?

Deep learning models, especially neural networks, are increasingly used in critical applications. However, they are vulnerable to "backdoor attacks," where a model is secretly trained to perform a specific malicious action when a particular trigger is present in the input. Traditionally, launching such attacks required significant expertise in designing stealthy and effective trigger mechanisms, making them seem like a threat only for highly skilled adversaries. This paper challenges that assumption by demonstrating that a readily available tool – lossy image compression – can be repurposed to create powerful backdoor attacks with minimal effort, thus democratizing the threat.

Methods

The core of the proposed attack lies in repurposing the natural artifacts generated by lossy image compression algorithms (like JPEG or WEBP) as the backdoor trigger. Instead of designing a complex trigger generation process, the attacker simply takes clean images, applies lossy compression with a chosen quality setting, and uses these compressed images to poison the training dataset. The key insight is that the compression artifacts, while visually imperceptible to humans, are sufficient to act as a trigger for the neural network. The attack can be applied in various settings, including "all-to-one" (all triggers lead to a single target class), "all-to-all" (triggers lead to shifted classes), and "clean label" (where the original labels are preserved, making the attack even stealthier).

Datasets

The authors evaluated their attack on four widely used benchmark datasets for image classification:

  • MNIST: A dataset of handwritten digits.
  • CIFAR-10: A dataset of 10 classes of everyday objects.
  • GTSRB: A dataset of German traffic signs.
  • CelebA: A dataset of celebrity faces.

Key Insights and Ideas

  • Democratization of Backdoor Attacks: The most significant insight is that sophisticated backdoor attacks are no longer the domain of expert adversaries. Anyone with access to basic image editing tools can now launch a stealthy and effective attack.
  • Lossy Compression as a Natural Trigger: The paper highlights that the "imperfections" of lossy compression are not just artifacts but can be effectively weaponized as triggers. This is "natural" because the compression process itself is not designed for malicious purposes.
  • Stealthiness through Natural Artifacts: The compression artifacts are visually indistinguishable from normal image variations, making them highly stealthy to human inspection.
  • Transferability Across Compression Algorithms: The attack's effectiveness can transfer between different lossy compression algorithms, increasing its versatility and threat potential.
  • Low Poisoning Rate Efficacy: The attack achieves high success rates even with very low poisoning rates, particularly in the clean-label setting, making it harder to detect during data preparation.

Key Results

  • The proposed attack consistently achieved 100% attack success rate (ASR) on the tested benchmark datasets (MNIST, CIFAR-10, GTSRB, CelebA).
  • In the clean-label setting, the attack achieved almost 100% ASR with as little as 10% poisoning rate.
  • The attack demonstrated transferability between JPEG and WEBP compression algorithms.
  • The generated triggers were shown to be stealthy, with similar visual appearance to clean images and comparable entropy values to clean models when evaluated against defenses like STRIP.
  • The attack proved resilient against common defense mechanisms like Fine Pruning and Neural Cleanse.

Limitations and Future Work

  • Dataset Access Assumption: The attack assumes the adversary has access to modify the training dataset, which is a common but not universal assumption in backdoor attack research.
  • Model Access: While the paper focuses on black-box scenarios where the adversary doesn't need model architecture details, it still relies on data poisoning.
  • Future Work: The authors urge researchers and practitioners to investigate this new line of attack and develop relevant mitigation strategies. They also suggest exploring the transferability of this attack to other types of data or models. The paper implies that further research into the interaction between compression quality and attack effectiveness is warranted.

Summary updated

BibTeX
@misc{yang2023everyone,
  author = {Sze Jue Yang and Quang Nguyen and Chee Seng Chan and Khoa Doan},
  title = {{Everyone Can Attack: Repurpose Lossy Compression as a Natural Backdoor Attack}},
  year = {2023},
  eprint = {2308.16684},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.16684},
}
Figure