Multiple-Valued Plaintext-Checking Side-Channel Attacks on Post-Quantum KEMs

Yutaro Tanaka, Rei Ueno, Keita Xagawa, Akira Ito, Junko Takahashi, Naofumi Homma

Introduction

As the cryptographic community transitions toward Post-Quantum Cryptography (PQC), ensuring the side-channel resistance of new standards is paramount. Most NIST-standardized Key Encapsulation Mechanisms (KEMs) utilize the Fujisaki-Okamoto (FO) transformation to achieve security against chosen-ciphertext attacks (CCA). However, recent research highlights a significant vulnerability: the re-encryption phase of the FO transform leaks information that can be exploited via side-channel analysis. By replacing traditional binary checks with a deep-learning-powered Multiple-Valued Plaintext-Checking (MV-PC) oracle, researchers have reduced the number of traces required for a successful key recovery by over 80%.

The FO Transform and Side-Channel Vulnerabilities

The FO transformation is a standard method for converting a CPA-secure public-key encryption scheme into a CCA-secure KEM. During the decapsulation process, the receiver decrypts the ciphertext to obtain a message $m'$, then re-encrypts $m'$ to verify it matches the original ciphertext $c$. If they match, the session key is derived; otherwise, a failure is reported.

Algorithm 1: CCA-secure KEM based on FO transform

Previous "Plaintext-Checking (PC) oracle" attacks exploited side-channel leakage (such as power consumption or EM emissions) during this re-encryption step. By manipulating ciphertexts, an attacker could determine if a decrypted message matched a specific guess. However, these traditional attacks were limited to binary "yes/no" oracles, requiring thousands of traces to recover a full secret key, which limited their practical impact.

Methodology: The MV-PC Oracle

This work introduces a significantly more efficient approach: the Multiple-Valued Plaintext-Checking (MV-PC) oracle. This method moves beyond binary checks to extract multiple bits of information per query.

  1. MV-PC Oracle Design: Instead of a single bit, the oracle distinguishes between $\mu$ different plaintexts, allowing the extraction of $\log_2 \mu$ bits per trace.
  2. Deep Learning Distinguisher: The authors employed a multi-classification Convolutional Neural Network (CNN) to analyze traces from symmetric primitives (SHA3, AES) used during re-encryption.
  3. NLL-based Combining: To handle noise and model inaccuracies, a Negative Log-Likelihood (NLL) approach was used to aggregate results from multiple traces, mathematically optimizing the success rate via Fano’s inequality.

Experimental Evaluation

The attack was validated on an ARM Cortex-M4 (STM32F407) microcontroller using implementations from the pqm4 library. The researchers targeted the leakage of symmetric primitives like SHA3-512 and SHAKE128/256, which are integral to the re-encryption process in lattice-based and isogeny-based KEMs. Notably, the profiling phase of this attack does not require a device with a known secret key; an attacker only needs to observe the re-encryption of known messages on a similar device.

Results and Impact

The MV-PC attack demonstrates a dramatic reduction in the number of traces required for successful key recovery compared to previous state-of-the-art methods.

Comparison of trace requirements for key recovery across different KEM implementations

As shown in the table above, the trace requirements for Kyber-512 were reduced by 81% (from 3,072 to 576). Similar gains were observed for FrodoKEM (81% reduction) and SIKE (80% reduction). These results were achieved with a near-perfect success rate (99.9999%) for full key recovery.

Conclusion

While highly effective against lattice-based and isogeny-based KEMs, the MV-PC approach currently offers no improvement for code-based KEMs like HQC or BIKE due to differences in error handling. Furthermore, while the attack is potent against unprotected software, its efficacy against high-order masking remains a subject for future research. This work underscores the urgent need for robust side-channel countermeasures in the deployment of post-quantum cryptographic standards.

Summary updated

BibTeX
@article{tanaka2023multiple,
  author = {Yutaro Tanaka and Rei Ueno and Keita Xagawa and Akira Ito and Junko Takahashi and Naofumi Homma},
  title = {{Multiple-Valued Plaintext-Checking Side-Channel Attacks on Post-Quantum KEMs}},
  journal = {IACR Trans. Cryptogr. Hardw. Embed. Syst.},
  year = {2023},
  doi = {10.46586/tches.v2023.i3.473-503},
}
Figure