Unshuffling Fisher-Yates: Practical Recovery of Length-128 Permutations and Application to ML-DSA
Shows a single-trace side-channel attack that recovers Fisher-Yates shuffle permutations of length 128 in software, unshuffling ML-DSA-44 NTT and recovering secret s1.
Schemes: ML-DSA, ML-DSA-44, Fisher-Yates shuffling
Findings (quotes checked against the source text)
-
A single-trace attack on a software Fisher-Yates implementation recovers length-128 permutations, matching one butterfly layer of ML-DSA's NTT.
We present a practical attack on a software implementation of Fisher-Yates for sequences of length 128, the number of butterfly operations in one layer of ML-DSA’s NTT.
-
Hamming weight and identity leakage is extracted from one trace per shuffle, after timing variations from rejection sampling are removed.
detect and remove the timing variations caused by rejection sampling and extract Hamming weight and identity leakage from a single trace per shuffle.
-
Recovered permutations let the attacker re-order butterfly leakage and recover the secret polynomial s1 of ML-DSA-44, directly or after enumerating a few coefficients.
Applied to a shuffled ML-DSA-44 NTT, the recovered permutations are used to re-order the butterfly leakage, and recover the secret polynomial s1 either directly or up to a few coefficients that are enumerated directly.
-
The hints are encoded as a constraint-programming problem and the most likely permutations are enumerated in descending likelihood.
We encode these hints as a constraint-programming problem with a soft objective function and enumerate the most likely permutations in order of descending likelihood.
-
Fisher-Yates-based shuffling alone does not stop side-channel-assisted key recovery for ML-DSA's NTT.
Protecting ML-DSA’s NTT with Fisher-Yates-based shuffling does, therefore, not, by itself, prevent side-channel-assisted key recovery.
Numbers (as extracted, not quote-checked)
- Permutation sequence length attacked (ML-DSA NTT butterflies per layer): 128
For builders
Treat shuffling as insufficient on its own for ML-DSA signing implementations; pair it with other masking or constant-time countermeasures and test against single-trace attacks.
Limits
Targets a software implementation on a specific platform; evaluated from the ePrint abstract only, not the full text, so attack conditions and costs are unverified.
Topics: implementation-sidechannel sig-lattice cryptanalysis