Paper 2025/2283

Cryptanalysis of LDPC-Based Pseudorandom Error-Correcting Codes

Tianrui Wang, Tsinghua University
Anyu Wang, Tsinghua University
Tianshuo Cong, Shandong University
Delong Ran, Tsinghua University
Jinyuan Liu, Tsinghua University
Xiaoyun Wang, Tsinghua University
Abstract

Pseudorandom error-correcting codes (PRCs), a novel cryptographic primitive recently proposed at CRYPTO 2024, are primarily applied in undetectable watermarking schemes for large generative models. However, the security of PRCs has not yet been systematically analyzed. To fill this gap, we present the first cryptanalysis of PRCs. Specifically, focusing on LDPC-PRC, the only known practical instantiation of PRCs, we propose three novel attacks that challenge its undetectability and robustness. To rigorously demonstrate the practical threat, we analyze the concrete attack complexity under realistic parameters and validate the attack effectiveness on both real-world large language models and generative image models, including DeepSeek and Stable Diffusion. Our analysis shows that the claimed security guarantees of LDPC-PRC are undermined across all practically feasible regimes. For example, our attacks can detect the presence of a watermark with overwhelming probability at a cost of $2^{22}$ operations. Beyond attacks, we further propose three defenses: parameter recommendation, implementation suggestion, and a revised key generation function. However, PRC-based watermarking schemes still fail to achieve 128-bit security due to inherent constraints of large generative models, such as the maximum output length of large language models. Overall, our work clarifies the concrete security limits of PRCs in real-world watermarking applications.

Note: Accepted by USENIX Security 2026

Metadata
Available format(s)
PDF
Category
Attacks and cryptanalysis
Publication info
Published elsewhere. USENIX Security 2026
Keywords
Pseudorandom error-correcting codesLarge Generative ModelsAIGC WatermarkingMeet-in-the-Middle Attack
Contact author(s)
wangtr22 @ mails tsinghua edu cn
anyuwang @ tsinghua edu cn
tianshuo cong @ sdu edu cn
rdl22 @ mails tsinghua edu cn
liujinyuan24 @ mails tsinghua edu cn
xiaoyunwang @ tsinghua edu cn
History
2026-08-03: last of 2 revisions
2025-12-19: received
See all versions
Short URL
https://ia.cr/2025/2283
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/2283,
      author = {Tianrui Wang and Anyu Wang and Tianshuo Cong and Delong Ran and Jinyuan Liu and Xiaoyun Wang},
      title = {Cryptanalysis of {LDPC}-Based Pseudorandom Error-Correcting Codes},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/2283},
      year = {2025},
      url = {https://eprint.iacr.org/2025/2283}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.