As research concluded, the original author of Petya, Janus, was not involved in the latest attacks on Ukraine. His original malware was pirated and extended by an unknown actor (read more here). As a result of the recent events, Janus probably decided to shut down the Petya project. Similarly to the authors of TeslaCrypt, he released his private key, allowing all the victims of the previous Petya attacks, to get their files back.
(The author of Petya has been known for previously leaking the keys of his rival, Chimera ransomware – details here).
What exactly happened?
Yesterday, Janus has made a public announcement on Twitter:
The message contained a link to the file, hosted at mega.nz service.
End Date: Monday Feb-24-2020 9:44:42 PST
Buy It Now for only: $0.99
Buy It Now | Add to watch list
End Date: Thursday Mar-19-2020 3:44:39 PDT
Buy It Now for only: $11.55
Buy It Now | Add to watch list
The linked file was encrypted and password protected:
After guessing the password and decrypting the package with the help of openssl, I got the following plaintext:
Here is our secp192k1 privkey:
We used ECIES (with AES-256-ECB) Scheme to encrypt the decryption password into the “Personal Code” which is BASE58 encoded.
The verification process will take some time, but so far it seems that this is Janus’ private key for all the previous Petyas.
Can it help in case of EternalPetya/NotPetya?
This key cannot help in case of EternalPetya, since, in this particular case, the Salsa keys are not encrypted with Janus’ public key, but, instead of this, erased and lost forever (read more). It can only help the people who were attacked by Petya/Goldeneye in the past.
What is the value added by having this key?
Just to recall, the first version of Petya, Red Petya, has been successfully cracked by leo_and_stone. Based on his work, various decryptors have been released, i.e. antipetya live CD.
The error in the second version – a.k.a. Green Petya, revealed by me, was not as severe. Yet, it allowed for writing a bruforcer. Thanks to the GPU-based solution implemented by procrash, the process of cracking the Salsa key has been sped up to 3 days.
Higher versions fixed the flaws to an extent making cracking of the Salsa key no longer possible.
Thanks to the currently published master key, all the people who have preserved the images of the disks encrypted by the relevant versions of Petya, may get a chance of getting their data back.
Further research related to the verification of the obtained material and the decryptor is in progress. We will keep you updated, please stay tuned!
Goldeneye – the last Petya version released by Janus:
Goldeneye Ransomware – the Petya/Mischa combo rebranded
This was a guest post written by Hasherezade, an independent researcher and programmer with a strong interest in InfoSec. She loves going in details about malware and sharing threat information with the community. Check her out on Twitter @hasherezade and her personal blog: https://hshrzd.wordp.
The post The key to old Petya versions has been published by the malware author appeared first on Malwarebytes Labs.
Click here for best antivirus and antispyware software
Powered by WPeMatico