Mac ransomware KeRanger has flaws that could let users recover files

KeRanger is based on Linux.Encoder, a flawed ransomware threat that targets Linux Web servers, researchers say

The KeRanger file-encrypting ransomware program for Mac OS X contains crypto flaws that could allow users to recover their files without paying cybercriminals.

According to researchers from antivirus firm Bitdefender, KeRanger is based on another ransomware program, called Linux.Encoder, that first appeared in November and targeted Linux-based Web servers.

The first three versions of Linux.Encoder had flaws in their cryptographic implementations that allowed the Bitdefender researchers to create tools that could be used to decrypt files affected by the malicious program.

KeRanger was found on March 4 on the official website of the popular Transmission BitTorrent client. The attackers had compromised the server and replaced the installer for Transmission version 2.90 with a malicious one.

The rogue installer was digitally signed with a legitimate Apple developer's certificate that had been issued to a Turkish company. The certificate was revoked by Apple a few days later.

"The infected Mac OS X torrent client update analyzed by Bitdefender Labs looks virtually identical to version 4 of the Linux.Encoder Trojan that has been infecting thousands of Linux servers since the beginning of 2016," the Bitdefender researchers said in blog post Tuesday.

Aside from some compiler-related differences and a new routine designed to locate and encrypt Apple Time Machine backups, all the other functions in the code are identical, said Bogdan Botezatu, senior e-threat analyst at Bitdefender.

According to Botezatu, Linux.Encoder version 4 appeared in early February and has the same crypto flaws as the previous versions, which means that KeRanger's encryption implementation is also broken.

Bitdefender has not yet released a decryption tool for KeRanger-affected files, but will consider developing one if there's enough demand for it.

A representative of the Transmission Project told Reuters that the rogue file was downloaded about 6,500 times. However, the number of OS X users whose files were actually encrypted is likely much lower because the ransomware has a three-day delay built in and it was discovered quickly.

It's a mystery why the attackers went to great lengths to steal a legitimate Apple developer's certificate and break into the website of a trusted software project, only to distribute a flawed ransomware program.

Whatever the reason for this inconsistency, other cybercriminals will most likely try to replicate the attack, and they won't make the same mistakes.

Join the CSO newsletter!

Error: Please check your email address.

More about AppleLinux

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Lucian Constantin

Latest Videos

  • 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

  • 150x50

    IDG Live Webinar:The right collaboration strategy will help your business take flight

    Speakers - Mike Harris, Engineering Services Manager, Jetstar - Christopher Johnson, IT Director APAC, 20th Century Fox - Brent Maxwell, Director of Information Systems, THE ICONIC - IDG MC/Moderator Anthony Caruana

    Play Video

More videos

Blog Posts

Market Place