Malware & ransomware

What Is NotPetya? The 2017 Wiper That Cost $10 Billion

NotPetya wore ransomware's clothes but was a wiper: it encrypted systems with no way back. Here is how it spread, who it hit, and what it cost.

Cysoro Security TeamPublished · 8 min read
MALWARE NotPetya explained The 2017 wiper disguised as ransomware — and what it still teaches us. Your files are encrypted. Send $300 in Bitcoin to recover your data. Payment ID: 1Mz2M... NO WAY BACK cysoro.com
Quick answer

NotPetya is destructive malware that spread worldwide on 27 June 2017, disguised as ransomware. It entered through a compromised update of Ukrainian tax software, then wormed across corporate networks using stolen credentials and leaked Windows exploits, encrypting files and master boot records. Because there was no working decryption path, victims could not recover by paying, and global damage is estimated at around $10 billion.

Key takeaways

  • NotPetya was a wiper disguised as ransomware: it demanded $300 in Bitcoin but had no working way to decrypt victims' files.
  • It spread through a poisoned M.E.Doc software update, then moved laterally with Mimikatz credentials and the EternalBlue and EternalRomance exploits.
  • Patching, network segmentation, tested backups and least privilege are the defenses that would have stopped or contained it.

On 27 June 2017, screens went black in offices from Kyiv to Copenhagen. A ransom note demanded $300 in Bitcoin — but paying it would not have helped anyone. NotPetya was not really ransomware at all. It was a wiper, built to destroy, and it became the costliest cyberattack in history.

What is NotPetya?

NotPetya is destructive malware that spread worldwide on 27 June 2017, disguised as the Petya ransomware family. It encrypts files and the master boot record of Windows computers, making them unusable, and it spreads itself across networks like a worm.

The name was coined by researchers at Kaspersky Lab. The 2017 malware shared code with the Petya ransomware first seen in 2016, but it behaved very differently: the original Petya was a criminal money-making operation, while NotPetya was designed to spread fast and cause maximum damage. MITRE ATT&CK lists it as software S0368, used by the Sandworm Team, and describes it as wiper malware rather than ransomware.

It only targets Microsoft Windows systems. Once it gains administrator rights on a machine, it overwrites the master boot record (MBR), encrypts the master file table (MFT) and reboots the computer into a fake disk-check screen while the encryption runs. After that, Windows cannot start at all.

Is NotPetya ransomware or a wiper?

NotPetya is a wiper. It wears ransomware's clothes — a ransom note, a Bitcoin wallet, a victim ID — but the mechanism for getting files back was never built, so decryption was not possible even if a victim paid.

CISA's analysis found that NotPetya encrypts files with a dynamically generated 128-bit key and creates a unique victim ID, but there is no evidence of any relationship between the key and the ID. That means the attacker could not have decrypted a victim's files even with the victim's key and wallet ID. CISA concluded it behaves more like destructive malware than ransomware.

The payment channel collapsed almost immediately anyway. The email provider shut down the address victims were supposed to use to confirm payment, so paying was especially unlikely to lead to recovery. The $300 Bitcoin demand was, in the words of one researcher quoted at the time, a plausibly deniable cover for an attack designed to destroy.

Ransomware vs NotPetya: the difference that matteredReal ransomware• Encrypts files with a key the attacker holds• Victim ID is linked to the decryption key• Payment channel is kept working• Goal: get paid, so files must be recoverablePaying sometimes works. Sometimes.NotPetya• Encrypts files, MFT and master boot record• No link between victim ID and the key• Payment email shut down within hours• Goal: destroy data and disk structuresPaying never worked. Recovery meant backups.
Why NotPetya is classed as a wiper, not ransomware. Illustration by Cysoro.

How did NotPetya spread?

NotPetya spread in two stages: a trusted software update carried it into its first victims, and then it wormed across their networks using stolen credentials and leaked Windows exploits. No phishing email was needed.

The delivery mechanism was M.E.Doc, a Ukrainian tax accounting program that companies in Ukraine are required to use. Attackers had compromised M.E.Doc's development environment as far back as 14 April 2017, planting a backdoor that let them run arbitrary commands. On 27 June, a routine M.E.Doc update distributed the malware to its users.

Once inside a network, NotPetya used several lateral-movement methods at once, as documented by CISA:

  • Mimikatz credential theft. A modified version of Mimikatz pulled Windows credentials out of memory, including domain administrator credentials, so the malware could log in to other machines as a trusted admin.
  • PsExec and WMI. It used these legitimate Windows administration tools to run itself on remote systems with the stolen credentials.
  • EternalBlue and EternalRomance. Two exploits targeting the SMBv1 vulnerability patched by Microsoft in MS17-010 on 14 March 2017, which let it infect unpatched machines directly.
  • Network discovery. It scanned subnets and checked the compromised machine's address tables to find new targets, and on domain controllers it could use DHCP data to enumerate hosts.

