Old Tricks, New Models: How Simple Image Transformations Break Modern AI-based Content Moderation

Marco Alecci, Francesco Marchiori, Iyiola Emmanuel Olatunji, Tegawendé F. Bissyandé, Jacques KleinarXiv 2026

TL;DR

Modern AI content moderation APIs built on large foundation models can be easily bypassed using simple, inexpensive image transformations like color inversion, grayscale conversion, or slight blurring. These model-agnostic changes flip "unsafe" labels to "safe" while keeping the content perfectly recognizable to humans, revealing that foundation models alone do not provide a secure boundary for content safety.

What Problem Does This Paper Address?

Social media platforms rely heavily on automated content moderation to filter out explicit, violent, or harmful images at scale. Recently, the industry has shifted from traditional, task-specific classifiers to advanced multimodal APIs powered by foundation models (such as OpenAI's GPT-4o-based moderation tool).

While these new models offer broader policy coverage and better contextual understanding, it remains unclear if they are actually more robust against adversarial manipulation. Because these commercial services operate as black boxes, traditional gradient-based attacks are difficult to execute. The authors investigate whether simple, cheap, and model-agnostic visual manipulations can easily trick these state-of-the-art safety filters.

Methods

The authors perform a large-scale black-box evaluation using seven simple image transformations that require zero knowledge of the target system, gradients, or surrogate models. These are split into two types:

  • One-shot transformations: Fixed modifications including Grayscale Filter, Invert Color, and Split-Merge RGB (reordering color channels).
  • Intensity-dependent transformations: Modifications adjusted by an intensity parameter ($\epsilon$), including Box Blur, Gaussian Blur, Gaussian Noise, and Salt and Pepper noise.

To ensure the transformed images remain recognizable and high-quality, the authors use the Multi-Scale Structural Similarity Index Measure (MS-SSIM) as a constraint, measuring the Attack Success Rate (ASR) across various similarity thresholds.

Datasets

The study evaluates robustness across three distinct datasets representing different types of unsafe content:

  1. LSPD (Large-Scale Pornographic Dataset): Used to evaluate sexually explicit visual content (a random sample of 1,000 images was used).
  2. UnsafeBench: A policy-oriented safety benchmark from which the authors extracted images under the sexual, violence, and self-harm categories.
  3. Hateful Memes: A multimodal dataset created by Meta where harmful meaning emerges from the interplay between embedded text and visual context.

Key Insights and Ideas

  • Foundation Models Aren't Inherently Robust: Upgrading from traditional classifiers to massive foundation-model-based APIs expands semantic understanding but fails to secure the safety perimeter against basic visual perturbations.
  • Asymmetry of Effort: There is a massive imbalance between attacker effort and defender burden. Attackers can deploy these transformations instantly and cheaply using standard libraries (like PIL), while defenders must implement complex, computationally expensive preprocessing or multi-stage verification pipelines.
  • Vulnerability Varies by Harm Category: Content involving self-harm and multimodal memes is significantly more fragile and easier to slip past moderation filters than standard explicit or violent imagery.

Key Results

  • All three evaluated commercial services (OpenAI omni-moderation, Amazon Rekognition, and Google Cloud SafeSearch) proved vulnerable to simple transformations.
  • One-Shot Attacks: Simply inverting colors yielded an Attack Success Rate (ASR) of 43.97% against Amazon Rekognition, 8.11% against OpenAI, and 6.29% against Google SafeSearch on the LSPD dataset.
  • Intensity-Dependent Attacks: Even under strict similarity constraints where images remain highly recognizable (MS-SSIM $\tau = 0.6$), Salt and Pepper noise achieved a 45.53% ASR against Amazon Rekognition and over 30% against both Google and OpenAI.
Figure 2: ASR of intensity-dependent transformations across different minimum acceptable MS-SSIM thresholds on LSPD.
  • Within the UnsafeBench dataset, self-harm was consistently the most vulnerable category to these evasions, followed by sexual content, while violence was the most robust.

Limitations and Future Work

  • Cost and Scale Constraints: Due to the financial overhead of querying commercial APIs at scale, the comprehensive cross-dataset and category-level analysis was restricted to OpenAI's omni-moderation API (which is currently free under certain limits).
  • Scope of Models: The study focused purely on commercial black-box APIs. Open-weight safety models like LLaVAGuard or ShieldGemma were not evaluated, representing an open avenue for future research.
  • Dataset Alignment: The benchmarks used may not fully capture the evolving, real-world distribution of harmful content or perfectly align with each commercial provider's internal policy definitions.

Summary updated

BibTeX
@misc{alecci2026old,
  author = {Marco Alecci and Francesco Marchiori and Iyiola Emmanuel Olatunji and Tegawendé F. Bissyandé and Jacques Klein},
  title = {{Old Tricks, New Models: How Simple Image Transformations Break Modern AI-based Content Moderation}},
  year = {2026},
  eprint = {2607.28187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.28187},
}
Figure