EternalBlue (MS17-010, CVE-2017-0144): the SMBv1 flaw behind WannaCry and NotPetya

Microsoft patched it in March 2017. Two months later, WannaCry hit unpatched networks worldwide. The lessons still apply to every office network.

Publicly disclosed: 14 March 2017

On 14 March 2017 Microsoft released security bulletin MS17-010, fixing several flaws in the SMBv1 file-sharing protocol in Windows. One of them, later known through the leaked exploit “EternalBlue”, allowed remote code execution over the network without a password. In May 2017 the WannaCry ransomware used it to spread automatically from computer to computer, and in June NotPetya followed — both caused massive damage in organizations that had not installed the March update.

CVESeverityAffectedFixed in
CVE-2017-0144Critical (remote code execution over SMBv1)Windows XP – Windows 10 and Windows Server 2003 – 2016 with SMBv1MS17-010 security update (March 2017)

Lessons that still apply

  1. Install security updates quickly — the patch existed two months before WannaCry.
  2. Disable SMBv1; modern Windows does not need it.
  3. Never expose SMB (port 445) to the internet.
  4. Segment the network so a worm cannot reach every computer and server at once.
  5. Replace unsupported Windows versions, or isolate them if they control equipment that cannot be changed.
  6. Keep offline or immutable backups — they made recovery possible for many victims.

The most expensive incidents often come from updates that were available but not installed.

Sources: Microsoft MS17-010, NVD CVE-2017-0144.

Need help with this? Contact CySec for a free consultation.


All articles

Need help with this?

Our engineers can review your current setup and propose concrete improvements.