Lune

S&P2023Top-tier venue

Jolt: Recovering TLS Signing Keys via Rowhammer Faults

Koksal Mus, Yarkin Doröz, M. Caner Tol, Kristi Rahman, Berk Sunar

Abstract

Digital Signature Schemes such as DSA, ECDSA, and RSA are widely deployed to protect the integrity of security protocols such as TLS, SSH, and IPSec. In TLS, for instance, RSA and (EC)DSA are used to sign the state of the agreed upon protocol parameters during the handshake phase. Naturally, RSA and (EC)DSA implementations have become the target of numerous attacks, including powerful side-channel attacks. Hence, cryptographic libraries were patched repeatedly over the years.Here we introduce Jolt, a novel attack targeting signature scheme implementations. Our attack exploits faulty signatures gained by injecting faults during signature generation. By using the signature verification primitive, we correct faulty signatures and, in the process deduce bits of the secret signing key. Compared to recent attacks that exploit single bit biases in the nonce that require 245 signatures, our attack requires less than a thousand faulty signatures for a 256-bit (EC)DSA. The performance improvement is due to the fact that our attack targets the secret signing key, which does not change across signing sessions. We show that the proposed attack also works on Schnorr and RSA signatures with minor modifications.We demonstrate the viability of Jolt by running experiments targeting TLS handshakes in common cryptographic libraries such as WolfSSL, OpenSSL, Microsoft SymCrypt, LibreSSL, and Amazon s2n. On our target platform, the online phase takes less than 2 hours to recover 192 bits of a 256-bit ECDSA key, which is sufficient for full key recovery. We note that while RSA signatures are protected in popular cryptographic libraries, OpenSSL remains vulnerable to double fault injection. We have also reviewed their Federal Information Processing Standard (FIPS) hardened versions which are slightly less efficient but still vulnerable to our attack. We found that (EC)DSA signatures remain largely unprotected against software-only faults, posing a threat to real-life deployments such as TLS, and potentially other security protocols such as SSH and IPSec. This highlights the need for a thorough review and implementation of faults checking in security protocol implementations.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

