Abstract
dc:description.abstractThe CRYSTALS-Kyber key encapsulation mechanism is the first post-quantum cryptographic (PQC) standard selected by NIST for secure key exchange. It is now officially known as ML-KEM under FIPS 203. While Kyber is believed to be secure against both quantum and classical cryptanalysis, its implementations, like any cryptographic system, may emit unintentional side-channel leakage that adversaries can exploit. With the upcoming infrastructure transition to post-quantum cryptography and the expected widespread deployment of Kyber, it is critical to evaluate its side-channel resistance. This thesis focuses on a security-critical component in Kyber, the binomial sampler. This module is used across all Kyber operations to generate the secret key and nonces, making it an attractive target for side-channel attacks. Despite its importance, it has not been thoroughly investigated in the literature. I begin by analyzing the implementation of Kyber in the widely used pqm4 library for ARM Cortex-M4 microcontrollers. I demonstrate that this implementation contains vulnerabilities that leak considerable side-channel information. I then show how to recover the full Kyber secret key from a single power trace using the linear discriminant analysis (LDA)-based template attack. However, such single-trace attacks require extremely high classification accuracy, which is difficult to maintain when applying the pre-trained templates across different devices. To improve the robustness of the attack, I first enhance the template construction process to make it more noise-resilient. I introduce a method that incorporates nearby low-SNR samples into the LDA computation. These additional samples improve the separability of data clusters in the LDA space, resulting in Gaussian templates with reduced covariance and improved classification accuracy. To address the challenge of cross-device template portability, I propose modeling side-channel leakage as a Gaussian mixture and adapting the pre-built templates to the target device using the Expectation--Maximization (EM) algorithm. I refer to this method as the adaptive template attack. This approach reframes the template portability problem as a parameter estimation problem for a Gaussian mixture model, allowing it to handle device-level variability without requiring labeled traces from the target. Finally, I show that this EM-based adjustment is particularly effective against previously unseen variations, such as RAM address changes when porting templates from the KeyGen operation to Encaps. Across all evaluations, my adaptive template attack outperforms previously proposed portability techniques and significantly improves the practicality of high-accuracy, cross-device single-trace attacks on Kyber.
Degree
thesis:*- Name dc:type.qualificationname
- Doctor of Philosophy (PhD)
- Level dc:type.qualificationlevel
- Doctoral
- Grantor dc:publisher.institution
- University of Cambridge
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Peng, Eric Chun-Yu
- Advisor dc:contributor.advisor
-
- Kuhn, Markus
Subjects
dc:subject × 3Rights
dc:rights- Language dc:language
- eng
Identifiers
dc:identifier.*- Identifier URI
- https://www.repository.cam.ac.uk/handle/1810/406439