Leveraging Optimization for Adaptive Attacks on Image Watermarks

Nils Lukas, Abdulrahman Diaa, L. Fenaux, Florian Kerschbaum
2/12/2026

No official code found. Best implementation: nilslukas/adaptive-watermark-attacks (7 stars, last commit 2024-08-30).

Abstract

Untrustworthy users can misuse image generators to synthesize high-quality deepfakes and engage in unethical activities. Watermarking deters misuse by marking generated content with a hidden message, enabling its detection using a secret watermarking key. A core security property of watermarking is robustness, which states that an attacker can only evade detection by substantially degrading image quality. Assessing robustness requires designing an adaptive attack for the specific watermarking algorithm. When evaluating watermarking algorithms and their (adaptive) attacks, it is challenging to determine whether an adaptive attack is optimal, i.e., the best possible attack. We solve this problem by defining an objective function and then approach adaptive attacks as an optimization problem. The core idea of our adaptive attacks is to replicate secret watermarking keys locally by creating surrogate keys that are differentiable and can be used to optimize the attack's parameters. We demonstrate for Stable Diffusion models that such an attacker can break all five surveyed watermarking methods at no visible degradation in image quality. Optimizing our attacks is efficient and requires less than 1 GPU hour to reduce the detection accuracy to 6.3% or less. Our findings emphasize the need for more rigorous robustness testing against adaptive, learnable attackers.

View on arXivView PDF

Code Implementations(1)

The official implementation of Adaptive Attacks against Image Watermarks (ICLR'24)

70PythonJan 31, 20242 years ago

Similar Papers

Cite this paper

@article{lukas2026leveraging,
  title  = {Leveraging Optimization for Adaptive Attacks on Image Watermarks},
  author = {Nils Lukas and Abdulrahman Diaa and L. Fenaux and Florian Kerschbaum},
  year   = {2026},
  eprint = {2309.16952},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/pdf/2309.16952},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2309.16952.svg)](https://codeofpaper.com/paper/2309.16952)

Discussion