All vulnerabilities
CRITICALSupply chainexploited in the wildcurated

SC-MEDOC-NOTPETYA-2017

Software vendor · M.E.Doc (MEDoc) accounting software

Summary

Every catastrophe has a patient zero. For NotPetya, the most destructive cyberattack in history, it was M.E.Doc, a Ukrainian tax-accounting program used by the overwhelming majority of the country's companies (around 80% of the accounting-software market). Russia's Sandworm group had quietly hijacked M.E.Doc's software update servers, so when companies installed routine updates in 2017, they installed a backdoor instead. From that single poisoned channel, NotPetya spread across the world. This page covers the supply-chain entry point; the global outbreak it caused is its own story. It is the lesson that a trusted software update is one of the most dangerous things you can run, because you are running whatever the vendor's compromised server hands you.

How it happened

M.E.Doc is a Ukrainian accounting and tax-reporting product, and like most such software it updates itself automatically. Russia's Sandworm group (part of the GRU military intelligence) compromised M.E.Doc's update servers and, across at least three separate updates in April, May, and June 2017, planted a backdoor hidden inside a legitimate program module (ZvitPublishedObjects.dll). On 27 June 2017 they triggered NotPetya through that already-installed backdoor (not a fresh same-day update), hitting thousands of Ukrainian organisations that had done nothing more than keep their accounting software up to date.

The backdoor was patient and espionage-grade: it harvested each victim's unique business-registration code (the EDRPOU number) so the attackers could fingerprint specific organisations, and it used M.E.Doc's own update server as its command channel, hiding stolen data inside HTTP cookies so the traffic looked legitimate. The same channel had even been used to push a smaller ransomware strain (XData) weeks earlier. Once NotPetya detonated it propagated laterally using the EternalBlue exploit and the Mimikatz credential-stealing tool, and although it presented itself as ransomware, it was a wiper built for destruction, not profit. The trusted update channel was the weapon: a supply-chain attack that turned a mundane software update into the seed of a global disaster.

The damage

NotPetya hit more than 12,500 machines in Ukraine directly and spread to over 60 countries, causing billions of dollars in damage to companies like Maersk, Merck, and FedEx. M.E.Doc's vendor had ignored security warnings, and when Ukrainian police seized its servers they found them running without security updates since 2013. The US later indicted six GRU officers over the attack. The full scale of the outbreak, including Maersk's multi-billion-dollar recovery, is documented separately.

Why M.E.Doc still matters

It is the supply-chain entry lesson in its starkest form: a single compromised software vendor's update server seeded a global wiper. Trusted auto-updates are an attack surface, so prefer signed updates with verified provenance, monitor what third-party software executes, and segment networks so a poisoned update cannot reach the entire estate. And for vendors, the lesson is that securing your build and update infrastructure protects not just you but everyone downstream, M.E.Doc's neglect helped cost the world billions. It follows the same update-server-compromise pattern as CCleaner and SolarWinds, and the global outbreak it triggered is covered on the NotPetya page.

How to fix it

  • Isolate and rebuild any system that ran the backdoored M.E.Doc update from known-good media, and restore from offline backups.
  • Block the malicious update and remove the M.E.Doc auto-update path until the vendor's servers are confirmed clean.
  • Treat the trusted-update vector as a supply-chain compromise and hunt for the lateral movement that followed.

How to avoid it

  • Treat third-party software auto-updates as a supply-chain risk: prefer signed updates with verified provenance, and monitor what updated software executes.
  • Segment networks so a poisoned update on one host cannot spread across the estate.
  • Maintain tested, offline backups so a destructive payload delivered through an update is recoverable.
  • For vendors: harden and isolate your build and update infrastructure; its compromise endangers every downstream customer.

References

Related vulnerabilities

All Supply chain →