Exploiting Intermediate Value Leakage in Dilithium: A Template-Based Approach
Template-based profiling side-channel attack on reference Dilithium: predicts zero-ness of a signing-time vector coefficient, then uses linear algebra to recover enough key to forge signatures, shown on ARM Cortex-M4.
Schemes: CRYSTALS-Dilithium, ML-DSA
Findings (quotes checked against the source text)
-
A template attack on a signing-time vector can predict whether a coefficient is zero, and linear algebra on the recovered information yields part of the secret key sufficient for universal forgery.
By gathering signatures and being able to make the correct predictions for each index, and then using linear algebra methods, this paper demonstrates that one can recover part of the secret key that is sufficient to produce universal forgeries.
-
The reference implementation, which is constant-time, does not protect against attacks exploiting intermediate data leakage.
However, this implementation does not protect against attacks that exploit intermediate data leakage.
-
The leakage model was validated with practical experiments on the reference implementation running on an ARM Cortex-M4.
it also demonstrates the validity of the assumption regarding the required leakage model from practical experiments with the reference implementation on an ARM Cortex-M4.
Numbers (as extracted, not quote-checked)
- Messages in the profiling corpus for the template attack: 700000
For builders
Constant-time Dilithium is not enough: implementations on embedded or hardware targets need leakage analysis of intermediate signing values, and masking of those values should be considered.
Limits
Attack is demonstrated on one reference implementation on ARM Cortex-M4 with physical traces; ePrint abstract only was read, so details and countermeasure costs are not verified.
Topics: implementation-sidechannel sig-lattice cryptanalysis