Vulnerability4 min readUpdated October 23, 2026

NotPetya: the destructive worm hidden in a software update

A hijacked update of a Ukrainian accounting program released a worm that posed as ransomware, destroyed data and caused billions of dollars in damage.

Illustration: a ring showing the CVSS score 8.8, with the title NotPetya

What to do now

  1. Install MS17-010 or any later Windows update on every computer, and switch off SMB version 1.
  2. Do not use the same administrator password on many computers: NotPetya spread with stolen passwords, which no patch prevents.
  3. If an old M.E.Doc installation is still around, remove versions 10.01.175–10.01.176, 10.01.180–10.01.181 and 10.01.188–10.01.189: they carried the backdoor.
Year
2017
CVSS 3.1 score
8.8 high
million US dollars in costs expected by the shipping group Maersk alone (press report)
200–300
companies hit in Ukraine alone, as confirmed by Ukraine's Cyber Police
2,000+
Why it is on the list
  • Reach not met

    Measured counts stay below the threshold: more than 12,500 machines in Ukraine and infections in 64 more countries in Microsoft's data, and over 2,000 companies in Ukraine (Microsoft; Ukraine's Cyber Police via Cisco Talos).

  • Mass exploitation met

    NotPetya spread through networks on its own and hit over 2,000 companies in Ukraine alone (Ukraine's Cyber Police via Cisco Talos).

  • Damage met

    The US government puts the damage at billions of dollars across Europe, Asia and the Americas; Maersk alone expected USD 200–300 million (White House; Reuters, press report).

  • Extraordinary response not met

    The UK and US governments named the Russian military as responsible, but naming an attacker does not protect anyone, and no measure beyond the existing patch is documented (UK Foreign Office; White House).

How a vulnerability gets on this list

The record
AffectedWindows networks, reached through the Ukrainian accounting software M.E.Doc
CVECVE-2017-0144, CVE-2017-0145
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Fixed inMS17-010 (March 14, 2017) for the SMB flaws; no patch stops the spread with stolen passwords, and the data could not be recovered
On CISA's list of exploited vulnerabilities sinceFebruary 10, 2022
Found byAnalyzed by ESET, Cisco Talos and Microsoft
Timeline
12345
  1. 1Fix available
  2. 2First M.E.Doc update with a hidden backdoor+31 days
  3. 3Third and last M.E.Doc update with the backdoor+100 days
  4. 4Outbreak begins+105 days
  5. 5The UK and US governments name the Russian military as responsible+338 days

On June 27, 2017, a program that looked like ransomware spread through company networks in Ukraine, and Microsoft saw infections in 64 more countries. Ransomware locks files and demands money to unlock them; this program destroyed data, and paying did not bring it back. Its main way in was a hijacked update of M.E.Doc, an accounting program widely used in Ukraine, and inside networks it also used the Windows flaw behind WannaCry.

How it worked

The attackers took over the update servers of M.E.Doc. From April 2017, they slipped a backdoor, a hidden way into a computer, into three regular updates of the program: on April 14, May 15, and June 22. On June 27, five days after the last of them, they used this channel to drop NotPetya into thousands of company networks at once. Cisco Talos found the malicious traffic in the logs of the update server from 9:11 a.m. to 12:31 p.m. UTC.

Inside a network, NotPetya spread in two ways. It pulled passwords out of the computer’s memory and used them with standard Windows administration tools, PsExec and WMIC, to copy itself to every machine it could reach. This worked even on fully updated computers. On machines without Microsoft’s update of March 2017, it also used EternalBlue and EternalRomance, two attack tools leaked from the US National Security Agency (NSA). They exploit flaws in SMB version 1, the old Windows file-sharing protocol.

Then it overwrote the disk’s boot record, the part a computer reads first when it starts. It restarted the computer behind a fake disk-check screen and encrypted the index of the file system, the table that records where each file is stored. The ransom note asked for 300 US dollars in Bitcoin, but the data could not be restored even after payment. Researchers therefore classed NotPetya as a wiper, a program built to destroy data, dressed up as ransomware.

  1. M.E.Doc updatecarries NotPetya into company networks
  2. Stolen passwordscopy it to every machine it can reach
  3. EternalBluetakes over machines without the March update
  4. Diskboot record overwritten, data lost
Two ways to spread inside a network: the stolen passwords worked even on fully updated computers.

A hijacked update is not a flaw in the program’s code, and no CVE number was found for it. That is why this page names the Windows flaw CVE-2017-0144, which EternalBlue exploits, as the main CVE, although it was only one of NotPetya’s ways to spread. Microsoft links EternalRomance to a second flaw, CVE-2017-0145.

Reach and damage

Microsoft’s telemetry, the data it receives from its customers’ computers, counted more than 12,500 machines in Ukraine that encountered NotPetya, and infections in 64 more countries. This is not a full count: Microsoft sees only its own customers. Ukraine’s Cyber Police confirmed over 2,000 affected companies in Ukraine alone, Cisco Talos reported. According to Talos, 80 % of Ukrainian businesses use M.E.Doc for their accounting.

The US government called NotPetya the most destructive and costly cyberattack in history, with billions of dollars in damage across Europe, Asia, and the Americas. The UK government said it cost organizations across Europe hundreds of millions of pounds. Neither gave an exact total. Higher totals that circulate, such as USD 10 billion, come from press interviews, not from official documents.

One company figure comes from the press: the shipping group Maersk expected a bill of USD 200 to 300 million, mainly in the third quarter of 2017, Reuters reported.

The attackers earned almost nothing. Their single Bitcoin address received 33 ransom payments by August 3, 2017, worth USD 9,835.86. That is tiny compared with the damage, and it fits a wiper rather than ransomware.

Ransom payments received, in the same study
NotPetya, June 27 to August 3, 201733
WannaCry, May 12 to October 2, 2017238

Source: Bitcoin payment analysis, Computers & Security, 2018. The two periods differ in length.

The fix and the response

Microsoft had fixed the SMB flaws on March 14, 2017, with security update MS17-010. That update stopped EternalBlue and EternalRomance, but not the spread with stolen passwords. Companies had to remove the backdoored M.E.Doc versions. Because the encrypted data could not be decrypted, affected systems had to be rebuilt.

On the day of the outbreak, Microsoft described how the worm spread. ESET found the backdoor in the M.E.Doc updates, and Cisco Talos examined the update server; both published their analyses in early July 2017. On February 15, 2018, the UK government and the White House named the Russian military as responsible for the attack.

Sources

  1. Microsoft: New ransomware, old techniques: Petya adds worm capabilities microsoft.com
  2. ESET: analysis of the backdoor in M.E.Doc updates welivesecurity.com
  3. Cisco Talos: The MeDoc Connection, forensics of the update server blog.talosintelligence.com
  4. NVD: CVE-2017-0144 nvd.nist.gov
  5. White House: statement on NotPetya (February 2018) trumpwhitehouse.archives.gov
  6. UK Foreign Office: statement on NotPetya (February 2018) gov.uk
  7. Bitcoin analysis of WannaCry and NotPetya ransom payments (Computers & Security, 2018) arxiv.org
  8. Reuters via Business Insurance: Maersk's expected cost (press) businessinsurance.com