January 25, 2016 By Larry Loeb 2 min read

Bleeping Computer reported that researchers have been quietly helping victims of the ransomware TeslaCrypt, which was first discovered in early 2015, recover their files. This effort used a flaw in TeslaCrypt’s encryption key storage algorithm present in version 2.0 of the ransomware. The fact that this malware could be decrypted was kept under wraps because the researchers were hoping that the developer would not learn about it and attempt to find a fix.

But somehow the cybercriminals found out they had been hosed and came up with version 3.0, which corrected the key storage so that all keys were once again encrypted. Luckily, keys and files used in older versions of the ransomware are still recoverable, provided they have certain file extensions.

Key Storage: The Weakest Link

The problem for the ransomware revolved around how the decryption keys were stored on the target’s computer. The malware encrypts the victim’s files using the AES encryption algorithm. This means that it used the same key to encrypt and decrypt a file. Researchers found that every time TeslaCrypt was restarted, a new AES key was generated. This key was stored in the files that were encrypted during each session. As Bleeping Computer pointed out, that meant some files would be encrypted with different keys than others.

To protect this variable key, the malware developers first used another algorithm to encrypt it before it was stored in each encrypted file. That’s where researchers found the chink in the malware’s armor.

How TeslaCrypt Was Cracked Open

The size of this stored key was not sufficiently strong enough to remain hidden. It was possible for victims to use specialized programs to factorize the key and retrieve their prime numbers. Once the prime numbers were identified, other programs could reconstruct the decryption key and decrypt the malware-created files. Volunteers even opened a support forum to help infected users get their files back.

The efforts of these volunteers and researchers showed that a united response to this kind of pernicious malware is possible, and it can even succeed in retrieving data that has been hijacked. The community effort should give hope to others caught up in a web of criminal activities.

More from

Cyberattack on American Water: A warning to critical infrastructure

3 min read - American Water, the largest publicly traded United States water and wastewater utility, recently experienced a cybersecurity incident that forced the company to disconnect key systems, including its customer billing platform. As the company’s investigation continues, there are growing concerns about the vulnerabilities that persist in the water sector, which has increasingly become a target for cyberattacks. The breach is a stark reminder of the critical infrastructure risks that have long plagued the industry. While the water utility has confirmed that…

What’s behind unchecked CVE proliferation, and what to do about it

4 min read - The volume of Common Vulnerabilities and Exposures (CVEs) has reached staggering levels, placing immense pressure on organizations' cyber defenses. According to SecurityScorecard, there were 29,000 vulnerabilities recorded in 2023, and by mid-2024, nearly 27,500 had already been identified.Meanwhile, Coalition's 2024 Cyber Threat Index forecasts that the total number of CVEs for 2024 will hit 34,888—a 25% increase compared to the previous year. This upward trend presents a significant challenge for organizations trying to manage vulnerabilities and mitigate potential exploits.What’s behind…

Quishing: A growing threat hiding in plain sight

4 min read - Our mobile devices go everywhere we go, and we can use them for almost anything. For businesses, the accessibility of mobile devices has also made it easier to create more interactive ways to introduce new products and services while improving user experiences across different industries. Quick-response (QR) codes are a good example of this in action and help mobile devices quickly navigate to web pages or install new software by simply scanning an image.However, legitimate organizations aren’t the only ones…

Topic updates

Get email updates and stay ahead of the latest threats to the security landscape, thought leadership and research.
Subscribe today