13 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • SledgeHammer: Amplifying Rowhammer via Bank-level Parallelism cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • SledgeHammer: Amplifying Rowhammer via Bank-level Parallelism cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • SledgeHammer: Amplifying Rowhammer via Bank-level Parallelism cites Another Flip in the Wall of Rowhammer Defenses
  • SledgeHammer: Amplifying Rowhammer via Bank-level Parallelism cites TRRespass: Exploiting the Many Sides of Target Row Refresh
  • ZenHammer: Rowhammer Attacks on AMD Zen-based Platforms cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • ZenHammer: Rowhammer Attacks on AMD Zen-based Platforms cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • ZenHammer: Rowhammer Attacks on AMD Zen-based Platforms cites Another Flip in the Wall of Rowhammer Defenses
  • ZenHammer: Rowhammer Attacks on AMD Zen-based Platforms cites Flip Feng Shui: Hammering a Needle in the Software Stack
  • ZenHammer: Rowhammer Attacks on AMD Zen-based Platforms cites TRRespass: Exploiting the Many Sides of Target Row Refresh
  • ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer Mitigation cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer Mitigation cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer Mitigation cites Another Flip in the Wall of Rowhammer Defenses
  • ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer Mitigation cites Flip Feng Shui: Hammering a Needle in the Software Stack
  • BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer Mitigation
  • BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites Another Flip in the Wall of Rowhammer Defenses
  • BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect Threads cites TRRespass: Exploiting the Many Sides of Target Row Refresh
  • Drammer: Deterministic Rowhammer Attacks on Mobile Platforms cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • Drammer: Deterministic Rowhammer Attacks on Mobile Platforms cites Flip Feng Shui: Hammering a Needle in the Software Stack
  • Another Flip in the Wall of Rowhammer Defenses cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • Another Flip in the Wall of Rowhammer Defenses cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • Another Flip in the Wall of Rowhammer Defenses cites Flip Feng Shui: Hammering a Needle in the Software Stack
  • TRRespass: Exploiting the Many Sides of Target Row Refresh cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • TRRespass: Exploiting the Many Sides of Target Row Refresh cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • TRRespass: Exploiting the Many Sides of Target Row Refresh cites Another Flip in the Wall of Rowhammer Defenses
  • TRRespass: Exploiting the Many Sides of Target Row Refresh cites Flip Feng Shui: Hammering a Needle in the Software Stack
  • Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer Mitigation
  • Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites DRAMA: Exploiting DRAM Addressing for Cross-CPU Attacks
  • Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites Drammer: Deterministic Rowhammer Attacks on Mobile Platforms
  • Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites Another Flip in the Wall of Rowhammer Defenses
  • Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future Solutions cites TRRespass: Exploiting the Many Sides of Target Row Refresh
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers13

  1. ZenHammer: Rowhammer Attacks on AMD Zen-based PlatformsPatrick Jattke, Max Wipfli, Flavien Solt, Michele Marazzi et al.USENIX Security 2024 · 63 citations
  2. ABACuS: All-Bank Activation Counters for Scalable and Low Overhead RowHammer MitigationAtaberk Olgun, Yahya Can Tugrul, Nisa Bostanci, Ismail Emir Yuksel et al.USENIX Security 2024 · 29 citations
  3. SledgeHammer: Amplifying Rowhammer via Bank-level ParallelismIngab Kang, Walter Wang, Jason Kim, Stephan van Schaik et al.USENIX Security 2024 · 28 citations
  4. Spatial Variation-Aware Read Disturbance Defenses: Experimental Analysis of Real DRAM Chips and Implications on Future SolutionsAbdullah Giray Yaglikçi, Yahya Can Tugrul, Geraldo F. Oliveira, Ismail Emir Yüksel et al.HPCA 2024 · 22 citations
  5. BreakHammer: Enhancing RowHammer Mitigations by Carefully Throttling Suspect ThreadsOguzhan Canpolat, A. Giray Yaglikçi, Ataberk Olgun, Ismail Emir Yuksel et al.MICRO 2024 · 19 citations

Builds on21

  1. DRAMA: Exploiting DRAM Addressing for Cross-CPU AttacksPeter Pessl, Daniel Gruss, Clémentine Maurice, Michael Schwarz et al.USENIX Security 2016 · 500 citations
  2. Drammer: Deterministic Rowhammer Attacks on Mobile PlatformsVictor van der Veen, Yanick Fratantonio, Martina Lindorfer, Daniel Gruss et al.CCS 2016 · 381 citations
  3. Flip Feng Shui: Hammering a Needle in the Software StackKaveh Razavi, Ben Gras, Erik Bosman, Bart Preneel et al.USENIX Security 2016 · 306 citations
  4. Another Flip in the Wall of Rowhammer DefensesDaniel Gruss, Moritz Lipp, Michael Schwarz, Daniel Genkin et al.S&P 2018 · 288 citations
  5. TRRespass: Exploiting the Many Sides of Target Row RefreshPietro Frigo, Emanuele Vannacci, Hasan Hassan, Victor van der Veen et al.S&P 2020 · 274 citations

Related papers

  1. "Make Sure DSA Signing Exponentiations Really are Constant-Time"Cesar Pereida García, Billy Bob Brumley, Yuval YaromCCS 2016 · 93 citations
  2. Open to a fault: On the passive compromise of TLS keys via transient errorsGeorge Arnold Sullivan, Jackson Sippe, Nadia Heninger, Eric WustrowUSENIX Security 2022
  3. Constant-Time Callees with Variable-Time CallersCesar Pereida García, Billy Bob BrumleyUSENIX Security 2017 · 63 citations
  4. Big Numbers - Big Troubles: Systematically Analyzing Nonce Leakage in (EC)DSA ImplementationsSamuel Weiser, David Schrammel, Lukas Bodner, Raphael SpreitzerUSENIX Security 2020
  5. Passive SSH Key Compromise via LatticesKeegan Ryan, Kaiwen He, George Arnold Sullivan, Nadia HeningerCCS 2023 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines