Abstract
As the cryptographic community transitions toward Post-Quantum Cryptography (PQC), lattice-based digital signature schemes have emerged as leading candidates for standardization. Schemes such as CRYSTALS-Dilithium and qTESLA utilize the Fiat-Shamir with Aborts framework, which incorporates rejection sampling to ensure that signatures remain statistically independent of the secret key. This paper investigates the vulnerability of these schemes to side-channel attacks that leak partial information about internal randomness. We demonstrate that leaking even a single bit of randomness per signature is sufficient to recover the full secret key with high efficiency. Our proposed attack, centered on the Fiat-Shamir Integer Learning With Errors (FS-ILWE) problem, utilizes the method of least squares to bypass traditional lattice reduction complexities, achieving key recovery in seconds.
Introduction
In digital signature schemes, the security of the secret key often hinges on the integrity of the "nonce" or ephemeral randomness used during the signing process. In classical schemes like the Digital Signature Algorithm (DSA) and its elliptic curve variant (ECDSA), it is well-established that the leakage of even a few bits of the nonce can lead to total key compromise.
With the advent of lattice-based signatures, which are designed to resist quantum computing threats, the security community initially hypothesized that these schemes might be more robust against such leakage. This perceived robustness stems from "rejection sampling," a technique where signatures are discarded and regenerated if they risk leaking information about the secret key. This paper challenges that assumption, providing a rigorous analysis of how minimal randomness leakage can be exploited to break NIST PQC finalists.
The FS-ILWE Attack Framework
The authors introduce a generic key recovery attack that reduces the signature process to a mathematical problem termed Fiat-Shamir Integer Learning With Errors (FS-ILWE).
1. The Core Observation
In a typical lattice-based Fiat-Shamir signature, a signature $z$ is generated as $z = y + sc$, where $y$ represents the secret randomness, $s$ is the secret key, and $c$ is a public challenge. The authors observed that by leaking a specific bit of $y$—specifically the $(l+1)$-th bit—an attacker can determine whether an "overflow" occurred during the addition of $y$ and $sc$.
2. Mathematical Reduction
Once the overflow state is identified, the problem of finding the secret key $s$ is transformed into a noisy linear system over integers. Unlike many lattice-based attacks that require computationally expensive basis reduction algorithms (such as LLL or BKZ), the FS-ILWE problem can be solved using the method of least squares. This standard statistical tool, followed by simple rounding, allows for the recovery of the secret key with significantly lower computational overhead.
3. Side-Channel Implementation
To demonstrate the practical feasibility of this attack, the authors performed a power analysis on an 8051 microcontroller (STC89C58RD+). By monitoring power consumption during polynomial addition, they successfully extracted the necessary randomness bits with a success rate between 99.63% and 100%, proving that the theoretical vulnerability translates directly to physical hardware.
Experimental Results
The attack was validated against several NIST PQC signature candidates, including CRYSTALS-Dilithium and qTESLA. The results were striking in both their speed and the relatively low number of signatures required.
- CRYSTALS-Dilithium: For Dilithium-III, which provides 125-bit quantum security, the secret key was recovered in under 10 seconds using approximately one million signatures.
- The Security Paradox: Interestingly, the attack proved even more efficient at higher security levels. Dilithium-IV was broken in just 3.5 seconds. This is because higher-security parameters often utilize sparser or smaller secret keys, which simplifies the linear system for the least-squares solver.
- qTESLA: While the higher dimensions of qTESLA increased the recovery time, the attack remained successful, completing in approximately 31 minutes.
Discussion and Comparison
A significant finding of this research is that lattice-based signatures are, in some respects, more vulnerable to 1-bit leakage than their classical counterparts. While breaking ECDSA with 1-bit leakage might require billions of signatures and complex Fourier analysis, Dilithium can be compromised with roughly one million signatures using standard statistical methods.
Furthermore, the attack is robust against probabilistic leakage. Even if the attacker can only guess the leaked bit with a probability slightly better than 0.5 (random chance), the secret key can still be recovered, provided a larger corpus of signatures is available.
Limitations and Future Work
Despite its efficacy, the FS-ILWE attack has specific limitations:
- Bit Position: The attack currently relies on leaking "high-order" bits. Leaking the Least Significant Bits (LSBs) does not provide the necessary information regarding overflows, leaving the attack ineffective in those scenarios.
- Bimodal Gaussian Distributions: The BLISS signature scheme remains resistant to this specific method. BLISS uses a bimodal Gaussian distribution that causes the linear terms to cancel out during the final stages of the least-squares calculation.
Conclusion
This research demonstrates that rejection sampling is not a "silver bullet" for side-channel resistance. Even the smallest amount of randomness leakage can render high-security lattice signatures vulnerable. The authors conclude that the only robust defense against such attacks is the implementation of full "masking" for the signing algorithm. While masking is computationally expensive, it is a necessary trade-off to ensure the security of post-quantum digital signatures in the presence of side-channel adversaries.
Summary updated