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

What does resilience in the cyber world look like in 2025 and beyond?

6 min read -  Back in 2021, we ran a series called “A Journey in Organizational Resilience.” These issues of this series remain applicable today and, in many cases, are more important than ever, given the rapid changes of the last few years. But the term "resilience" can be difficult to define, and when we define it, we may limit its scope, missing the big picture.In the age of generative artificial intelligence (gen AI), the prevalence of breach data from infostealers and the near-constant…

Airplane cybersecurity: Past, present, future

4 min read - With most aviation processes now digitized, airlines and the aviation industry as a whole must prioritize cybersecurity. If a cyber criminal launches an attack that affects a system involved in aviation — either an airline’s system or a third-party vendor — the entire process, from safety to passenger comfort, may be impacted.To improve security in the aviation industry, the FAA recently proposed new rules to tighten cybersecurity on airplanes. These rules would “protect the equipment, systems and networks of transport…

Protecting your digital assets from non-human identity attacks

4 min read - Untethered data accessibility and workflow automation are now foundational elements of most digital infrastructures. With the right applications and protocols in place, businesses no longer need to feel restricted by their lack of manpower or technical capabilities — machines are now filling those gaps.The use of non-human identities (NHIs) to power business-critical applications — especially those used in cloud computing environments or when facilitating service-to-service connections — has opened the doors for seamless operational efficiency. Unfortunately, these doors aren’t the…

Topic updates

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