Petya/NotPetya, another ransomware following close on the heels of WannaCry is also based on the EternalBlue exploit. Ukraine and Russia has the most attacks reported, possibly due to the suspected initial vector via MeDoc(Tax software), commonly used in Ukraine.
Notably Rosneft (One of the largest crude oil producers), A.P. Moller-Maersk (Shipping said to be affected worldwide), WPP (World’s largest advertising agency), Chernobyl radiation monitoring systems, Ukraine’s government network and the central bank have been affected. Additional victims have been reported in Europe and the US.
While organisations who have taken action to protect themselves against the WannaCry ransomware by patching their systems with Windows Update are safe, this version is more dangerous as the computers affected will not be able to boot and will not be responsive.
The ransomware has been poorly designed with a shared payment address and the payment acknowledgement email(firstname.lastname@example.org) has been shut down by the provider. There is no way for the criminals to identify who had made payments. Payment will not guarantee the release of your data and there is no way to get a decryption key.
If you think you are affected and see a “Repairing file system on C: screen” power off your PC. That is the encryption process and interrupting it might allow you to recover some files.
So far Petya is known to be spreading via 2 vectors:
- Email with weaponised Microsoft Word and PDF documents. The malware is downloaded and run when the documents are opened, executing the EternalBlue(CVE-2017–0144) Server Message Block (SMB) worm. This will then be spread to other computers within the network. EternalRomance exploit is also known to be used.
- A poisoned update for the MeDoc update common in Ukrainian organisations. FireEye has a detailed analysis at https://www.fireeye.com/blog/threat-research/2017/06/petya-ransomware-spreading-via-eternalblue-exploit.html. Ukraine police reports update server upd.me-doc.com.ua released a exe on June 27 containing the malware.
Who is Affected:
- Windows Server 2016
- Windows Server 2012 and Window Server 2012 R2
- Window Server 2008 and Windows Server 2008 R2
- Windows 10
- Windows 8.1
- Windows RT 8.1
- Windows 7
- Windows Vista
- Windows XP
What Can I Do:
- Ensure employees are aware of the situation and as always, keep a lookout for suspicious emails
- Ensure Microsoft Office Trust Center has secure settings. Instructions are similar to those at https://blog.horangi.com/preventing-attacks-on-microsoft-office-c78423262ceb
- Microsoft had released a guide to securing against the EternalBlue based attacks at https://blogs.technet.microsoft.com/msrc/2017/05/12/customer-guidance-for-wannacrypt-attacks/
- Ensure systems are fully patched(especially https://technet.microsoft.com/en-us/library/security/ms17-010.aspx)and antivirus definitions are updated
- Block ports 137, 138, 139 and 445.
- Ensure backups are available
- Creating a read-only file C:\Windows\perfc.dat will prevent if from encrypting files locally but does not prevent spreading
NotPetya uses the same EternalBlue SMB exploit as Wannacry and the Windows patch will block it. It uses a modified version of https://github.com/gentilkiwi/mimikatz to get network admin credentials from memory.
It will attempt to infect other network computers via PsExec and WMIC. It is design to spread internally before activating in 10–60 min.
It rewrites the master boot record so windows will not start, and encrypts data via AES-128.
For all files, one AES-128 key is generated.
This AES key is encrypted with threat actors’ public RSA-2048 key.
Encrypted AES keys are saved to a README file.
Keys are securely generated.