TL;DR
Researchers have uncovered a critical side-channel vulnerability in the key generation process of FALCON, a NIST-standardized post-quantum digital signature algorithm. By analyzing just a single power trace from an ARM Cortex-M4 microcontroller, the "SHIFT SNARE" attack can recover the secret key with near-perfect accuracy (over 99.9999%), bypassing common defenses like masking.
What Problem Does This Paper Address?
As we move toward a post-quantum world, the National Institute of Standards and Technology (NIST) has selected algorithms like FALCON to replace current encryption standards (RSA, ECC) that quantum computers could easily break. While FALCON is mathematically robust, its physical implementation can leak information.
The authors target Side-Channel Attacks (SCA), where an adversary measures physical outputs like power consumption or electromagnetic emissions to steal secrets. Specifically, they focus on single-trace attacks. These are particularly dangerous because they target operations that happen only once—like generating a unique secret key—rendering many traditional "multi-trace" defenses useless. While previous work looked at FALCON's signature generation, this paper identifies a previously overlooked leak in the discrete Gaussian sampling used during key generation.
Methods
The attack, dubbed SHIFT SNARE, exploits a specific sequence of operations in the official FALCON source code.
- The Vulnerability: 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, negating the result of this shift produces either a value of all 0s (Hamming Weight = 0) or all 1s (Hamming Weight = 64).
- The Leak: When a processor writes these values to memory or registers, the difference in Hamming Weight (the number of '1' bits) creates a massive, measurable difference in power consumption.
- The Attack Pipeline:
- Profiling: The researchers used an ARM Cortex-M4 (STM32F417) and a PicoScope to record power traces.
- CPA (Correlation Power Analysis): They used CPA to pinpoint the exact "Point of Interest" (POI) in the time-domain where the leak occurs.
- Template Building: They constructed a univariate Gaussian template model. This statistical model defines what a '0' looks like versus a '-1' in the power domain.
- Recovery: At runtime, the attacker captures one trace, compares the POI against the template using log-likelihood, and reconstructs the secret coefficients.
Datasets
The study did not use a public dataset but generated its own experimental data:
- Profiling Set: 500,000 power traces collected from an ARM Cortex-M4 microcontroller executing the FALCON-512 and FALCON-1024 reference implementations.
- Target: The
mkgausssubroutine from the official NIST round 3 software package.
Key Insights and Ideas
- The "Aha" Moment: The researchers realized that a common "constant-time" programming trick—using bit-shifts to avoid conditional branches—actually created a massive side-channel leak when combined with negation. By trying to avoid timing attacks, the developers inadvertently created a power-analysis vulnerability.
- Reference Code Risk: Because this vulnerability exists in the official NIST reference and optimized implementations, almost every software deployment of FALCON currently in the wild is likely susceptible.
- Single-Trace Devastation: Most side-channel attacks require thousands of measurements to average out noise. SHIFT SNARE is so signal-rich that the "signal-to-noise" ratio allows for near-perfect recovery from a single execution.
Key Results
The quantitative results are startlingly high, suggesting the attack is highly reliable in practice:
- Per-coefficient Success Rate: 99.9999999478%.
- Full-Key Recovery (FALCON-512): 99.99994654%.
- Full-Key Recovery (FALCON-1024): 99.99989309%.
- Experimental Validation: In real-world tests on the STM32F417 board, the researchers achieved a 100% success rate in recovering the secret polynomials.
Limitations and Future Work
- Cross-Device Portability: The attack was profiled and tested on the same type of microcontroller. "Cross-device" attacks, where a template built on one chip is used to attack a different (but identical model) chip, can be harder due to manufacturing variances (though often still possible).
- Environmental Noise: The experiments were conducted at a relatively low clock frequency (30 MHz) to minimize noise. Higher-speed environments might require more sophisticated filtering or multi-point templates.
- Countermeasures: The paper identifies the leak but leaves the implementation of defenses (like hardware-level constant-power regulators or software-level instruction shuffling) to future work. The authors emphasize that simply "masking" the data might not be enough to stop this specific single-trace leak.
Summary updated