Abstract
As the world transitions to post-quantum cryptography, the National Institute of Standards and Technology (NIST) has standardized FALCON, a lattice-based digital signature algorithm. While mathematically secure, physical implementations of FALCON can be vulnerable to side-channel attacks. This paper introduces SHIFT SNARE, a devastating single-trace attack that exploits a previously overlooked power leak in FALCON's key generation process. By analyzing a single power trace from an ARM Cortex-M4 microcontroller, we demonstrate the ability to recover secret keys with over 99.9999% accuracy, highlighting a critical flaw in current reference implementations.
Introduction
Side-channel attacks (SCA) pose a significant threat to cryptographic implementations by exploiting physical leakages such as power consumption or electromagnetic emissions. Traditional SCAs often require thousands of traces to filter out noise. However, single-trace attacks are far more dangerous as they can target operations that occur only once, such as the generation of a unique secret key. This study focuses on the discrete Gaussian sampling used during FALCON's key generation, identifying a high-signal leakage point that bypasses standard multi-trace defenses.
The Vulnerability: A Constant-Time Trap
The SHIFT SNARE attack targets a specific sequence of operations in the mkgauss subroutine of the official FALCON source code. To maintain constant-time execution and avoid timing attacks, the implementation uses bitwise operations instead of conditional branches. Specifically, the code performs a 63-bit right-shift on a 64-bit secret value, followed by a negation.
In 64-bit two’s complement arithmetic, this operation results in either a value of all 0s (Hamming Weight = 0) or all 1s (Hamming Weight = 64). When the processor writes these values to registers or memory, the extreme difference in Hamming Weight creates a massive, measurable variation in power consumption.
Methodology
The attack pipeline consists of three main phases: profiling, template building, and recovery.
- Profiling: We collected 500,000 power traces from an ARM Cortex-M4 (STM32F417) microcontroller executing the FALCON-512 and FALCON-1024 reference implementations.
- Point of Interest (POI) Identification: Using Correlation Power Analysis (CPA), we pinpointed the exact temporal locations where the Hamming weight leakage occurs.
- Template Building: We constructed a univariate Gaussian template model to statistically characterize the power signatures of 'Case 0' versus 'Case -1'.
- Recovery: During the attack phase, a single trace is captured. The power values at the identified POIs are compared against the templates using log-likelihood to reconstruct the secret coefficients.
Experimental Results
The SHIFT SNARE attack proves exceptionally reliable due to the high signal-to-noise ratio of the identified leak. Quantitative analysis shows a per-coefficient success rate of approximately 99.9999999%. For full-key recovery, the success rates are:
- FALCON-512: 99.99994654%
- FALCON-1024: 99.99989309%
In real-world experimental validation on the STM32F417 development board, we achieved a 100% success rate in recovering the secret polynomials from a single execution.
Conclusion and Future Work
The discovery of SHIFT SNARE reveals that even NIST-standardized, "constant-time" reference implementations can harbor severe side-channel vulnerabilities. Because the leak is inherent to the logic used in official software packages, most current deployments of FALCON are likely susceptible. Future work will explore cross-device portability and the effectiveness of countermeasures such as hardware-level power regulation or software-level instruction shuffling. This research underscores the necessity of rigorous side-channel analysis during the implementation phase of post-quantum cryptographic standards.
Summary updated