This combination is why it moved so fast. Credential theft worked even on patched machines, and the exploits caught the unpatched ones. Flat networks — where an administrator on one endpoint could reach every other machine — let it cross entire companies in hours.

What happened on 27 June 2017?

On 27 June 2017, Ukrainian companies were among the first to report attacks, and within hours infections were reported across Europe and the United States. Banks, ministries, newspapers, energy firms, shipping terminals and hospitals were hit.

Ukraine was the main target. The attack began on the eve of Constitution Day, a Ukrainian national holiday, and hit the National Bank of Ukraine, government ministries, the Chernobyl nuclear plant's radiation monitoring system — which went offline — and more than 80 companies in the first wave. But M.E.Doc's reach did not stop at Ukraine's borders: multinationals with Ukrainian offices carried the infection into their global networks.

At Maersk, the world's largest container shipping company, every screen in the Copenhagen headquarters went black. Port terminals around the world fell back to paper. The company rebuilt about 4,000 servers, 45,000 PCs and 2,500 applications in roughly ten days, and only recovered because a single domain controller in Ghana happened to be offline during a power cut, preserving the only surviving copy of its Active Directory database.

Who was behind NotPetya?

The US government publicly attributed NotPetya to the Russian military. CISA updated its alert in February 2018 to reflect that attribution, and the White House called it the most destructive and costly cyberattack in history.

Security researchers and several governments blamed the Sandworm group, part of Russia's GRU military intelligence service. In October 2020, the US Department of Justice indicted six Russian officers in connection with NotPetya and other attacks. Russia has denied responsibility.

The evidence for a state actor, rather than a criminal gang, is the design itself: a wiper that destroys data cannot make money, the target set was centered on Ukraine, and the delivery method — compromising a software vendor's update system months in advance — takes the patience and resources of a well-resourced team.

How much damage did NotPetya cause?

Global damage from NotPetya is estimated at around $10 billion, according to the White House estimate cited in reporting after the attack, making it the costliest cyberattack on record. Public companies had to disclose their losses, so the figures are unusually well documented.

VictimWhat happenedReported cost
A.P. Moller–MaerskGlobal shipping operations crippled; 4,000 servers and 45,000 PCs rebuilt in about ten days$200–300 million
FedEx / TNT ExpressEuropean parcel operations disrupted for weeks; systems and customer data lostAbout $400 million
MerckManufacturing, research and sales halted worldwide; vaccine production disruptedAbout $285 million in 2017 costs, plus lost sales
Mondelez, Saint-Gobain, Reckitt BenckiserProduction lines and sales systems down across multiple countriesHundreds of millions combined
Ukraine (overall)Banks, ministries, energy firms and transport hit; a third of the economy disrupted for daysOver $400 million by one Ukrainian estimate

The legal fallout lasted years. Insurers argued the attack was an act of war and refused to pay; Merck won a court ruling that the war exclusion did not apply, and the big cases eventually settled. Lloyd's of London now requires state-backed cyberattack exclusions in standalone cyber insurance policies.

NotPetya vs WannaCry vs Petya: what's the difference?

The three names are often confused because they share code and exploits, but they were different attacks with different goals. WannaCry hit a month earlier, in May 2017, and also used EternalBlue — which is why the two are paired in most histories.

Petya (2016)WannaCry (May 2017)NotPetya (June 2017)
GoalMake moneyMake moneyDestroy data
DeliveryInfected email attachmentsInternet scanning for SMBv1Poisoned M.E.Doc software update
SpreadManual, per victimSelf-propagating wormCredentials + exploits + admin tools
RecoveryPayment sometimes workedPayment sometimes workedNo decryption possible
DamageMillionsBillionsAbout $10 billion

The shared lesson is that EternalBlue, an exploit developed by the NSA and leaked by the Shadow Brokers group, powered both 2017 outbreaks. Microsoft had patched the underlying SMBv1 flaw in March 2017, two months before WannaCry — but unpatched systems were still everywhere.

How do you protect against a NotPetya-style attack?

No single control would have stopped NotPetya everywhere, but the combination CISA recommended after the attack would have contained it. The same controls defend against most modern ransomware, which is why they are worth doing even though NotPetya itself is now well detected.

