March 16, 2017 By Larry Loeb 2 min read

Petya ransomware made the rounds in summer 2016, and now it has re-emerged in a new form. Researchers from Kaspersky Lab recently found a variant of the potent Petya ransomware called PetrWrap. This Trojan is able directly use the core engine of Petya to deploy attacker-created encryption keys. It was seen in recent enterprise-focused attacks monitored by the lab.

Researchers found that this new Trojan totally bypasses the original creators of Petya. The malware payload in PetrWrap is different as well, although the researchers said that a functional Petya v3 is part of the payload. This version of Petya was most problematic because it included a well-functioning Salsa20 encryption.

A New Petya Ransomware

Actors behind the ransomware have found a way to insert encryption keys of their own choosing into Petya. That means the malware will use those keys for any encryption it tries to pull off instead of the ones specified by the original creators.

PetrWrap injects its own keys by first delaying the attack for 90 minutes, which gives it time to prepare and decrypt onboard resources. It then will substitute the elliptic curve Diffie-Hellman (ECDH) key with its own implementation of this module. This enables the use of PetrWrap’s own private and public keys in the burning and pillaging that follows infection.

Intercepting With Hooks

The malware injects two new hooks into Petya’s code that will intercept the original Salsa20-encrypted key. The malware then returns its own keys in real time when it needs to encrypt data. PetrWrap also constructs a new user ID to identify the victim.

Petya typically locks up the victim computer rather than expend energy to encrypt all the files on a system. The upstart malware removes the original Petya ransom note and replaces it with one redirecting the payment. This revised ransom note is the only thing that a victim computer will display, since at this point the master file table (MFT) has been encrypted.

Because the rest of the files besides the MFT may be unaffected, Kaspersky Lab recommended that victims of this malware try a third-party tool, such as R-Studio, to see if any files are recoverable. And as always, steering clear of possibly malicious emails, attachments and websites is a good way to avoid infection.

More from

Government cybersecurity in 2025: Former Principal Deputy National Cyber Director weighs in

4 min read - As 2024 comes to an end, it’s time to look ahead to the state of public cybersecurity in 2025.The good news is this: Cybersecurity will be an ongoing concern for the government regardless of the party in power, as many current cybersecurity initiatives are bipartisan. But what will government cybersecurity look like in 2025?Will the country be better off than they are today? What are the positive signs that could signal a good year for national cybersecurity? And what threats should…

FYSA – Adobe Cold Fusion Path Traversal Vulnerability

2 min read - Summary Adobe has released a security bulletin (APSB24-107) addressing an arbitrary file system read vulnerability in ColdFusion, a web application server. The vulnerability, identified as CVE-2024-53961, can be exploited to read arbitrary files on the system, potentially leading to unauthorized access and data exposure. Threat Topography Threat Type: Arbitrary File System Read Industries Impacted: Technology, Software, and Web Development Geolocation: Global Environment Impact: Web servers running ColdFusion 2021 and 2023 are vulnerable Overview X-Force Incident Command is monitoring the disclosure…

2024 trends: Were they accurate?

4 min read - The new year always kicks off with a flood of prediction articles; then, 12 months later, our newsfeed is filled with wrap-up articles. But we are often left to wonder if experts got it right in January about how the year would unfold. As we close out 2024, let’s take a moment to go back and see if the crystal balls were working about how the year would play out in cybersecurity.Here are five trends that were often predicted for…

Topic updates

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