Confirmed: hackers can use Heartbleed to steal private SSL keys

Researchers have proven the Heartbleed OpenSSL bug can be used to extract private keys from a vulnerable web server, giving affected services concrete evidence they do need to revoke and reissue private SSL certificates.

Software engineer Fedor Indutny and security researcher Illka Mattila from Finland’s National Cyber Security Centre late Friday settled whether the Heartbleed OpenSSL bug could be used to steal private SSL keys from an affected server. The researchers were the first to extract private SSL keys from a vulnerable web server set up by web optimisation provider CloudFlare to test whether it could be done.

Should an attacker be able to use Heartbleed to extract a vulnerable website’s private SSL key, they would have the tools to impersonate all “HTTPS” sites that rely on a vulnerable version of OpenSSL.

““This would be the disaster scenario, requiring virtually every service to reissue and revoke its SSL certificates,” CloudFlare security engineer Nick Sullivan said..

It’s been speculated since details of the Heartbleed bug became public last Monday that it could expose private keys to an attacker, however experts considered it improbable in the absence of proof.

Calling for calm on Tuesday, Google security researcher Neel Mehta (one of the people who discovered the bug) wrote in a tweet: “heap allocation patterns make private key exposure unlikely for #heartbleed #dontpanic”

The bug meant an attacker could send small specially crafted packets to an affected server and  cause it to spit back 64KB nuggets of data from the server’s memory, potentially exposing usernames and passwords, private keys and other contents that would normally be encrypted. While web servers are the most visible point of vulnerability, the bug also affects a variety of other tools, such as VPN, routers and security products that OpenSSL is implemented in.

In an initial report released on Friday Sullivan said CloudFlare’s own engineers could not to use the bug to extract private keys during its 12 days testing the bug.

It then threw open the question to security researchers through a Heartbleed Challenge web site that ran on a vulnerable ngnix web server. Within nine hours, Indutry had the private key and posted it on Github as proof.

“Fedor sent 2.5 million requests over the course of the day and Ilkka sent around 100K requests,” Sullivan noted.

“We confirmed that all individuals used only the Heartbleed exploit to obtain the private key.”

Several other researchers have also managed to extract the private key.

Re-issuing and revoking SSL keys was already a recommended response to the bug, however the discovery that it can confirms that it’s necessary. Still, the advice from security experts is to stay calm.

“There have been lots of bugs that affect something that ultimately grants access to SSL private keys.  The world didn’t end then and it’s not ending now,” security researcher Dan Kaminsky said in response to the CloudFlare challenge.

Still, the bug should prompt rapid action by anyone running an affected service, given that knowledge of the bug offers hackers chance to develop tools to exploit it.

Kaminsky’s advice for system administrators and chief information security officers is to dig up all services that rely on SSL, including things like VPN. Cisco and Juniper, for example, have issued updates for the bug for some network gear, as have several security vendors. BlackBerry meanwhile has confirmed its BBM messaging app for iOS and Android are affected, in addition to its enterprise product Secure Work Spaces for Android and iOS.  

“Patch immediately, particularly the systems exposed to the outside world, and don’t just worry about HTTP.  Find anything moving SSL, particularly your SSL VPNs, prioritizing on open inbound, any TCP port,” said Kaminsky.

“Cycle your certs if you have them, you’re going to lose them, you may have already, we don’t know.  But patch, even if there’s self signed certs, this is a generic Information leakage in all sorts of apps.  If there is no patch and probably won’t ever be, look at putting a TLS proxy in front of the endpoint. Pretty sure stunnel4 can do this for you.” 

Join the CSO newsletter!

Error: Please check your email address.

Tags Nick SullivanFedor IndutnyjuniperPrivate SSL keysCloudFlareHeartbleed OpenSSL BugcybercrimeBlackberryGooglesecurityciscoHeartbleedencryptionNeel MahtaNational Cyber Security Centre

More about BlackBerryCiscoGoogleJuniper

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Liam Tung

Latest Videos

  • 150x50

    CSO Webinar: Will your data protection strategy be enough when disaster strikes?

    Speakers: - Paul O’Connor, Engagement leader - Performance Audit Group, Victorian Auditor-General’s Office (VAGO) - Nigel Phair, Managing Director, Centre for Internet Safety - Joshua Stenhouse, Technical Evangelist, Zerto - Anthony Caruana, CSO MC & Moderator

    Play Video

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

More videos

Blog Posts

Market Place