Zur Hauptnavigation wechseln Zur Suche wechseln Zum Hauptinhalt wechseln

MemJam: A False Dependency Attack Against Constant-Time Crypto Implementations in SGX

Ahmad Moghimi, Thomas Eisenbarth, Berk Sunar

Abstract

Cache attacks exploit memory access patterns of cryptographic implementations. Constant-Time implementation techniques have become an indispensable tool in fighting cache timing attacks. These techniques engineer the memory accesses of cryptographic operations to follow a uniform key independent pattern. However, the constant-time behavior is dependent on the underlying architecture, which can be highly complex and often incorporates unpublished features. CacheBleed attack targets cache bank conflicts and thereby invalidates the assumption that microarchitectural side-channel adversaries can only observe memory with cache line granularity. In this work, we propose MemJam, a side-channel attack that exploits false dependency of memory read-after-write and provides a high quality intra cache level timing channel. As a proof of concept, we demonstrate the first key recovery attacks on a constant-time implementation of AES, and a SM4 implementation with cache protection in the current Intel Integrated Performance Primitives (Intel IPP) cryptographic library. Further, we demonstrate the first intra cache level timing attack on SGX by reproducing the AES key recovery results on an enclave that performs encryption using the aforementioned constant-time implementation of AES. Our results show that we can not only use this side channel to efficiently attack memory dependent cryptographic operations but also to bypass proposed protections. Compared to CacheBleed, which is limited to older processor generations, MemJam is the first intra cache level attack applicable to all major Intel processors including the latest generations that support the SGX extension.
OriginalspracheEnglisch
TitelTopics in Cryptology -- CT-RSA 2018
Redakteure/-innenNigel P. Smart
Seitenumfang24
Band10808
ErscheinungsortCham
Herausgeber (Verlag)Springer International Publishing
Erscheinungsdatum07.03.2018
Seiten21-44
ISBN (Print)978-3-319-76952-3
ISBN (elektronisch)978-3-319-76953-0
DOIs
PublikationsstatusVeröffentlicht - 07.03.2018
VeranstaltungThe Cryptographers' Track at the RSA Conference 2018 - San Francisco, USA / Vereinigte Staaten
Dauer: 16.04.2018 → 20.04.2018

UN SDGs

Dieser Output leistet einen Beitrag zu folgendem(n) Ziel(en) für nachhaltige Entwicklung

  1. SDG 9 – Industrie, Innovation und Infrastruktur
    SDG 9 – Industrie, Innovation und Infrastruktur
  2. SDG 11 – Nachhaltige Städte und Gemeinschaften
    SDG 11 – Nachhaltige Städte und Gemeinschaften
  3. SDG 12 – Verantwortungsvoller Konsum und Produktion
    SDG 12 – Verantwortungsvoller Konsum und Produktion

Fingerprint

Untersuchen Sie die Forschungsthemen von „MemJam: A False Dependency Attack Against Constant-Time Crypto Implementations in SGX“. Zusammen bilden sie einen einzigartigen Fingerprint.

Zitieren