One Bit is All It Takes: A Devastating Timing Attack on BLISS’s Non-Constant Time Sign Flips
Shows BLISS's non-constant-time random sign flip leaks one bit per signature via cache or branch side channels, and that this bit suffices for full key recovery using maximum likelihood estimation.
Schemes: BLISS, strongSwan
Findings (quotes checked against the source text)
-
BLISS's sign flip during signing is not constant-time in the original implementation or strongSwan, so the sign can leak through side channels.
The bimodal Gaussian distribution that BLISS is named after is achieved using a random sign flip during signature generation, and neither the original implementation of BLISS nor strongSwan ensure that this sign flip is carried out in constant time.
-
Recovering the sign via cache attacks or branch tracing gives a single bit of leakage per signature.
It is therefore possible to recover the corresponding sign through side-channel leakage (using, e.g., cache attacks or branch tracing).
-
A single leaked sign bit, over a moderate number of signatures, is enough for full secret key recovery.
We show that obtaining this single bit of leakage (for a moderate number of signatures) is in fact sufficient for a full key recovery attack.
-
Key recovery uses maximum likelihood estimation over the parameter space, analysed via the Fisher information metric.
The recovery is carried out using a maximum likelihood estimation on the space of parameters, which can be seen as a statistical manifold.
For builders
Any lattice signer's sign flip or Gaussian sampling must be implemented in constant time, since one leaked bit per signature can fully break the key.
Limits
Based on the ePrint abstract only; the number of signatures needed is not quantified, and the attack targets BLISS implementations that lack constant-time sign flips.
Topics: sig-lattice implementation-sidechannel cryptanalysis