Five defenses that would have contained NotPetya1Patch fast, especially SMB flawsMS17-010 was available three months before the attack — unpatched machines were the easy targets2Disable SMBv1 and block port 445CISA's advice: disable SMBv1 and block SMB at the network boundary3Segment the networkflat networks let one infected PC reach everything — block workstation-to-workstation traffic4Least privilege for adminsno standing domain-admin sessions; Mimikatz can only steal what is in memory5Offline, tested backupsthe only recovery from a wiper — and test the restore, not just the backup
Defense in depth against worming wiper malware. Illustration by Cysoro.
  • Patch promptly. Apply security updates quickly, especially for network-facing services. The MS17-010 patch existed before either 2017 outbreak.
  • Disable SMBv1. CISA recommended disabling SMBv1 and blocking SMB at the network boundary (TCP port 445, UDP 137–138, TCP 139). Modern Windows versions have SMBv1 disabled by default.
  • Segment networks. Separate functions, use host firewalls, and block workstation-to-workstation communication so one infected machine cannot reach the whole company.
  • Enforce least privilege. Do not give users administrative access unless they need it, and keep domain-admin credentials out of everyday workstations where Mimikatz-style tools can harvest them.
  • Keep offline, tested backups. Backups that are connected to the network can be encrypted too. Test restores regularly — Maersk survived because one clean copy of its directory existed, by luck.
  • Vet your software supply chain. M.E.Doc was a trusted vendor. Ask critical suppliers how they protect their build and update systems, and monitor for unusual update behavior.

For a practical starting point, our small business cybersecurity checklist covers patching, backups and access control in order.

The network side matters at home too, and our guide to securing your Wi-Fi covers the same problem for a home network. CISA's full technical analysis is in its Petya alert, and MITRE ATT&CK lists the techniques NotPetya used.

What should you do if you are hit by a wiper like NotPetya?

Act fast and do not pay. With a true wiper there is no decryption to buy, and paying only funds the attackers and marks you as a payer.

  1. Isolate immediately. Disconnect affected machines from the network and power down uninfected systems if the spread is still active.
  2. Do not reboot infected machines. NotPetya encrypts the MBR on reboot; a machine that has not yet rebooted may still have recoverable data in memory, and forensic evidence is preserved.
  3. Call law enforcement. CISA recommends contacting a local FBI field office and reporting to the FBI's Internet Crime Complaint Center, keeping logs for investigators.
  4. Restore from clean backups. Rebuild from known-good images and offline backups rather than trying to clean infected systems in place.
  5. Assume credentials are stolen. Reset passwords and rotate admin credentials across the environment, since credential theft is how the malware moved.

The bottom line

NotPetya matters because it broke the ransomware bargain: victims paid and got nothing, because there was nothing to get. It showed that a trusted software update can be a weapon, that flat networks turn one infection into a company-wide disaster, and that backups are the only real answer to a wiper.

The defenses are unglamorous — patch, segment, limit admin rights, keep offline backups — but they are the same controls that stop today's ransomware. Check your own exposure with our free security headers checker and work through the checklist above before the next NotPetya-style attack, not after it.

Frequently asked questions

What is NotPetya in simple terms?

NotPetya is destructive malware that spread around the world on 27 June 2017. It looked like ransomware and demanded $300 in Bitcoin, but it was really a wiper: it destroyed files and disk structures with no working way to decrypt them, even if victims paid.

Is NotPetya ransomware or a wiper?

It is best described as a wiper. It used ransomware-style encryption and a ransom note, but CISA found no relationship between the encryption key and the victim ID, so decryption was not possible. The ransom demand was cover for a destructive attack.

How did NotPetya spread so fast?

It entered networks through a compromised update of M.E.Doc, Ukrainian tax software, then moved sideways using stolen Windows credentials harvested with a modified Mimikatz, the PsExec and WMI admin tools, and the EternalBlue and EternalRomance exploits against unpatched SMBv1.

Who created NotPetya?

The US government publicly attributed NotPetya to the Russian military, specifically the Sandworm group within the GRU. The attack began in Ukraine on the eve of Constitution Day and hit Ukrainian banks, ministries and energy firms first before spreading worldwide.

Can you recover files encrypted by NotPetya?

No. There is no known decryption method for NotPetya, and paying the ransom did not help — the email address used to confirm payments was shut down by the provider. The only recovery path was restoring from clean, tested backups.

How is NotPetya different from WannaCry?

Both used the EternalBlue SMB exploit in 2017, but WannaCry was a true ransomware campaign spread from the internet, while NotPetya arrived through a trusted software update and combined credential theft with several lateral-movement methods, making it far more destructive inside corporate networks.

Could NotPetya happen again today?

The specific 2017 malware is well detected now, but its methods are not: poisoned software updates, stolen admin credentials and unpatched services still cause major incidents. Patching, segmentation, least privilege and tested backups remain the core defenses.

What should a small business learn from NotPetya?

Trust in a vendor update is not a security control, flat networks let one infected machine reach everything, and backups only count if they are offline and tested. Our small business cybersecurity checklist covers these basics in order.

Sources

  1. CISA — Petya Ransomware (Alert TA17-181B)
  2. MITRE ATT&CK — NotPetya, Software S0368
  3. The Register — Everything you need to know about the Petya, er, NotPetya nasty
  4. Wikipedia — Petya (malware family)
  5. Wikipedia — 2017 Ukraine ransomware attacks
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against CISA alert TA17-181B, MITRE ATT&CK software S0368 and contemporary reporting of the June 2017 attack.

How we write and fact-check →

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free