Profiling Side-Channel Attacks on Dilithium: A Small Bit-Fiddling Leak Breaks It All
Side-channel attack on Dilithium signing: a small leak in bit unpacking, combined with ML profiling and ILP/regression, yields full key recovery from traces on Cortex-M4.
Schemes: Dilithium, ML-DSA
Findings (quotes checked against the source text)
-
A small side-channel leak in Dilithium's bit unpacking during signature generation can be amplified into essentially full key recovery.
The attack is based on a small side-channel leakage we identified in a bit unpacking procedure inside Dilithium signature generation.
-
Profiling with machine learning plus least squares regression and integer linear programming turns the leak into key recovery from a moderate number of traces.
We then combine machine-learning based profiling with various algorithmic techniques, including least squares regression and integer linear programming, in order to leverage this small leakage into essentially full key recovery: we manage to recover, from a moderate number of side-channel traces, enough information to sign arbitrary messages.
-
The attack was demonstrated experimentally against the ARM Cortex-M4 implementation and remains effective under noisy power measurements.
We confirm the practicality of our technique using concrete experiments against the ARM Cortext-M4 implementation of Dilithium, and verify that our attack is robust to real-world conditions such as noisy power measurements.
-
Protecting against this attack reliably appears to require masking of the entire signing algorithm, despite its high cost.
This attack appears difficult to protect against reliably without strong side-channel countermeasures such as masking of the entire signing algorithm, and underscores the necessity of implementing such countermeasures despite their known high cost.
For builders
Any PQ chain wallet or signer using Dilithium/ML-DSA on embedded or shared hardware needs side-channel-hardened (masked) signing implementations, not just a sound scheme.
Limits
Based on the ePrint abstract only; attack shown on ARM Cortex-M4 reference implementation, and no specific trace counts or cost figures are given in the text provided.