Preemptive Image Robustification for Protecting Users against Man-in-the-Middle Adversarial Attacks

Seungyong Moon, Gaon An, Hyun Oh Song

Abstract

Deep neural networks have become the driving force of modern image recognition systems. However, the vulnerability of neural networks against adversarial attacks poses a serious threat to the people affected by these systems. In this paper, we focus on a real-world threat model where a Man-in-the-Middle adversary maliciously intercepts and perturbs images web users upload online. This type of attack can raise severe ethical concerns on top of simple performance degradation. To prevent this attack, we devise a novel bi-level optimization algorithm that finds points in the vicinity of natural images that are robust to adversarial perturbations. Experiments on CIFAR-10 and ImageNet show our method can effectively robustify natural images within the given modification budget. We also show the proposed method can improve robustness when jointly used with randomized smoothing.

Introduction

Most research in adversarial machine learning assumes a passive defender: an attacker crafts a perturbation, and the model must try to classify it correctly. However, in real-world scenarios like social media uploads, the user (the defender) has control over the image before it reaches a potential Man-in-the-Middle (MitM) attacker.

Overview of the Man-in-the-Middle adversarial attack and the proposed preemptive defense.

A MitM attacker can intercept an image during transit and apply minute, invisible perturbations to cause a web service (like an auto-tagger) to misclassify it. This isn't just a technical failure; it can lead to "vandalism," where a user's photo is tagged with offensive or harmful labels (e.g., tagging a "dog" as "pornography"). This paper addresses how users can proactively protect their data by exploiting their "first-mover" advantage.

Methodology

The authors introduce two core components to enable this "first-mover" defense:

Preemptive Robustification Algorithm

This is a bi-level optimization process. Given an original image $x_o$, the algorithm searches for a nearby image $x_r$ (within a small budget $\delta$) that sits in a "robust region" of the classifier. Essentially, it looks for a point where any further adversarial perturbation (within budget $\epsilon$) applied by an attacker will fail to change the predicted label.

Illustration of the bi-level optimization process for finding a robust point $x_r$ near the original image $x_o$.

To make this computationally feasible, the authors use a first-order approximation that avoids the memory-heavy second-order derivatives typically required by bi-level problems. The algorithm pushes images toward "robust plateaus" in the loss landscape, making it difficult for an attacker to find a direction leading to misclassification.

Preemptively Robust Training

Standard adversarial training often suffers from a trade-off where increasing robustness decreases "clean" accuracy. The authors propose a new training objective: instead of forcing the model to be robust at the exact location of the training data, they train the model to ensure that a robust point exists within a small neighborhood of the data. This added flexibility allows the model to maintain higher clean accuracy while still supporting preemptive defense.

Experimental Evaluation

The methods were validated on two standard computer vision benchmarks: CIFAR-10 and ImageNet.

Key Results

  • High Robustness: On CIFAR-10 ($L_\infty$ attack), the proposed method achieved 82.88% accuracy under AutoAttack, compared to only 51.68% for standard adversarial training without preemptive robustification.
  • ImageNet Scaling: On the much larger ImageNet dataset ($L_2$ attack), the method improved worst-case adversarial accuracy by over 15% compared to baselines.
  • Clean Accuracy Preservation: Because the preemptive training scheme is more flexible than standard adversarial training, it achieved higher clean accuracy (e.g., 92.57% on CIFAR-10 vs. 90.85% for the baseline).
  • Certified Gains: For smoothed classifiers, the "certified accuracy" jumped from 55.58% to 77.95% on CIFAR-10.

The paper also evaluates an Adaptive White-box Attack, where the adversary knows the defense is in place and tries to "reverse-engineer" the original image $x_o$ from the robustified $x_r$ before applying a standard attack. The authors found that reconstruction is difficult; most reconstructed images ended up on the boundaries of the perturbation ball, failing to provide a "clean" enough base for a successful secondary attack.

Conclusion

This work shifts the adversarial ML paradigm by acknowledging the user's "first-mover" advantage. While the iterative optimization process introduces some computational overhead, the significant gains in both empirical and certified robustness—without sacrificing clean accuracy—make it a promising direction for protecting user data against malicious network intermediaries.

Summary updated

BibTeX
@inproceedings{moon2022preemptive,
  author = {Seungyong Moon and Gaon An and Hyun Oh Song},
  title = {{Preemptive Image Robustification for Protecting Users against Man-in-the-Middle Adversarial Attacks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=gqBl1wT8QM},
}
Figure