2023 · 21 citations · 16 references
ComputingComputer EngineeringComputer ScienceComputer SecurityCryptographyHardware SecurityCryptographic ImplementationCryptographic VulnerabilitiesMicroarchitectural SecurityType CheckingConstant-time ImplementationCryptographic EngineeringCryptographic Library DesignPerformance OverheadSpectre AttacksSpeculative Execution AttacksTransient Execution AttacksTransient Execution Vulnerabilities
The current gold standard of cryptographic software is to write efficient libraries with systematic protections against timing attacks. In order to meet this goal, cryptographic engineers increasingly use high-assurance cryptography tools. These tools guide programmers and provide rigorous guarantees that can be verified independently by library users. However, high-assurance tools reason about overly simple execution models that elide transient execution leakage. Thus, implementations validated by high-assurance cryptography tools remain potentially vulnerable to transient execution attacks such as Spectre or Meltdown. Moreover, proposed countermeasures are not used in practice due to performance overhead.We propose, analyze, implement and evaluate an approach for writing efficient cryptographic implementations that are protected against Spectre v1 attacks. Our approach ensures speculative constant-time, an information flow property which guarantees that programs are protected against Spectre v1. Speculative constant-time is enforced by means of a (value-dependent) information flow type system. The type system tracks security levels depending on whether execution is misspeculating. We implement our approach in the Jasmin framework for high-assurance cryptography, and use it for protecting all implementations of an experimental cryptographic library that includes highly optimized implementations of symmetric primitives, of elliptic-curve cryptography, and of Kyber, a lattice-based KEM recently selected by NIST for standardization. The performance impact of our protections is very low; for example, less than 1% for Kyber and essentially zero for X25519.
16
CRYSTALS - Kyber: A CCA-Secure Module-Lattice-Based KEM
Joppe W. Bos, Léo Ducas, Eike Kiltz et al. · 2018 · 1K citations · Full text
Computing, Computer Science, Algebra +14
Meltdown: reading kernel memory from user space
Moritz Lipp, Michael Schwarz, Daniel Gruss et al. · USENIX Security Symposium · 2018 · 645 citations
HACL*: A Verified Modern Cryptographic Library
Jean-Karim Zinzindohoué, Karthikeyan Bhargavan, Jonathan Protzenko et al. · 2017 · 200 citations · Full text
SoK: Computer-Aided Cryptography
Manuel Barbosa, Gilles Barthe, Karthik Bhargavan et al. · 2021 · 113 citations