An Improved Two-Step Attack on Lattice-Based Cryptography: A Case Study of Kyber
Kai Wang, Dejun Xu, Jing Tian
TL;DR
This work presents an efficient two-step side-channel attack on Kyber that combines a refined correlation power analysis with a low-dimension lattice attack to recover the full secret key $\mathbf{s}$. By adopting a Modified Hamming Weight leakage model and an optional Kendall's $\tau$ refinement, the CPA step rapidly narrows candidate coefficients using as few as $15$ traces, after which a trial-and-error lattice attack recovers the remaining coefficients via a reduced LWE problem solved with Kannan's embedding. Experimental results on Kyber-512/768/1024 (pqm4 implementations on an STM32 platform) demonstrate full key recovery in about $9$--$10$ minutes, using roughly $11$--$15$ traces per CPA call and a total of $\approx 660$--$900$ traces across $60$ CPA evaluations. The approach is general enough to extend to other lattice-based PQC schemes and highlights practical physical-security concerns for deployment, underscoring the need for masking, shuffling, or other protections at the algorithmic level, albeit with potential throughput and efficiency trade-offs.
Abstract
After three rounds of post-quantum cryptography (PQC) strict evaluations conducted by NIST, CRYSTALS-Kyber was successfully selected in July 2022 and standardized in August 2024. It becomes urgent to further evaluate Kyber's physical security for the upcoming deployment phase. In this brief, we present an improved two-step attack on Kyber to quickly recover the full secret key, s, by using much fewer power traces and less time. In the first step, we use the correlation power analysis (CPA) to obtain a portion of guess values of s with a small number of power traces. The CPA is enhanced by utilizing both Pearson and Kendall's rank correlation coefficients and modifying the leakage model to improve the accuracy. In the second step, we adopt the lattice attack to recover s based on the results of CPA. The success rate is largely built up by constructing a trial-and-error method. We deploy the reference implementations of Kyber-512, -768, and -1024 on an ARM Cortex-M4 target board and successfully recover s in approximately 9~10 minutes with at most 15 power traces, using a Xeon Gold 6342-equipped machine for the attack.
