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

What we can learn from the best collegiate cyber defenders

3 min read - This year marked the 19th season of the National Collegiate Cyber Defense Competition (NCCDC). For those unfamiliar, CCDC is a competition that puts student teams in charge of managing IT for a fictitious company as the network is undergoing a fundamental transformation. This year the challenge involved a common scenario: a merger. Ten finalist teams were tasked with managing IT infrastructure during this migrational period and, as an added bonus, the networks were simultaneously attacked by a group of red…

A spotlight on Akira ransomware from X-Force Incident Response and Threat Intelligence

7 min read - This article was made possible thanks to contributions from Aaron Gdanski.IBM X-Force Incident Response and Threat Intelligence teams have investigated several Akira ransomware attacks since this threat actor group emerged in March 2023. This blog will share X-Force’s unique perspective on Akira gained while observing the threat actors behind this ransomware, including commands used to deploy the ransomware, active exploitation of CVE-2023-20269 and analysis of the ransomware binary.The Akira ransomware group has gained notoriety in the current cybersecurity landscape, underscored…

New proposed federal data privacy law suggests big changes

3 min read - After years of work and unsuccessful attempts at legislation, a draft of a federal data privacy law was recently released. The United States House Committee on Energy and Commerce released the American Privacy Rights Act on April 7, 2024. Several issues stood in the way of passing legislation in the past, such as whether states could issue tougher rules and if individuals could sue companies for privacy violations. With the American Privacy Rights Act of 2024, the U.S. government established…

Topic updates

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