Cryptanalysis of LDPC-Based Pseudorandom Error-Correcting Codes

Authors: 

Tianrui Wang, Institute for Network Sciences and Cyberspace, BNRist, Tsinghua University; Anyu Wang, Institute for Advanced Study and State Key Laboratory of Cryptography and Digital Economy Security, Tsinghua University; Zhongguancun Laboratory; Tianshuo Cong, School of Cryptologic Science and Engineering and Shandong Key Laboratory of Artificial Intelligence Security, Shandong University; Delong Ran, Institute for Network Sciences and Cyberspace, BNRist, Tsinghua University; Jinyuan Liu, Institute for Advanced Study, Tsinghua University; Xiaoyun Wang, Institute for Advanced Study and State Key Laboratory of Cryptography and Digital Economy Security, Tsinghua University; Zhongguancun Laboratory; National Financial Cryptography Research Center; Shandong Institute of Blockchain

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 222 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.

USENIX Security '26 Open Access Sponsored by
King Abdullah University of Science and Technology (KAUST)

Open Access Media

USENIX is committed to Open Access to the research presented at our events. Papers and proceedings are freely available to everyone once the event begins. Any video, audio, and/or slides that are posted after the event are also free and open to everyone. Support USENIX and our commitment to Open Access.

BibTeX
@inproceedings {320617,
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},
booktitle = {35th USENIX Security Symposium (USENIX Security 26)},
year = {2026},
isbn = {978-1-939133-58-8},
address = {Baltimore, MD},
pages = {4287--4306},
url = {https://www.usenix.org/conference/usenixsecurity26/presentation/wang-tianrui},
publisher = {USENIX Association},
month = aug
}