Toutes les vulnérabilités
CRITICALInfracurated

INFRA-NOTPETYA-2017

Windows · Wiper · NotPetya (global outbreak)

Résumé

On 27 June 2017 NotPetya became the most destructive cyberattack in history, causing more than $10 billion in global damage. It looked like ransomware but was a wiper: even victims who paid could not recover, because its encryption kept nothing needed to decrypt. It entered through a poisoned update to M.E.Doc, a Ukrainian tax application, then spread inside networks at machine speed using the EternalBlue and EternalRomance SMB exploits plus Mimikatz to harvest credentials and move laterally, so even fully patched machines fell once one neighbour was compromised. The blast radius was global: Maersk had to reinstall roughly 45,000 PCs and 4,000 servers and was saved only because a single domain controller in Ghana had been offline during a power cut and held a clean copy of Active Directory; Merck's losses reached about $1.4 billion. The US, UK, and allies attributed it to Russia's GRU (Sandworm). It is the lesson in patching, stopping credential reuse, segmentation, and truly offline backups.

How it happened

NotPetya was aimed at one country and engineered to spread like wildfire. The seed was a supply-chain attack: Russian military hackers had compromised the update server of M.E.Doc, an accounting program used by roughly 80% of Ukrainian companies, and had been quietly seeding backdoored updates for weeks (in versions dated mid-April, mid-May, and 22 June) before detonating on 27 June 2017. One poisoned vendor reached almost an entire country.

What made it unstoppable was how it moved once inside a network. NotPetya carried EternalBlue and EternalRomance, the same leaked NSA SMB exploits behind WannaCry, but it did not rely on them alone. It also ran Mimikatz to scrape administrator passwords out of memory, then used those stolen credentials with legitimate Windows admin tools (PsExec and WMI) to push itself to other machines. That combination is why patching was not enough: a fully updated computer would still fall if NotPetya had harvested a working admin credential from a neighbour, because it was simply logging in. Then it encrypted the disk and master boot record and demanded a ransom, but the "installation key" it showed was random data, with no way to map a payment to a decryption key. There was never any decryption. It was destruction wearing a ransom note.

The damage

NotPetya was aimed at Ukraine but did not respect borders. The shipping giant Maersk was knocked completely offline; its chairman later told the Davos forum it had reinstalled 4,000 servers, 45,000 PCs, and 2,500 applications in ten days, work that would normally take six months, while running about 80% of its shipping volume by hand, and it survived its Active Directory only because one domain controller in Ghana happened to be offline during a power cut and held the last clean copy. The pharmaceutical company Merck's losses reached about $1.4 billion (the IT remediation alone was around $870 million), and it had to borrow HPV vaccine from a US government stockpile while production was disrupted. FedEx's TNT division lost roughly $400 million, the snack maker Mondelez about $150 million, and the builder Saint-Gobain nearly $400 million. Total damage exceeded $10 billion, making it the costliest cyberattack ever recorded, and the litigation reshaped cyber insurance: a New Jersey court ruled in 2023 that the "act of war" exclusion did not apply, and Merck settled its roughly $1.4 billion claim in January 2024.

Who was behind it

The US, UK, and allied governments attributed NotPetya to Sandworm, a unit of Russia's GRU military intelligence (Unit 74455), and in October 2020 the US Department of Justice indicted six GRU officers over it, putting a figure of nearly $1 billion on the damage to just three named US victims: a Pennsylvania hospital system, FedEx's TNT Express, and Merck. The strategic point is chilling: this was a weapon of state aimed at Ukraine's economy that, by design or by indifference, escaped and cost companies on every continent billions. It is the clearest case of cyber-conflict spillover hitting ordinary businesses with no stake in the fight.

Why NotPetya still matters

NotPetya rewired how defenders think about three things. First, ransomware that is actually a wiper: you cannot assume paying restores anything, so recovery has to mean restoring, which means real, tested, offline backups (the thing that saved Maersk, by luck). Second, that patching is necessary but not sufficient: NotPetya's worst spreading came from credential theft and lateral movement using legitimate tools, so unique local-admin passwords, admin tiering, and least privilege matter as much as the patch. Third, that a trusted software update is an attack surface. Its initial entry, the poisoned M.E.Doc update, is documented separately in the M.E.Doc compromise.

Comment le corriger

  • Rebuild affected hosts from known-good media; NotPetya destroys the boot record and disk, so there is no clean repair.
  • Restore from offline, immutable backups, and rebuild Active Directory from a protected copy.
  • Patch the EternalBlue and EternalRomance SMB flaws and disable SMBv1 before reconnecting anything.
  • Reset every credential, and assume any cached on a compromised host was harvested by Mimikatz.

Comment l’éviter

  • Patch SMB vulnerabilities and disable SMBv1 across the estate; one wormable host should not doom the network.
  • Break credential reuse with unique local-admin passwords (LAPS), admin tiering, and least privilege, so a stolen credential cannot pivot everywhere.
  • Segment networks so a single compromise cannot reach every machine, and limit SMB and admin protocols between segments.
  • Keep tested, offline, immutable backups; Maersk survived because, by luck, one copy was offline.
  • Treat third-party software updates (the M.E.Doc vector) as a supply-chain risk and monitor what they execute.

Références

Vulnérabilités liées

Tout Infra →