TL;DR
This paper introduces the first practical benchmarking challenge for secret recovery attacks on the Learning with Errors (LWE) problem using standardized parameters (like those in CRYSTALS-Kyber). By implementing and scaling four major attacks, the researchers demonstrate that while theoretical security estimates are useful, they often fail to capture the nuances of real-world implementations, such as the surprising impact of "bad" random number generators.
What Problem Does This Paper Address?
Lattice-based cryptography, specifically the Learning with Errors (LWE) problem, is the backbone of modern post-quantum security (standardized by NIST) and Fully Homomorphic Encryption (HE).
While we have theoretical tools like the "LWE Estimator" to predict how much work an attack requires, there is a massive gap in concrete, "stopwatch-in-hand" benchmarking. The industry-standard Darmstadt Lattice Challenge focuses on general lattices that don't reflect the specific structures used in real-world crypto (like Ring-LWE or Module-LWE). Without concrete benchmarks, we risk relying on heuristic assumptions that might not hold up against optimized, real-world implementations.
Methods
The authors evaluated and improved four primary attack vectors:
- uSVP (unique Shortest Vector Problem): A standard lattice reduction approach.
- SALSA (Machine Learning): Using transformer models to "learn" the secret from eavesdropped samples.
- Cool&Cruel (CC): A recent attack that exploits a "cliff" in reduced lattice matrices to brute-force sparse secrets.
- Dual Hybrid MitM (Meet-in-the-Middle): A "Decision-LWE" attack that determines if a sample is valid or random.
The Innovations: The team didn't just run existing code; they innovated. They introduced a "slope distinguisher" for ML attacks to recover non-binary secrets (like binomial or Gaussian distributions) and a "cliff-splitting" technique to adapt the Cool&Cruel attack to Module-LWE (Kyber) settings. They also scaled the MitM attack to work on dimensions ($n > 100$) for the first time.
Datasets
The authors propose two new benchmark tracks based on real-world standards:
- Kyber Track: Uses Module-LWE (MLWE) with binomial secret/error distributions, mirroring the NIST-standardized KEM.
- HE Track: Uses Ring-LWE (RLWE) with ternary or narrow Gaussian secrets, mirroring standards used by libraries like Microsoft SEAL.
Unlike previous challenges that used small dimensions, these benchmarks fix the dimension ($n=256$ or $1024$) and modulus ($q$) to match the standards, using Hamming weight (the number of non-zero elements in the secret) as the "sliding scale" for difficulty.
Key Insights and Ideas
- The Estimator is an Approximation, Not Law: The researchers found significant discrepancies between the LWE Estimator's predictions and actual runtimes. In some cases, the Estimator under-predicted the time for a Dual Hybrid MitM attack by orders of magnitude (predicting 0.9 hours for a task that took 65 hours).
- The PRNG Vulnerability: One of the most striking findings was that using a "bad" pseudo-random number generator (like the standard C
random()LCG) makes LWE secrets significantly easier to recover. Lattice reduction performed much better on LCG-generated matrices than on those from more robust generators like Mersenne Twister. - ML's "Modular" Ceiling: Machine learning models (SALSA) were found to only succeed when the secret was extremely sparse (3 or fewer "cruel" bits). This is because transformers struggle to learn the "wrap-around" logic of modular arithmetic.
- uSVP is Overrated for Sparse Secrets: While uSVP is the "gold standard" in theory, it failed to recover any secrets in these benchmarks even after 1100+ hours of computation, while SALSA and CC succeeded in under 40 hours.
Key Results
- Kyber Recovery: The team successfully recovered binomial secrets with Hamming weights of 9–11 for Kyber parameters in 28–36 hours using SALSA and Cool&Cruel.
- Decision-LWE: The MitM attack solved Decision-LWE instances for Kyber (Hamming weight up to 4) in under an hour.
- HE Recovery: For homomorphic encryption parameters ($n=1024$), they recovered Hamming weight 9 secrets in roughly 13 hours.
- Open Source: The authors have open-sourced their entire benchmarking framework and attack implementations to encourage the community to beat their records.
Limitations and Future Work
The primary limitation is that these attacks currently only succeed on sparse secrets (low Hamming weight). While this is relevant for some HE applications, it doesn't yet threaten the full security of standard Kyber deployments where secrets are not sparse.
Future work includes:
- Optimizing the underlying lattice reduction (e.g., using GPU-accelerated sieving).
- Developing strategies to help ML models better understand modular arithmetic.
- Expanding the challenge to include other attack types like Bounded Distance Decoding (BDD) or Primal Hybrid attacks.
Summary updated