In-the-Wild Camouflage Attack on Vehicle Detectors through Controllable Image Editing

Xiao Fang, Yiming Gong, Stanislav Panev, Celso de Melo, Shuowen Hu, Shayok Chakraborty, Fernando De la TorrearXiv 2026

This paper introduces CtrlCamo, a novel framework that treats adversarial camouflage as a controllable image-editing task. By leveraging diffusion models and ControlNet, the authors generate vehicle patterns that effectively hide cars from AI detectors while remaining visually natural—or "stealthy"—to human observers.

TL;DR

CtrlCamo uses fine-tuned ControlNets to synthesize adversarial camouflage directly on real-world images, achieving a 38% greater reduction in detection accuracy than prior methods. By blending vehicles into their immediate surroundings or broader scene concepts, the framework produces attacks that are both highly effective against AI and remarkably inconspicuous to humans.

What Problem Does This Paper Address?

Deep Neural Networks (DNNs) are notoriously vulnerable to adversarial attacks. In the context of autonomous driving or aerial surveillance, an attacker might want to "camouflage" a vehicle so a detector fails to see it.

Existing methods generally fall into three categories, each with a flaw:

  1. Imperceptible Perturbations: Small pixel-level changes that are easily broken by common image processing (like denoising).
  2. Adversarial Patches: High-contrast "stickers" that fool AI but are immediately obvious to humans.
  3. 3D Texture Optimization: Designing textures in simulators. These often fail in the real world due to the "domain gap" between simulation and reality.

The authors address the need for stealthy, robust, and transferable camouflage that works on "in-the-wild" images without requiring complex 3D models.

Methods

The researchers formulate camouflage as a conditional image-editing problem. Instead of just adding noise, they use a generative approach to "repaint" the vehicle.

Two-Stage Pipeline

As shown in the pipeline overview, the training happens in two steps:

  1. No-Box Attack (Stylization): They fine-tune a ControlNet to transfer a reference style onto a vehicle. They use the L-channel (luminance) from the LAB color space to preserve the vehicle's physical structure (edges, shading) while changing its color and texture.
  2. White-Box Attack (Adversarial): The model is further tuned against a specific detector (like Faster R-CNN). It adds an adversarial loss to lower the detector's confidence while using a color-consistency loss to ensure the car doesn't become a garish, un-stealthy mess during optimization.
Fig. 2: Overview of our pipeline. As shown in (a) and (b), the pipeline consists of a No-Box Attack stage and a White-Box Attack stage. In (a), the ControlNet is fine-tuned to stylize vehicles using a reference region while preserving geometry and background through structure, style, and background supervisions (L_\text {struct}, L_\text {s}, L_\text {b}). (b) further optimizes the model against a detector \protect \mathcal {M}_\text {det} by incorporating an additional adversarial loss L_\text {adv} and a color-consistency loss L_\text {c}. (c) summarizes the conditions provided to ControlNet under the image-level and scene-level settings, and (d) illustrates the style loss Ls that aligns vehicle latent features with the reference area.

Two Stylization Strategies

Inspired by nature, the authors propose two ways to pick a "style":

  • Image-level (The Chameleon): The vehicle's appearance is adapted to its immediate surroundings (e.g., a car blending into the specific patch of grass next to it).
  • Scene-level (The Grasshopper): The vehicle is adapted to a semantic concept found in the broader scene (e.g., an airplane taking on the colors and textures of the sky).

Datasets

The framework was evaluated on two distinct types of imagery:

  • COCO: A standard computer vision dataset containing diverse natural scenes and ground-view vehicle images.
  • LINZ: An aerial imagery dataset (nadir view) from New Zealand, featuring cars in residential, industrial, and agricultural settings.

Key Insights and Ideas

  • Generative AI as an Attack Vector: By using Stable Diffusion and ControlNet, the attack inherits the "naturalness" of generative models, making the resulting camouflage look like plausible paint or environmental wear rather than digital artifacts.
  • Structure vs. Style: A key "aha moment" is the use of the L-channel for structure preservation. By locking the luminance and only editing the chrominance/texture, the car still looks like a car to a human, even if its features are scrambled for an AI.
  • Location Invariance: The scene-level strategy is particularly clever for real-world use. If a car is camouflaged to look like "dry leaves" (a scene concept), it remains camouflaged even as it moves through different parts of that environment.

Key Results

The authors compared CtrlCamo against state-of-the-art (SOTA) stylization attacks like AdvCAM and DiffPGD.

  • Attack Effectiveness: CtrlCamo achieved at least a 38.9% $AP_{50}$ reduction over SOTA methods across both datasets. In some cases, detection accuracy dropped from nearly 100% to below 15%.
  • Human Stealthiness: In a human study, participants preferred CtrlCamo's stylization over competitors in 85.3% of scene-level cases, confirming that the images look significantly more natural.
  • Physical Transferability: The authors performed a "projector-based" experiment, projecting their digital camouflage onto 3D-printed models. The adversarial patterns successfully fooled detectors in the physical world with a 100% attack success rate in their test setup.
Qualitative results showing how the pipeline stylizes vehicles based on surroundings or scene concepts to evade detection.

Limitations and Future Work

  • 3D Geometry: The current model is 2D-based. It doesn't explicitly model how light hits a 3D surface, which can lead to slight shading inconsistencies.
  • Perspective Distortion: The image-level strategy struggles with ground-view images where perspective makes "immediate surroundings" semantically unrelated to the object (e.g., a car's background might be a distant building).
  • Future Directions: The authors plan to explore geometry-aware representations and multi-view captures to make the camouflage even more robust to different camera angles in the physical world.

Summary updated

BibTeX
@misc{fang2026wild,
  author = {Xiao Fang and Yiming Gong and Stanislav Panev and Celso de Melo and Shuowen Hu and Shayok Chakraborty and Fernando De la Torre},
  title = {{In-the-Wild Camouflage Attack on Vehicle Detectors through Controllable Image Editing}},
  year = {2026},
  eprint = {2603.19456},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.19456},
}
Figure