A massive cyber-attack reported yesterday, targeting Ukraine Critical Infrastructure, and few other entities in the region. Coincidentally, US political/administrative leader has plans to visit Ukraine during the coming days.Does the latest widespread ransomware infection indicate state actor involvement? Relatively less matured security posture of Ukraine firms, especially national critical infrastructure organizations compounded to the easy exploitation by the bad actors. Aircraft manufacturing, transportation, postal service, government officials, national banks – many of the key areas were impacted, with an opened can of worms by NSA? At the same time, Russia’s biggest oil producer “Rosneft” also felt the “Petya” heat. The “WannaCry” style of ransomware infection that exploits a supposedly “ZeroDay” vulnerability in Microsoft environment. The malware spreads through similar vulnerability that was the cause of the global security chaos couple of months back. Initially, researchers believed this new ransomware was a different version of an earlier threat called “Petya.” Later discovered that this was a new strain altogether, which borrowed some code from Petya, hence the reason why they recently started it calling “NotPetya,” “Petna,” or as some like to call it “SortaPetya” Considering that the security weakness was identified and was being exploited by NSA for spying organizations in some specific regions, links and suspicion are on from the cyber security community that, the new trend of ransomware triggered by state actors, and not by random players or criminals. Some of the investigations by UK and US agencies have indirectly referred North Korea for “WannaCry” and Bangladesh Central Bank Swift” incidents Since the SMB1 (Server Message Base Protocol) is one of the many “Zero Days” available on the dark web or with criminals and potentially with state actors, the cyber world is expecting more sophisticated and targeted attacks. Existing security technologies and solutions cannot protect organizations and countries from zero-day attacks (where there are no patches available or no signatures from product vendors.). The only potentially practical recommendation is to take a holistic approach towards these issues, by having right process, technology, and people controls. A lot of resources and quicker actions were visible to protect from the latest “Petya” ransomware variant, including the signature DAT file updates from major Antivirus players. However, interesting to see, how much it can safeguard the firms from different variants of the same malware or a combined form of multiple similar malicious codes. It is always a cat-mouse game for cyber security professionals and the parties on the other side of the table! The defense can cripple based on how targeted and determined the attack and attackers are! To be proactive and to be better prepared for the fight, organizations must develop basic security hygiene and tighten up their security fundamentals. These basics include minimum the following
Details of the “Petya” Ransomware
Certain information reports this ransomware as a variant of Petya and Misha (also known as GoldenEye).The actual main targets are in Ukraine and Russia. Only few sample have detected in France, Germany, North Korea, and SpainHow to works?
Encrypts MFT (Master File Tree) tables for NTFS partitions and overwrites the MBR (Master Boot Record) with a custom bootloader that shows a ransom note and prevents victims from booting their computer.Functionality
Petya best described as a three-stage ransomware, where each stage has its dedicated functionality: 1. Stage 0 “MBR Overwrite” – Overwrite the hard drive’s Master Boot Record and implanting custom boot-loader. 2. Stage 1 “MFT Encryption” – Use the custom boot-loader introduced in Stage 0 to encrypt all Master-File- Table (MFT) records, which renders the file system completely unreadable. 3. Stage 2 “Ransom Demand” – Display the Petya logo and the ransom note detailing what must be done to decrypt the hard-drive.Facts:
- Current variant uses EternalBlue as an attack vector (CVE-2017- 0143 [3])
- spreading via SMB post-exploitation
Ransomware performs the following actions after exploitation of the vulnerability:
- Main binary at hxxp://185[.]165[.]29[.]78/~alex/svchost[.]exe
- Clears the Windows event log using Wevtutil (wevtutil cl Setup & wevtutil cl System & wevtutil cl Security & wevtutil cl Application & fsutil usn deletejournal /D %c:)
- Writes a message to the raw disk partition
- Reboot the system at noon as a logic bomb (schtasks %ws/Create /SC once /TN ""/TR "%ws"/ST %02d:%02d ; at %02d:%02d %ws)
- After booting, a message appears notifying system encryption and demanding a Bitcoin $USD 300 ransom
- Binary uses a fake Microsoft digital signature [1]
- Bitcoin wallet utilized in this attack [2]
- [email protected] is the email address used in this attack
What files the “Petya” tries to Encrypt?
The ransomware attempts to encrypt files that correspond to the following file extensions: [.]3ds,[.]7z,[.]accdb,[.]ai,[.]asp,[.]aspx,[.]avhd,[.]back,[.]bak,[.]c,[.]cfg,[.]conf,[.]cpp,[.]cs,[.]ctl,[.]dbf,[.]disk ,[.]djvu,[.]doc,[.]docx,[.]dwg,[.]eml,[.]fdb,[.]gz,[.]h,[.]hdd,[.]kdbx,[.]mail,[.]mdb,[.]msg,[.]nrg,[.]ora,[.]ost,[. ]ova,[.]ovf,[.]pdf,[.]php,[.]pmf,[.]ppt,[.]pptx,[.]pst,[.]pvi,[.]py,[.]pyc,[.]rar,[.]rtf,[.]sln,[.]sql,[.]tar,[.]vbox,[.] vbs,[.]vcb,[.]vdi,[.]vfd,[.]vmc,[.]vmdk,[.]vmsd,[.]vmx,[.]vsdx,[.]vsv,[.]work,[.]xls,[.]xlsx,[.]xvd,[.]zip,[.] In order to help detection and identification of this ransomware, here is a non-exhaustive list of indicators of compromise (IoC):SHA256 hashes
Files related to this attack
Anti-Virus definitions
YARA Rule