Abstract
The security of post-quantum cryptography (PQC) standards, such as CRYSTALS-Kyber, relies on the hardness of the Module Learning With Errors (Module-LWE) problem. Recent attempts to attack LWE using machine learning have struggled with the non-linear nature of modular arithmetic, often requiring massive transformer models and significant computational resources. This paper presents NoMod, a novel white-box attack that bypasses the need to model modular operations. By treating modular wrap-arounds as statistical outliers and employing robust linear regression alongside optimized lattice preprocessing, NoMod recovers cryptographic secrets with a fraction of the compute power required by previous state-of-the-art methods.
Introduction
As quantum computing advances, the transition to post-quantum cryptography becomes imperative. NIST has standardized several algorithms, many of which are built upon the Module-LWE problem. The core challenge in attacking LWE ($b = As + e \pmod q$) via machine learning is the modulo operation, which introduces "wrap-around" effects that disrupt linear relationships.
Previous approaches, such as the SALSA family of attacks, utilize large-scale transformer models to learn these modular structures. However, these "black-box" models are computationally expensive, requiring thousands of CPU hours and hundreds of GPUs, and necessitate complex post-processing to extract the secret key. NoMod addresses these inefficiencies by reframing the problem: instead of learning the modulo, it treats it as noise.
Methodology
The NoMod attack simplifies the cryptanalytic process by avoiding the explicit modeling of modular arithmetic.
Wrap-arounds as Statistical Outliers
NoMod treats the LWE equation as a standard linear regression problem: $b = As + e$. In this view, any data point that has undergone a modular wrap-around is considered a significant statistical outlier. By ignoring these "corrupted" points, the model can focus on the underlying linear relationship.
Robust Linear Regression
To handle these extreme outliers, the authors employ robust linear estimators, specifically utilizing Tukey’s Biweight loss. This loss function minimizes the influence of data points with large residuals. Because the resulting model is linear, it is inherently "white-box"—the learned weights directly represent the cryptographic secret, eliminating the need for additional extraction steps.
Optimized Lattice Preprocessing
To facilitate effective regression, LWE samples are preprocessed using lattice reduction techniques (FLATTER and progressive BKZ 2.0) to reduce coefficient sizes and minimize wrap-arounds. Two key optimizations are introduced:
- Vector Saving Strategy: A priority queue maintains the best short vectors discovered across all reduction tours, preventing the loss of high-quality data.
- Algebraic Amplification: By exploiting the negative-circulant structure of polynomial rings in Module-LWE, the authors cyclically rotate discovered vectors to artificially expand the dataset by a factor of $n$ without additional expensive reductions.
Experimental Evaluation
The authors evaluated NoMod on simulated datasets for LWE, Ring-LWE, and Module-LWE, including parameters relevant to CRYSTALS-Kyber.
Key Results
NoMod demonstrates significant performance gains over existing machine learning attacks. For instance, in a comparison with the SALSA attack, NoMod achieved secret recovery in seconds or minutes for dimensions where SALSA required hours.
Furthermore, NoMod shows exceptional scalability. In a high-dimension test ($n=350$), NoMod recovered a full dense secret in 17.5 hours, whereas the PICANTE attack required 307 hours to recover a sparser secret.
Notably, NoMod is highly resource-efficient, achieving results competitive with SALSA VERDE using only 16 CPU cores, compared to the thousands of cores and multiple GPUs required by the latter. It also successfully recovered secrets in regimes where classical primal uSVP attacks are computationally infeasible.
Discussion and Future Work
NoMod demonstrates that reframing modular reduction as statistical corruption allows for the application of efficient, classical robust statistics. While it currently trails the absolute state-of-the-art in terms of maximum recoverable Hamming weight on the largest dimensions, it does so with a drastically smaller hardware budget.
Future research will focus on a deeper theoretical analysis of the preprocessing stage and investigating the application of NoMod to other structured LWE variants. The authors also intend to explore whether traditional modulo-switching techniques can further enhance the pipeline's efficiency.
Summary updated