SALSA: Attacking Lattice Cryptography with Transformers
Trains transformers on LWE samples and combines them with statistical tests to recover sparse binary secrets for LWE dimensions up to n=128, a cryptanalysis of toy-to-mid-size instances.
Schemes: LWE, RLWE, SALSA, Crystal-Kyber, Crystal-Dilithium, BKZ, uSVP, dual attack
Findings (quotes checked against the source text)
-
SALSA fully recovers sparse binary LWE secrets for dimensions up to n=128 at low Hamming weight, with q=251 and sigma=3, but does not yet attack real-world parameters.
SALSA can fully recover secrets for small-to-mid size LWE instances with sparse binary secrets, and may scale to attack real-world LWE-based cryptosystems.
-
The authors state SALSA is not a speedup over existing algebraic attacks and cannot yet break real-world LWE problems.
We do not claim to have better runtime, neither do we claim the ability to attack real-world LWE problems (yet).
-
Secret density is the current bottleneck; the authors find scaling density is much harder than scaling dimension.
Empirical observations indicate that scaling d is a much harder problem.
-
Crystal-Kyber and Crystal-Dilithium use dense non-binary secrets, so the attack does not directly apply to them.
However, these schemes don’t use sparse binary secrets, and adapting SALSA to non-binary secrets is a non-trivial avenue for future work.
Numbers (as extracted, not quote-checked)
- Largest LWE dimension with full secret recovery (binary secret, Hamming weight 3): n = 128
- Modulus q used in main experiments: 251
- Error distribution standard deviation sigma in main experiments: 3
- Highest density recovered at n=50: 0.08
For builders
Sparse binary LWE secrets are the weak case here; Kyber/Dilithium-style dense secrets are not broken by this work, so keep using standard parameter sizing and do not treat this as a break of ML-KEM or ML-DSA.
Limits
Only toy-to-mid sizes (n<=128, sparse binary secrets, q=251); uses RLWE circulant data; claims no speedup over lattice reduction; real-world schemes not attacked.
Topics: sig-lattice kem cryptanalysis benchmarks threat-model