Adversarial Examples versus Cloud-Based Detectors: A Black-Box Empirical Study

Xurong Li, Shouling Ji, Meng Han, Juntao Ji, Zhenyu Ren, Yushan Liu, Chunming Wu

Abstract

Commercial Computer Vision as a Service (CVaaS) platforms are widely utilized for automated content moderation, yet their robustness against adversarial manipulation remains a critical concern. This study presents a comprehensive empirical evaluation of five major cloud-based detectors—Google Cloud Vision, Amazon Rekognition, Microsoft Azure Computer Vision, Baidu AI, and Alibaba Cloud—under black-box adversarial conditions. By introducing subject-based targeting via semantic segmentation, the researchers demonstrate that even complex, multi-stage detection pipelines are highly susceptible to adversarial examples. The findings reveal success rates exceeding 90% for sophisticated iterative attacks and near 100% for simple image processing perturbations, often requiring minimal queries while maintaining high visual fidelity.

Introduction

As the volume of user-generated content grows, digital platforms increasingly rely on "Computer Vision as a Service" (CVaaS) for automated moderation. These cloud-based detectors are tasked with identifying prohibited content, such as violence, pornography, or sensitive political figures. Because these systems are proprietary "black boxes" with unknown architectures and training data, they are often perceived as more robust than open-source classifiers. However, this research challenges that assumption, demonstrating that the complexity of detection pipelines—which involve localization, segmentation, and classification—actually provides a significant surface area for adversarial exploitation.

The Challenge of Attacking Detectors

Most existing research into adversarial examples focuses on image classifiers, which assign a single label to an entire image. In contrast, real-world cloud services utilize detectors that must identify specific bounding boxes and perform regional analysis. Attacking these systems in a black-box setting presents two primary challenges:

  1. Zero Internal Knowledge: The attacker has no access to gradients, model parameters, or training datasets.
  2. Query Efficiency: Cloud providers often implement rate limits or cost barriers, necessitating attacks that can succeed with a limited number of API calls.

Methodology: Subject-Based Targeting

The core innovation of this study is the shift from global perturbations to subject-based targeting. The researchers argue that detectors are hyper-focused on the primary "subject" of an image (e.g., the person in a violent scene). By using a local Fully Convolutional Network (FCN) to perform semantic segmentation, the attackers can isolate the subject and concentrate their perturbations where they are most likely to influence the detector's confidence scores.

Attack Strategies

The authors proposed and tested four distinct attack vectors:

  • Image Processing (IP) Attack: This involves applying global filters such as Gaussian noise, binarization, or brightness adjustments. Despite their simplicity, these attacks are remarkably effective at disrupting the low-level features or "signatures" that detectors rely on.
  • Single-Pixel (SP) Attack: This iterative approach modifies a minimal number of pixels. The study found that modifying pixels specifically within the segmented "subject region" is significantly more effective than random pixel modification.
  • Subject-based Local-Search (SBLS) Attack: A greedy search algorithm that identifies specific pixels within the subject region that cause the most significant drop in the detector's confidence score. These pixels are then perturbed iteratively until the detector is bypassed.
  • Subject-based Boundary (SBB) Attack: A decision-based attack that begins with a heavily perturbed image (which the detector classifies as "normal") and gradually moves it toward the original "illegal" image. The algorithm ensures the image remains classified as "normal" while maximizing visual similarity to the original prohibited content.

Experimental Setup and Datasets

The study utilized two primary datasets:

  1. Validation Set: 100 animal images from ImageNet used to verify the accuracy of the semantic segmentation approach.
  2. Target Set: 300 "illegal" images (100 each for pornography, violence, and politicians) manually curated from search engines to test the specific moderation APIs of the five cloud providers.

Key Results and Analysis

Success and Efficiency

The empirical results were sobering for cloud providers. Image Processing (IP) attacks achieved a success rate of nearly 100% across almost all tested platforms. More sophisticated attacks, such as SBLS and SBB, were not only successful but highly efficient. For instance, bypassing Baidu’s violence detector required an average of only 200 queries and the modification of just 38 pixels.

Visual Fidelity

Crucially, the adversarial images remained high-quality and clearly recognizable to humans. Most successful attacks maintained a Peak Signal-to-Noise Ratio (PSNR) > 20dB and a Structural Similarity Index (SSIM) > 0.9. This discrepancy—where an image is clearly "illegal" to a human but "normal" to an AI—highlights a fundamental gap in current computer vision robustness.

Platform Vulnerabilities and Priorities

The study noted that different platforms exhibited varying levels of resilience based on the content type:

  • Azure was found to be the most vulnerable to pornography detection bypasses, with a 54% success rate even under strict query limits.
  • Google showed higher resilience to violent images, potentially reflecting different regional moderation priorities or training focuses.
  • Baidu and Alibaba were more resilient to pornographic content, likely due to the stringent regulatory requirements for content moderation in the Chinese market.

Discussion: Complexity vs. Security

A significant takeaway from this research is that complexity does not equal security. While cloud detectors involve multiple modules (segmentation, object detection, and classification), these layers do not necessarily act as a defense-in-depth. Instead, the "subject" of the image remains an Achilles' heel; minor, human-imperceptible changes to the subject region can cause the entire multi-stage pipeline to fail.

Conclusion and Future Directions

The vulnerability of commercial CVaaS platforms to black-box attacks necessitates a shift in how these systems are defended. The authors suggest that cloud providers must move beyond simple input filters, which often degrade the accuracy of legitimate images (the utility-security trade-off). Instead, more proactive measures are required, such as:

  • Adversarial Training: Incorporating adversarial examples directly into the training pipeline to improve model robustness.
  • Input Randomization: Implementing stochastic transformations to the input images to make it harder for attackers to probe the "black box" and find stable adversarial perturbations.

This study serves as a critical reminder that as AI becomes more integrated into the infrastructure of the internet, the arms race between adversarial attackers and defenders is only beginning.

Summary updated

BibTeX
@article{li2019adversarial,
  author = {Xurong Li and Shouling Ji and Meng Han and Juntao Ji and Zhenyu Ren and Yushan Liu and Chunming Wu},
  title = {{Adversarial Examples versus Cloud-Based Detectors: A Black-Box Empirical Study}},
  journal = {IEEE Trans. Dependable Secur. Comput.},
  year = {2019},
  doi = {10.1109/tdsc.2019.2943467},
}
Figure