Searching for The Prime Suspect: How Heartbleed Leaked Private Keys
Apr 28, 2014John Graham-Cumming

Summary
This post details the technical analysis of the Heartbleed vulnerability, specifically how it exposed private SSL keys by allowing attackers to extract prime numbers used in RSA encryption. It explains the underlying RSA and Montgomery Reduction algorithms, and through memory instrumentation, demonstrates how OpenSSL versions vulnerable to Heartbleed left copies of these prime numbers in memory. The post also contributes proposed patches to OpenSSL to address these memory management issues, enhancing the security of SSL/TLS implementations.
More from the Website Security & Threat Management trail
- We tested our own WAF with frontier AI models. Here’s what we found
- When scanners miss the attack: how Cloudflare Client-Side Security protects storefronts
- Introducing automatic remediation policies with Cloudflare CASB
- Introducing context-aware vulnerability discovery and remediation with Cloudflare Managed Defense and OpenAI Daybreak Models
- Introducing Adaptive Intelligence: undermining the economics of every bot attack