July 21, 2016 By Larry Loeb 2 min read

Petya ransomware has always been known for the peculiar manner in which it encrypts an affected disk. While other threats target files on a one-to-one basis, Petya attempts to encrypt the computer’s master boot blocks.

One for the Good Guys

The first version of Petya needed a reboot before the bad stuff would happen, so security researchers found a vaccine that would stop the machine from rebooting. Point to the good guys.

Petya’s authors took a bit of time to regroup and then responded by adding a module called Mischa as a backup. If Petya couldn’t get running, Mischa would encrypt the victim’s files on a one-to-one basis.

Petya Ransomware Reboots

There’s more bubbling beneath the surface here: Each of those Petya versions was using the Salsa20 algorithm to encrypt the master file table, which would then render the disk inaccessible.

But a few implementation bugs left in the ransomware weakened the intended algorithm. It all stemmed from the fact that the malware’s author implemented Salsa20 incorrectly by generating only 16 bits of a key parameter instead of 32.

This opened a window to potentially recover encrypted data, according to one security researcher who addressed Petya previously on the Malwarebytes blog.

Third Time’s the Charm

The creator realized the mistake and addressed the problem in a new release of Petya, the researcher noted in another Malwarebytes post. This new version seems to feature the proper Salsa20.

According to SecurityWeek, the new version also features a more complex preprocessing algorithm. Petya is reaching maturity. However, Petya’s ransomware-as-a-service page lists the new release as a beta version. What will this self-proclaimed beta end up as?

In the past, Petya used spam emails disguised as job applications as a spear phishing technique. These spam emails included a link that ended up pointing to cloud storage locations. It seems prudent to steer clear of such emails unless you are certain that they come from trusted sources. Trust but verify.

More from

Hive0137 and AI-supplemented malware distribution

12 min read - IBM X-Force tracks dozens of threat actor groups. One group in particular, tracked by X-Force as Hive0137, has been a highly active malware distributor since at least October 2023. Nominated by X-Force as having the “Most Complex Infection Chain” in a campaign in 2023, Hive0137 campaigns deliver DarkGate, NetSupport, T34-Loader and Pikabot malware payloads, some of which are likely used for initial access in ransomware attacks. The crypters used in the infection chains also suggest a close relationship with former…

Unveiling the latest banking trojan threats in LATAM

9 min read - This post was made possible through the research contributions of Amir Gendler.In our most recent research in the Latin American (LATAM) region, we at IBM Security Lab have observed a surge in campaigns linked with malicious Chrome extensions. These campaigns primarily target Latin America, with a particular emphasis on its financial institutions.In this blog post, we’ll shed light on the group responsible for disseminating this campaign. We’ll delve into the method of web injects and Man in the Browser, and…

Crisis communication: What NOT to do

4 min read - Read the 1st blog in this series, Cybersecurity crisis communication: What to doWhen an organization experiences a cyberattack, tensions are high, customers are concerned and the business is typically not operating at full capacity. Every move you make at this point makes a difference to your company’s future, and even a seemingly small mistake can cause permanent reputational damage.Because of the stress and many moving parts that are involved, businesses often fall short when it comes to communication in a crisis.…

Topic updates

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