Side-Channel Power Trace Dataset for Kyber Pair-Pointwise Multiplication on Cortex-M4

Azade Rezaeezade, Trevor Yap, Dirmanto Jap, Shivam Bhasin, Stjepan PicekIACR ePrint 2025

Abstract

As the cryptographic community transitions toward post-quantum standards, the physical security of these new algorithms against side-channel analysis (SCA) becomes a critical concern. This paper introduces Reference-PPM, a large-scale dataset of 100,000 side-channel power traces focused on CRYSTALS-Kyber, a lattice-based Key Encapsulation Mechanism (KEM) recently selected for standardization by NIST. The dataset captures the power consumption of an ARM Cortex-M4 microcontroller during the execution of Kyber’s core multiplication operations. By providing both raw power measurements and corresponding intermediate sensitive values, Reference-PPM serves as a standardized benchmark for developing and evaluating classical and deep learning-based side-channel attacks on post-quantum cryptography.

Introduction

With the advent of quantum computing, traditional public-key cryptosystems like RSA and ECC are at risk. In response, NIST has selected CRYSTALS-Kyber as the primary standard for post-quantum key encapsulation. However, while Kyber is mathematically robust, its physical implementations are susceptible to Side-Channel Analysis (SCA). SCA exploits physical leakages—such as power consumption, electromagnetic emissions, or timing—to extract secret keys from hardware devices.

Despite the importance of securing Kyber, the research community has lacked high-quality, open-access datasets to test attack methodologies, particularly those involving deep learning. This paper addresses this gap by providing a massive, labeled dataset targeting the most computationally intensive and potentially "leaky" part of the Kyber decapsulation process: the pair-pointwise multiplication.

Experimental Methodology

To ensure the dataset is representative of real-world embedded security scenarios, the researchers utilized a standard experimental setup common in IoT research.

Target Hardware and Software

The target device was an STM32F3 microcontroller featuring a 32-bit ARM Cortex-M4 core. The software implementation was drawn from the PQClean project, which provides a clean, reference implementation of Kyber. The code was compiled using the ARM GCC compiler with high optimization (-O3) to reflect performance-oriented deployment.

Data Acquisition

The capture environment consisted of:

  • Interface: A ChipWhisperer CW308 (UFO) platform was used to interface with the target microcontroller.
  • Measurement: A Lecroy 610Zi oscilloscope captured the power consumption at a high sampling rate of 500 megasamples per second (MS/s). This high fidelity ensures that minute fluctuations caused by individual CPU instructions are preserved in the data.

The Target Operation

The dataset specifically targets the basemul function. This function performs pairwise coefficient multiplication within the Number Theoretic Transform (NTT) domain. Because NTT-based multiplication is a fundamental building block for many lattice-based schemes (including Dilithium and Falcon), the insights gained from this dataset are applicable beyond Kyber alone.

The Reference-PPM Dataset

The resulting Reference-PPM (Reference Pair-Pointwise Multiplication) dataset is designed for high-volume analysis and machine learning applications.

  • Volume: 100,000 total power traces.
  • Trace Length: Each trace contains 50,000 time samples, covering the duration of the target operation.
  • Metadata and Ground Truth: For every trace, the authors provide six intermediate values in 2-byte little-endian format. These include secret key coefficients, ciphertext coefficients, and the results of the multiplications, allowing researchers to perform supervised learning or template attacks.
  • Storage and Accessibility: The data is partitioned into 1,000 MATLAB (.mat) files for manageable file sizes, and the authors provide Python scripts to facilitate easy loading and preprocessing.

Significance and Research Utility

A Benchmark for Deep Learning

The provision of 100,000 traces makes this dataset particularly suitable for deep learning-based SCA. Neural networks require large amounts of labeled data to learn the complex mapping between power patterns and secret data. Reference-PPM provides the necessary scale to train and validate sophisticated profiling attacks.

The "Leaky" Reference Baseline

The authors intentionally targeted an unprotected reference implementation. In SCA research, establishing a baseline on a "naked" implementation is a prerequisite for understanding how information leaks before applying complex countermeasures like masking or shuffling. This dataset allows researchers to hone their techniques on a clear signal before moving to more challenging, protected targets.

Reproducibility and Standardization

By using the standardized PQClean reference code and common ARM hardware, the authors ensure that results are reproducible across different laboratories. This promotes a fair comparison of the effectiveness of various attack algorithms and signal-processing techniques.

Limitations and Future Work

While Reference-PPM is a significant resource, it has specific constraints:

  • Fixed Secret Key: The dataset was generated using a constant secret key while varying the ciphertext. While this is a standard approach for many profiling attacks, it does not cover scenarios involving ephemeral keys.
  • Functional Scope: The dataset is limited to the basemul function rather than the full Kyber decapsulation flow.
  • Lack of Countermeasures: The implementation is unprotected. Future iterations of this research could include datasets from "masked" implementations to challenge the next generation of side-channel attacks.

Conclusion

The Reference-PPM dataset provides a vital foundation for the physical security analysis of post-quantum cryptography. By offering a high-fidelity, large-scale, and well-labeled resource, the authors enable the community to better understand and eventually mitigate the side-channel risks associated with the new NIST standards.

Summary updated

BibTeX
@article{rezaeezade2025side,
  author = {Azade Rezaeezade and Trevor Yap and Dirmanto Jap and Shivam Bhasin and Stjepan Picek},
  title = {{Side-Channel Power Trace Dataset for Kyber Pair-Pointwise Multiplication on Cortex-M4}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2025},
}
Figure