When NTT Meets SIS: Efficient Side-channel Attacks on Dilithium and Kyber

Zehua Qiao, Yuejun Liu, Yongbin Zhou, Mingyao Shao, Shuo SunIACR ePrint 2023

Introduction

As the transition to post-quantum cryptography (PQC) accelerates, the National Institute of Standards and Technology (NIST) has standardized lattice-based algorithms such as Kyber (for key encapsulation) and Dilithium (for digital signatures). While these algorithms offer robust mathematical security against quantum adversaries, their physical implementations remain susceptible to Side-Channel Attacks (SCA). Attackers can exploit physical leakages, such as power consumption or electromagnetic emissions, to extract sensitive information.

A significant challenge in existing SCA research is the "last mile" of key recovery. Even when techniques like Correlation Power Analysis (CPA) successfully leak portions of the secret key—specifically coefficients in the Number Theoretic Transform (NTT) domain—the remaining search space often remains computationally daunting. This research presents a breakthrough by reframing this challenge and achieving a massive 4,900× speedup in attack efficiency.

The NTT-to-SIS Transformation

The core innovation of this work lies in modeling the relationship between a private key and its leaked NTT-domain representation as an Inhomogeneous Short Integer Solution (ISIS) problem. By viewing the partially recovered key through the lens of lattice problems, the researchers can employ powerful lattice reduction algorithms like LLL and BKZ to "fill in the blanks" of the secret key. This transformation turns a brute-force search into a structured mathematical optimization problem.

Dimensionality Reduction: A Divide-and-Conquer Approach

Solving an SIS problem in the full 256-dimensional space of standard PQC parameters is computationally expensive. To address this, the authors exploit the recursive and symmetric properties of the NTT matrix. They propose a dimensionality reduction strategy that decomposes the large problem into smaller, independent 64-dimension sub-problems.

The recursive structure of the NTT operation in Dilithium and Kyber allows for dimensionality reduction from $n$ to $n/4$.

This "divide and conquer" method significantly lowers the complexity of the lattice reduction step, enabling near-instantaneous key recovery once sufficient leakage is obtained. The researchers targeted an ARM Cortex-M4 microcontroller running PQM4 reference implementations, demonstrating the practical feasibility of this approach.

Breaking Masked Implementations

"Masking" is a common countermeasure against SCA, where a secret value is split into multiple random shares (e.g., $s = s^0 + s^1$). Standard first-order CPA is typically thwarted by this defense. However, the researchers developed an enhanced CPA scheme capable of combining leakages from different shares.

Attack flow for recovering masked secrets by targeting NTT and point-wise operations.

By feeding the combined leakage into their SIS-assisted solver, they successfully demonstrated the first non-template-based higher-order SCA on masked NTT operations. This proves that current masking implementations, if they do not include robust mask refreshing, may not provide sufficient protection against sophisticated lattice-based attacks.

Key Results and Performance

The proposed methods yield dramatic improvements over previous state-of-the-art attacks:

  • Dilithium2: The time required to solve the SIS problem was slashed from 82 hours to just 1 minute. An end-to-end attack recovered the full private key in 2.4 minutes, a 400× improvement.
  • Kyber512: Key recovery was achieved in only 0.5 minutes, representing a 7.5× speedup.
  • Masked Dilithium2: The attack successfully broke a first-order masked implementation in approximately 90 hours, highlighting a critical vulnerability in protected PQC software.

Conclusion and Countermeasures

This research underscores that the very mathematical structures (lattices) used to build secure PQC standards can also be leveraged to break them when side-channel information is available. To defend against these attacks, the authors suggest implementing shuffling—randomizing the order of NTT operations—to prevent attackers from mapping leakages to specific coefficients. Additionally, robust mask refreshing is essential to mitigate higher-order CPA. Future work will focus on making these SIS-assisted attacks "position-agnostic," further reducing the requirements for successful key recovery.

Summary updated

BibTeX
@article{qiao2023when,
  author = {Zehua Qiao and Yuejun Liu and Yongbin Zhou and Mingyao Shao and Shuo Sun},
  title = {{When NTT Meets SIS: Efficient Side-channel Attacks on Dilithium and Kyber}},
  journal = {IACR ePrint},
  year = {2023},
}
Figure