Paper 2024/1049 Original: eprint.iacr.org/2024/1049 ↗

KyberSlash: Exploiting secret-dependent division timings in Kyber implementations

Daniel J. Bernstein
Karthikeyan Bhargavan
Shivam Bhasin
Anupam Chattopadhyay
Tee Kiah Chia
Matthias J. Kannwischer
Franziskus Kiefer
Thales Paiva
Prasanna Ravi
Goutam Tamvada
Abstract

This paper presents KyberSlash1 and KyberSlash2 - two timing vulnerabilities in several implementations (including the official reference code) of the Kyber Post-Quantum Key Encapsulation Mechanism, recently standardized as ML-KEM. We demonstrate the exploitability of both KyberSlash1 and KyberSlash2 on two popular platforms: the Raspberry Pi 2 (Arm Cortex-A7) and the Arm Cortex-M4 microprocessor. Kyber secret keys are reliably recovered within minutes for KyberSlash2 and a few hours for KyberSlash1. We responsibly disclosed these vulnerabilities to maintainers of various libraries and they have swiftly been patched. We present two approaches for detecting and avoiding similar vulnerabilities. First, we patch the dynamic analysis tool Valgrind to allow detection of variable-time instructions operating on secret data, and apply it to more than 1000 implementations of cryptographic primitives in SUPERCOP. We report multiple findings. Second, we propose a more rigid approach to guarantee the absence of variable-time instructions in cryptographic software using formal methods.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
History
2025-01-15: last updated
2024-06-28: published
Short URL
https://ia.cr/2024/1049
License
https://creativecommons.org/licenses/by/4.0/

BibTeX

@misc{cryptoeprint:2024/1049,
      author = {Daniel J. Bernstein and Karthikeyan Bhargavan and Shivam Bhasin and Anupam Chattopadhyay and Tee Kiah Chia and Matthias J. Kannwischer and Franziskus Kiefer and Thales Paiva and Prasanna Ravi and Goutam Tamvada},
      title = {KyberSlash: Exploiting secret-dependent division timings in Kyber implementations},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1049},
      year = {2024},
      url = {https://eprint.iacr.org/2024/1049}
}
Note: In order to protect the privacy of readers, this archive does not use cookies or embedded third party content.