NotPetya
- Type
- Wiper
- Capabilities
- Lateral movement
- Delivery
- Phishing
- Platforms
- Windows
NotPetya, also known as Nyetya, ExPetr and Diskcoder.C, is destructive Windows malware responsible for a major outbreak beginning on June 27, 2017. Although it imitated Petya ransomware and displayed ransom demands, it functioned as a wiper: payment did not provide a viable means of recovering affected systems. Western intelligence agencies attributed the operation to Sandworm, a group associated with Russia's military intelligence service, the GRU.
The outbreak initially spread through a compromised update mechanism for the Ukrainian accounting software M.E.Doc. NotPetya propagated across networks, including through exploitation of the Windows SMB vulnerability targeted by EternalBlue. Its network propagation allowed an operation aimed at Ukraine to disrupt multinational organizations far beyond the initial infection environment.
NotPetya caused extensive operational disruption in shipping, logistics and pharmaceutical supply chains. Maersk suffered worldwide interruptions to container shipping and terminal operations, rebuilt approximately 4,000 servers and 45,000 workstations, and estimated losses of US$250–300 million. The malware's destructive effects and rapid propagation distinguish it from financially motivated ransomware.
Associated vulnerabilities
4 CVEs Mallory has correlated with this family across public research and vendor advisories. Each card links to the full Mallory page for that vulnerability.
Associated threat actors
9 distinct threat actors Mallory has associated with this family across public reporting. Open in Mallory to see the full evidence chain and overlapping campaigns.
(Citation: NCSC Sandworm Feb 2020)(Citation: US District Court Indictment GRU Unit 74455 October 2020)(Citation: UK NCSC Olympic Attacks October 2020)(Citation: Secureworks IRON VIKING )(Citation: Trend Micro Cyclops Blink March 2022)(Citation: mandiant_apt44_unearthing_sandworm)
GRU Unit 74455, the same unit behind the 2017 NotPetya malware attack and repeated attacks on Ukraine's power grid.
The NotPetya attack of 2017, attributed to the GRU’s Sandworm unit, exemplifies this. Using the EternalBlue exploit, the attack was ostensibly targeted at Ukraine but spread globally, causing over $10 billion in damages.
Much has been written about the recent ExPetr/NotPetya/Nyetya/Petya outbreak... To date, nobody has been able to find any significant code sharing between ExPetr/Petya and older malware.
However, the technique of autonomous spread was like the NotPetya malware, attributed to APT28.
+3 more in the app. View in Mallory
Techniques & procedures
67 distinct techniques documented for this family, organized by ATT&CK tactic.
Reconnaissance
2 techniques
Reconnaissance
Sandworm Team has researched software code to enable supply-chain operations, most notably for the 2017 NotPetya attack.
Sandworm Team researched Ukraine's unique legal entity identifier (called an "EDRPOU" number), including running queries on the EDRPOU website, in preparation for the NotPetya attack.
Resource Development
3 techniques
Resource Development
If you go back about a decade , there were some fairly high-profile incidents -- cases like NotPetya and WannaCry -- where various companies from different parts of the world were impacted by these propagating events.
Police allege the man uploaded a video to a file exchange service that contained instructions on how to run the malware, and shared links to the video on a personal blog and social media. Links from the video pointed to downloads of the Petya.A malware.
Sandworm Team has developed malware for its operations, including malicious mobile applications and destructive malware such as NotPetya and Olympic Destroyer.
Initial Access
10 techniques
Initial Access
The indictment charges the defendants ... with a computer hacking conspiracy intended to deploy destructive malware and take other disruptive actions, for the strategic benefit of Russia, through unauthorized access to victims’ computers.
[NotPetya](https://attack.mitre.org/software/S0368) can use valid credentials with [PsExec](https://attack.mitre.org/software/S0029) or <code>wmic</code> to spread itself to remote systems.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)
the defendants and their co-conspirators deployed destructive malware and took other disruptive actions, for the strategic benefit of Russia, through unauthorized access to victim computers (hacking).
So far, all theories regarding the spread of ExPetr/Petya point into two directions: Distribution via trojanized updates to MeDoc users Distribution via waterhole attacks in Ukrainian news websites (one case known)
The prototype worm does not exploit zero-day vulnerabilities. It only targets publicly disclosed but unpatched bugs, misconfigurations, and recurring weakness classes.
The only confirmed initial infections comes through a malicious software update for a Ukrainian tax accounting software called MeDoc.
Sandworm Team has distributed NotPetya by compromising the legitimate Ukrainian accounting software M.E.Doc and replacing a legitimate software update with a malicious one.
Petya spread for the first time in March 2016, the ransomware stood out by in terms of efficiency, the new technical approach and the well-designed phishing campaign. Emails with typical job applications written in flawless German point to a file in Dropbox.
感染の方法については、サードパーティ製のアプリケーション「MeDoc」経由や、メールに添付されたファイル経由で感染する等、色々な情報が流れていますが、今のところ弊社では確証のある情報は確認できていません。
Emails with typical job applications written in flawless German point to a file in Dropbox. If you download and open it, the first sectors of the harddrive will be overwritten.
Execution
7 techniques
Execution
[NotPetya](https://attack.mitre.org/software/S0368) can use <code>wmic</code> to help propagate itself across a network.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)
Commans lines: schtasks /Create /SC once /TN "" /TR "<system folder>\shutdown.exe /r /f" /ST <time>
[NotPetya](https://attack.mitre.org/software/S0368) creates a task to reboot the system one hour after infection.(Citation: Talos Nyetya June 2017)
SMBv1の脆弱性による横展開については、EternalBlueまたはEternalRomance(いずれもMS17-010の更新プログラム適用で修正される)で脆弱性を突き、DoublePulsarを設置、DoublePulsarを介してlsass.exeにインメモリでDLLインジェクションを行います。
Two of the dropped files (the stealing modules) are executed with two arguments: 123 and a named pipe. The named pipe is used as a communication channel between the initial stage and the dropped executable.
名前付きパイプによるプロセス間通信にてパスワードを奪取
[NotPetya](https://attack.mitre.org/software/S0368) can use [PsExec](https://attack.mitre.org/software/S0029) to help propagate itself across a network.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)
Persistence
9 techniques
Persistence
Commans lines: schtasks /Create /SC once /TN "" /TR "<system folder>\shutdown.exe /r /f" /ST <time>
[NotPetya](https://attack.mitre.org/software/S0368) creates a task to reboot the system one hour after infection.(Citation: Talos Nyetya June 2017)
The indictment charges the defendants ... with a computer hacking conspiracy intended to deploy destructive malware and take other disruptive actions, for the strategic benefit of Russia, through unauthorized access to victims’ computers.
[NotPetya](https://attack.mitre.org/software/S0368) can use valid credentials with [PsExec](https://attack.mitre.org/software/S0029) or <code>wmic</code> to spread itself to remote systems.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)
the defendants and their co-conspirators deployed destructive malware and took other disruptive actions, for the strategic benefit of Russia, through unauthorized access to victim computers (hacking).
Sandworm planted a backdoor in an M.E.Doc software update that came to be known as "NotPetya."
OpenPetya uses a custom Master Boot Record (MBR) to load the stage-2 payload.
OpenPetya is an educational project designed to study how bootkits and low-level ransomware operate internally.
PsExecと自身を送り込んだうえでPsExecを利用して自身をリモート実行します。
Privilege Escalation
8 techniques
Privilege Escalation
Commans lines: schtasks /Create /SC once /TN "" /TR "<system folder>\shutdown.exe /r /f" /ST <time>
[NotPetya](https://attack.mitre.org/software/S0368) creates a task to reboot the system one hour after infection.(Citation: Talos Nyetya June 2017)
DoublePulsarを介してlsass.exeにインメモリでDLLインジェクションを行います。
The malware used an exploit which allowed the virus to spread automatically through trusted networks.
The indictment charges the defendants ... with a computer hacking conspiracy intended to deploy destructive malware and take other disruptive actions, for the strategic benefit of Russia, through unauthorized access to victims’ computers.
[NotPetya](https://attack.mitre.org/software/S0368) can use valid credentials with [PsExec](https://attack.mitre.org/software/S0029) or <code>wmic</code> to spread itself to remote systems.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)
PsExecの利用については、DuplicateTokenExを使用しユーザーのトークンを複製
PsExecと自身を送り込んだうえでPsExecを利用して自身をリモート実行します。
Stealth
11 techniques
Stealth
[NotPetya](https://attack.mitre.org/software/S0368) drops [PsExec](https://attack.mitre.org/software/S0029) with the filename dllhost.dat.(Citation: Talos Nyetya June 2017)
DoublePulsarを介してlsass.exeにインメモリでDLLインジェクションを行います。
The ransomware also erases the EventLog on infected machines.
「avp.exe」が存在することが確認できた場合には、MBRを含むディスクの先頭領域を無意味な値に書き換えます。これによりブートローダおよびOSが正しく起動しなくなります。
The indictment charges the defendants ... with a computer hacking conspiracy intended to deploy destructive malware and take other disruptive actions, for the strategic benefit of Russia, through unauthorized access to victims’ computers.
[NotPetya](https://attack.mitre.org/software/S0368) can use valid credentials with [PsExec](https://attack.mitre.org/software/S0029) or <code>wmic</code> to spread itself to remote systems.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)
PsExecの利用については、DuplicateTokenExを使用しユーザーのトークンを複製
After penetrating an organization’s network the threat actors used the PsExec tool to install ransomware on all endpoints and servers in the organization.
[NotPetya](https://attack.mitre.org/software/S0368) uses <code>rundll32.exe</code> to install itself on remote systems when accessed via [PsExec](https://attack.mitre.org/software/S0029) or <code>wmic</code>.(Citation: Talos Nyetya June 2017)
OpenPetya uses a custom Master Boot Record (MBR) to load the stage-2 payload.
OpenPetya is an educational project designed to study how bootkits and low-level ransomware operate internally.
Defense Impairment
2 techniques
Defense Impairment
First, the installer (OpenPetya.exe) backs up the original MBR and stores it in sector 63. It then overwrites the original boot sectors with the custom MBR and stage-2 bootloader binaries.
[NotPetya](https://attack.mitre.org/software/S0368) uses <code>wevtutil</code> to clear the Windows event logs.(Citation: Talos Nyetya June 2017)(Citation: US District Court Indictment GRU Unit 74455 October 2020)
Credential Access
4 techniques
Credential Access
It also contains a lightweight version of Mimikatz. It is used to dump valid credentials from memory... After initial infection, the ransomware will drop a tool in the %temp% folder, of what seems to be a lightweight version of Mimikatz... The tools are used to steal valid credentials to spread to other hosts in the network.
[NotPetya](https://attack.mitre.org/software/S0368) contains a modified version of [Mimikatz](https://attack.mitre.org/software/S0002) to help gather credentials that are later used for lateral movement.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)(Citation: NCSC Joint Report Public Tools)
In addition to using dumping credentials, it also uses a Windows function called “CredEnumerateW” to find credentials in the local credential store.
The worms exploited a vulnerability in an old version of Microsoft’s Server Message Block (SMB) protocol and continuous credential theft and reuse to spread.
Discovery
8 techniques
Discovery
ネットワーク情報の取得(NetBIOSから列挙)
Next, it extracts available devices on the network via different APIs... GetComputerNameExW(), NetBIOS GetAdaptersInfo() GetIpNetTable() GetExtendedTcpTable()
North Korean hackers used EternalBlue to unleash the WannaCry ransomware worm. Russian hackers later built it into NotPetya, which spiraled beyond its initial Ukrainian targets and caused an estimated $10 billion in damages globally.
NotPetyaは動作中のプロセスを列挙し、列挙したプロセスのハッシュ値が特定のウイルス対策製品のプロセス名のハッシュ値と合致するかを確認します。
[NotPetya](https://attack.mitre.org/software/S0368) searches for files ending with dozens of different file extensions prior to encryption.(Citation: US District Court Indictment GRU Unit 74455 October 2020)
it scans the drive to see if it is a multi-boot system to find additional volumes/partitions to try and encrypt their files as well.
It will scan for admin$ shares and connect to shares available for it to access.
[NotPetya](https://attack.mitre.org/software/S0368) determines if specific antivirus programs are running on an infected host machine.(Citation: US District Court Indictment GRU Unit 74455 October 2020)
Lateral Movement
7 techniques
Lateral Movement
If Petya finds valid credentials, it will use either PsExec or WMIC to infect other computers connected to the LAN.
“The groups using ransomware in their targeted attacks usually try to find vulnerable servers or servers with unprotected RDP access.”
[NotPetya](https://attack.mitre.org/software/S0368) can use [PsExec](https://attack.mitre.org/software/S0029), which interacts with the <code>ADMIN$</code> network share to execute commands on remote systems.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)(Citation: PsExec Russinovich)
Examples include 'Aquatic Panda used WMI for lateral movement in victim environments,' 'Deep Panda group is known to utilize WMI for lateral movement,' and 'Cinnamon Tempest has used Impacket for lateral movement via WMI.'
The leak and the subsequent repurposing of the exploits in the WannaCry and NotPetya worms that shut down computers worldwide...
[NotPetya](https://attack.mitre.org/software/S0368) can use two exploits in SMBv1, EternalBlue and EternalRomance, to spread itself to other remote systems on the network.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)(Citation: US District Court Indictment GRU Unit 74455 October 2020)
After penetrating an organization’s network the threat actors used the PsExec tool to install ransomware on all endpoints and servers in the organization.
Collection
1 technique
Collection
"There is already, before we even get to the machine-learning era, an automated component. And it’s that automation that gives it scale."
Command and Control
2 techniques
Command and Control
the infected machines were instructed to check in with a command machine that has been taken offline
It spread rapidly inside business networks
Exfiltration
1 technique
Exfiltration
Unrecognized IP addresses, outbound data transfers, and sudden bandwidth spikes can be early signs of cyber infiltration.
Impact
8 techniques
Impact
Greenberg describes how NotPetya, a supply chain attack designed to destroy systems, spread beyond the conflict resulting in billions of dollars of collateral damage to companies like Maersk, Merck & FedEx.
[NotPetya](https://attack.mitre.org/software/S0368) encrypts user files and disk structures like the MBR with 2048-bit RSA.(Citation: Talos Nyetya June 2017)(Citation: US-CERT NotPetya 2017)(Citation: US District Court Indictment GRU Unit 74455 October 2020)
No key even existed to reorder the scrambled noise of their computer’s contents.
One visible Telegram post referred to Pakistan Metrological Department access credentials, while another discussed .gov.bd infrastructure and DDoS activity.
the attackers then proceeded to brick those remote controls... deployed a “wiper” to brick the computers used to control the grid
[NotPetya](https://attack.mitre.org/software/S0368) will reboot the system one hour after infection.(Citation: Talos Nyetya June 2017)(Citation: US District Court Indictment GRU Unit 74455 October 2020)
MBR破壊型ワームランサムウェア... NotPetyaはMBRの書き込みの際... DeviceIoControl関数を利用してMBRの位置を取得、SetFilePointerExで先頭に移動し、書き込む
The ransomware encrypts files on disk and overwrite the MBR (Master Boot Record) if it has the necessary privileges... If the ransomware has sufficient privileges it will try to overwrite the MBR, preventing the operating system from loading after reboot.
Observables
25 indicators attributed across vendor reports, sandbox runs, and researcher write-ups. Values are masked here and available in full in Mallory.
Recent activity
200 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.