Transferable Black-Box One-Shot Forging of Watermarks via Image Preference Models

Tomáš Souček, Sylvestre-Alvise Rebuffi, Pierre Fernandez, Nikola Jovanović, Hady Elsahar, Valeriu Lacatusu, Tuan Tran, Alexandre Mourachko

TL;DR

A new black-box attack can successfully forge or remove digital image watermarks using just a single watermarked image. By training an image preference model on purely synthetic, procedurally generated artifacts, the method can isolate and transfer watermarks to new images without any prior knowledge of the underlying watermarking algorithm or access to its API.

What Problem Does This Paper Address?

With the explosion of generative AI, digital watermarking has become a crucial tool for content provenance, authenticity verification, and compliance with new regulatory frameworks like the EU AI Act. Most research focuses on post-hoc watermarking (applying a watermark after an image is generated) and how to protect these marks from being removed.

However, this paper tackles a more insidious and underexplored threat: watermark forging. In a forging attack, an adversary steals a legitimate watermark from an authentic image and applies it to malicious or fake content to trick downstream detectors into certifying it as genuine.

Existing forging methods are highly impractical; they require either paired datasets (clean and watermarked versions of the same image) or thousands of images embedded with the same hidden message. This paper introduces a "one-shot" black-box attack that requires only a single watermarked image, making the threat model far more realistic.

Methods

The authors propose a two-step pipeline that relies on an image preference model to separate a watermark from its underlying image content.

Figure 1: Overview of our attack pipeline. Given a single watermarked image (left), Bob’s goal is to either remove the watermark (top path) or forge it onto another image (bottom path). He first trains a preference model to predict a score indicating the likelihood that an image will be watermarked, and then optimizes the input image to maximize this score. This enables both watermark removal (producing a clean image classified as non-watermarked) and watermark forging (producing an image classified as watermarked). Notably, the approach does not require access to the watermarking model or paired data.

1. Training the Preference Model

Instead of training on real watermarks, the authors train a ConvNeXt V2-Tiny model to act as an image prior. It learns to distinguish clean, natural images from images corrupted with synthetic artifacts.

  • Procedural Data Generation: The authors generate artificial distortions directly in the Fourier space, mimicking three common patterns: wave-style artifacts, line-style artifacts, and random noise.
  • Ranking Loss: The model is trained using a Bradley-Terry preference framework with a ranking loss. Given a clean image ($x^+$) and a synthetically corrupted version ($x^-$), the model learns to assign a higher score to the clean image.
  • Adversarial Training: Crucially, the authors use adversarial perturbations during training. This forces the preference model to produce clean, semantically interpretable gradients during backpropagation rather than messy, uninterpretable artifacts.

2. Watermark Extraction via Optimization

To attack a watermarked image ($x_w$), the adversary freezes the preference model and uses gradient ascent on the input pixels to maximize the preference score. This optimization process effectively strips away the high-frequency "unnatural" components of the image.

The difference between the original watermarked image and the optimized clean image ($\hat{x}$) yields the estimated watermark ($\hat{w} = x_w - \hat{x}$).

  • For Watermark Removal: The optimized image $\hat{x}$ serves as the cleaned image.
  • For Watermark Forging: The extracted watermark $\hat{w}$ is simply added to a completely new target image ($y$).

Datasets

  • SA-1b (Segment Anything): The preference model was trained on images from the SA-1b dataset. Evaluation was performed on 100 images from the SA-1b validation set.
  • Watermarking Frameworks Evaluated: The attack was tested against four state-of-the-art post-hoc watermarking methods: CIN, MBRS, TrustMark, and Video Seal.

Key Insights and Ideas

  • Real Watermarks Aren't Necessary for Training: Remarkably, the preference model generalizes to real-world watermarking techniques despite being trained exclusively on basic, procedurally generated mathematical noise (waves, lines).
  • The Necessity of Adversarial Training for Attacks: Standard preference training fails because backpropagation introduces checkerboard artifacts. Incorporating a small adversarial step during training is what makes the model's gradients clean enough to isolate a high-fidelity watermark.
  • Vulnerability of Content-Aware Models: Even when watermarking models adjust their patterns dynamically based on the host image (like Video Seal), they remain vulnerable if the downstream decoder ignores the image context and only looks for the presence of the pattern.

Key Results

The proposed method (using only $n=1$ image) matches or outperforms state-of-the-art attacks that require significantly more data or model access.

Watermark Forging

When stealing a watermark and applying it to a new image, the method achieved high bit accuracy across multiple watermarking suites:

  • CIN: 100% bit accuracy (matching baselines like Image Averaging which require 100 images).
  • Video Seal: 83% bit accuracy, significantly outperforming Image Averaging (59%) and the discriminator-based Warfare attack (74%, which requires 1000 images).
Figure 3: Comparison of the forged watermarks by different watermark forging methods. The shown watermarks are averaged from 100 different images to remove any image-specific artifacts. The recovered watermark by our method closely resembles the actual watermark (left column), containing the least number of other distracting artifacts, such as the noise present in DiffPure watermarks.

Watermark Removal

For removal, the method successfully degraded the watermark extractor's accuracy while maintaining superior image quality. It achieved an average PSNR of 31.2 dB, outperforming diffusion-based purification methods (like DiffPure at 25.4 dB) because it removes high-frequency noise without "hallucinating" new textures or blurring structural edges.

Limitations and Future Work

  • Texture Smoothing: Because the preference model treats high-frequency noise as an artifact, it can accidentally smooth out natural high-frequency textures in images, such as water surfaces, grass, or clouds. The authors suggest adding image blur as a synthetic artifact type during training to mitigate this.
  • Semantic Watermarks: This attack specifically targets post-hoc pixel-level watermarks. It cannot forge or remove semantic watermarks (which embed information by subtly altering the placement or types of objects generated within an image).

Summary updated

BibTeX
@inproceedings{soucek2025transferable,
  author = {Tomáš Souček and Sylvestre-Alvise Rebuffi and Pierre Fernandez and Nikola Jovanović and Hady Elsahar and Valeriu Lacatusu and Tuan Tran and Alexandre Mourachko},
  title = {{Transferable Black-Box One-Shot Forging of Watermarks via Image Preference Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yb5JOOmfxA},
}
Figure