Testing Side-channel Security of Cryptographic Implementations against Future Microarchitectures

Files

hdl_145741.pdf (1.61 MB)
  (Published version)

Date

2024

Authors

Barthe, G.
Böhme, M.
Cauligi, S.
Chuengsatiansup, C.
Genkin, D.
Guarnieri, M.
Romero, D.M.
Schwabe, P.
Wu, D.
Yarom, Y.

Editors

Luo, B.
Liao, X.
Xu, J.
Kirda, E.
Lie, D.

Advisors

Journal Title

Journal ISSN

Volume Title

Type:

Conference paper

Citation

Proceedings of the ACM SIGSAC Conference on Computer and Communications Security (CCS'24), 2024 / Luo, B., Liao, X., Xu, J., Kirda, E., Lie, D. (ed./s), pp.1076-1090

Statement of Responsibility

Gilles Barthe, Marcel Böhme, Sunjay Cauligi, Chitchanok Chuengsatiansup, Daniel Genkin, Marco Guarnieri, David Mateos Romero, Peter Schwabe, David Wu, Yuval Yarom

Conference Name

ACM SIGSAC Conference on Computer and Communications Security (CCS) (14 Oct 2024 - 18 Oct 2024 : Salt Lake City, UT, USA)

Abstract

How will future microarchitectures impact the security of existing cryptographic implementations? As we cannot keep reducing the size of transistors, chip vendors have started developing new microarchitectural optimizations to speed up computation. A recent study (Sanchez Vicarte et al., ISCA 2021) suggests that these optimizations might open the Pandora’s box of microarchitectural attacks. However, there is little guidance on how to evaluate the security impact of future optimization proposals. To help chip vendors explore the impact of microarchitectural optimizations on cryptographic implementations, we develop (i) an expressive domain-specific language, called LmSpec, that allows them to specify the leakage model for the given optimization and (ii) a testing framework, called LmTest, to automatically detect leaks under the specified leakage model within the given implementation. Using this framework,we conduct an empirical study of 18 proposed microarchitectural optimizations on 25 implementations of eight cryptographic primitives in five popular libraries.We find that every implementation would contain secret-dependent leaks, sometimes sufficient to recover a victim’s secret key, if these optimizations were realized. Ironically, some leaks are possible only because of coding idioms used to prevent leaks under the standard constant-time model.

School/Discipline

Dissertation Note

Provenance

Description

Access Status

Rights

© 2024 Copyright held by the owner/author(s). This work is licensed under a Creative Commons Attribution International 4.0 License.

License

Call number

Persistent link to this record