EternalBlue showed that one unpatched legacy protocol can turn a two-month patching delay into a global outage. The exploit targeted flaws in Microsoft's SMBv1 server that Microsoft had fixed in bulletin MS17-010 on 14 March 2017, yet the WannaCry and NotPetya outbreaks of May and June 2017 still reached hospitals, shipping lines and manufacturers around the world. This guide profiles the vulnerability, the timeline from patch to leak to outbreak, the official government attributions, and the exposure checks and SMBv1 removal work that still matter in 2026. It is written for security practitioners and students, and it is defensive only: there are no exploit details here. For the wider programme around it, see the Vulnerability Management Guide.
Key takeaways
- MS17-010 fixed six CVEs in the Windows SMBv1 server (CVE-2017-0143 to CVE-2017-0148), five rated Critical for remote code execution, all reachable without authentication.
- The patch came first: Microsoft shipped the fix on 14 March 2017, a month before the exploits leaked and two months before WannaCry, so the damage came from unapplied updates and unsupported systems.
- All six CVEs are in the CISA KEV catalogue with known ransomware use, so they remain priority findings in any scan that still turns them up.
- Attribution comes from governments: the UK NCSC assessed WannaCry as highly likely the work of North Korean actors known as the Lazarus Group, and NotPetya as almost certainly the work of the Russian military.
- The lasting fix is removing SMBv1, not just patching it: audit for SMBv1 clients, remove the feature, and block SMB at network boundaries and between workstations.
What EternalBlue is
EternalBlue is the name given to an exploit for the Windows SMBv1 server that was published in April 2017 as part of a leak of offensive tooling by a group calling itself the Shadow Brokers. Microsoft's Security Response Center analysed the release and stated on 15 April 2017 that EternalBlue, along with EternalChampion, EternalRomance and EternalSynergy, was addressed by MS17-010. Three other exploits in the same release (EnglishmanDentist, EsteemAudit and ExplodingCan) did not reproduce on supported platforms, according to the same analysis.
The flaws sit in how the SMBv1 server handles specially crafted packets. The MS17-010 bulletin states that an unauthenticated attacker could typically exploit them by sending such packets to a targeted SMBv1 server. That combination, no credentials and a service that listens on TCP 445 across most Windows estates, is what made the exploit suitable for self-propagating malware.
| Profile item | Detail |
|---|---|
| Name | EternalBlue (related exploits: EternalChampion, EternalRomance, EternalSynergy) |
| Microsoft bulletin | MS17-010, Security Update for Microsoft Windows SMB Server (KB 4013389) |
| Bulletin date | 14 March 2017 |
| CVE IDs | CVE-2017-0143, CVE-2017-0144, CVE-2017-0145, CVE-2017-0146, CVE-2017-0147, CVE-2017-0148 |
| Component | SMBv1 server, Windows Vista to Windows 10 1607 and Windows Server 2008 to 2016 (supported releases at the time) |
| Severity | Critical (CVE-2017-0147, information disclosure, rated Important) |
| Network exposure | SMB on TCP 445; NetBIOS on TCP 139 and UDP 137-138 |
| CISA KEV status | All six listed, with known ransomware campaign use (added between November 2021 and May 2022) |
| Public leak | April 2017 (Shadow Brokers release; Microsoft analysis 15 April 2017) |
| Notable use | WannaCry (12 May 2017), NotPetya (27 June 2017) |
MS17-010 and the CVEs it fixed
MS17-010 is a single update that closes six SMBv1 server vulnerabilities. Microsoft's bulletin states none were publicly disclosed or known to be exploited at publication, which is why many organisations treated it as routine Patch Tuesday work. Scanners and advisories often refer to the whole bulletin rather than one CVE, so a "MS17-010 missing" finding means any of the six.
| CVE | Bulletin title | Severity | KEV date added |
|---|---|---|---|
| CVE-2017-0143 | Windows SMB Remote Code Execution Vulnerability | Critical | 3 Nov 2021 |
| CVE-2017-0144 | Windows SMB Remote Code Execution Vulnerability | Critical | 10 Feb 2022 |
| CVE-2017-0145 | Windows SMB Remote Code Execution Vulnerability | Critical | 10 Feb 2022 |
| CVE-2017-0146 | Windows SMB Remote Code Execution Vulnerability | Critical | 25 Mar 2022 |
| CVE-2017-0147 | Windows SMB Information Disclosure Vulnerability | Important | 24 May 2022 |
| CVE-2017-0148 | Windows SMB Remote Code Execution Vulnerability | Critical | 6 Apr 2022 |
The bulletin lists separate KB articles per platform, which is what you check for in inventory and patch reports:
- Vista SP2 and Server 2008 SP2: KB 4012598.
- Windows 7 SP1 and Server 2008 R2 SP1: KB 4012212 (Security Only) or KB 4012215 (Monthly Rollup).
- Windows 8.1 and Server 2012 R2: KB 4012213 or KB 4012216.
- Server 2012: KB 4012214 or KB 4012217.
- Windows 10: KB 4012606 (original release), KB 4013198 (1511), KB 4013429 (1607 and Server 2016).
Later cumulative updates supersede these, so a modern supported system that is current on cumulative updates is covered. The real exposure in 2026 is systems that are not: unsupported operating systems, embedded Windows in devices, and images rebuilt from old media. To read the advisory fields in detail, see the How to Read a CVE Advisory Guide.
Leak and weaponisation
The sequence matters because it is the clearest public example of the gap between a patch being available and a patch being applied.
| Date | Event | Source |
|---|---|---|
| 14 Mar 2017 | Microsoft publishes MS17-010, Critical, no known exploitation | Microsoft bulletin |
| Apr 2017 | Shadow Brokers release includes EternalBlue and related exploits | MSRC |
| 14 Apr 2017 | Earliest date CISA gives for the backdoor in M.E.Doc's development environment, later used for NotPetya | CISA TA17-181A |
| 15 Apr 2017 | MSRC confirms the SMB exploits are fixed by MS17-010 | MSRC |
| 12 May 2017 | WannaCry released worldwide; CISA posts indicators the same day | NAO, CISA TA17-132A |
| 13 May 2017 | Microsoft releases patches for out-of-support Windows XP, Windows 8 and Server 2003 | CISA TA17-132A |
| 27 Jun 2017 | NotPetya spreads, delivered through M.E.Doc tax software | CISA TA17-181A |
| 1 Jul 2017 | CISA issues alert TA17-181A on the Petya (NotPetya) variant | CISA |
| 19 Dec 2017 | UK attributes WannaCry to North Korean actors (Lazarus Group) | UK FCDO / NCSC |
| 15 Feb 2018 | UK attributes NotPetya to the Russian military | UK FCDO / NCSC |
| 7 Jun 2018 | CISA revises its WannaCry alert to add the US government attribution to the North Korean government | CISA TA17-132A |
The out-of-band XP and Server 2003 patches were unusual: those platforms were already out of support. Relying on that happening again is not a plan. Unsupported systems need isolation or replacement, as covered in the Legacy Application Security guide.
WannaCry and NotPetya
Both outbreaks used the SMBv1 flaws to spread, but they differed in purpose, entry and blast radius. The table summarises what official sources state.
| Aspect | WannaCry (May 2017) | NotPetya (June 2017) |
|---|---|---|
| Spread | Self-propagating worm exploiting MS17-010 over SMBv1 | Credential theft with a modified Mimikatz, then PsExec and WMIC; plus EternalBlue and EternalRomance against unpatched hosts |
| Initial entry | Exposed SMB services reachable from other infected networks | Backdoored update of M.E.Doc, a Ukrainian tax accounting product |
| Presented as | Ransomware | Ransomware, though the UK assessed its main purpose as disruption |
| Official attribution | UK NCSC: highly likely North Korean actors known as the Lazarus Group; US government: North Korean government | UK NCSC: almost certainly the Russian military |
| Reported scale | About 300,000 computers in 150 countries (UK government); in England at least 81 of 236 NHS trusts and 603 primary care and other NHS organisations affected (NAO) | Primary targets Ukrainian financial, energy and government sectors; spread indiscriminately to European and Russian businesses (UK government) |
| ATT&CK techniques | T1210 Exploitation of Remote Services, T1486 Data Encrypted for Impact | T1195.002 Compromise Software Supply Chain, T1003.001 LSASS Memory, T1047 Windows Management Instrumentation, T1569.002 Service Execution, T1210 |
Two lessons stand out. First, the National Audit Office found that the infected NHS organisations had unpatched or unsupported Windows systems, and NHS Digital told the NAO that relatively simple actions, such as managing internet-facing firewalls, would have protected them whether or not they had patched. Second, NotPetya showed that patching alone was not enough: once it had harvested administrator credentials it moved to fully patched machines using legitimate admin tools. That is an identity problem as much as a vulnerability one, covered in the Credential Dumping Guide and the Lateral Movement Guide. Actor background is in the Lazarus Group Threat Actor Profile and the Sandworm Threat Actor Profile.
Detection and exposure checks
In 2026 the job is mainly proving absence: that no host is missing the fix, that SMBv1 is gone, and that SMB is not reachable where it should not be. Use authorised tooling only.
- Patch state: run an authenticated vulnerability scan and confirm the MS17-010 check (or the six CVEs) returns clean across all Windows assets, including servers outside the domain, OT engineering workstations and appliances built on embedded Windows.
- SMBv1 server state: query
Get-SmbServerConfigurationforEnableSMB1ProtocolandGet-WindowsOptionalFeature -Online -FeatureName SMB1Protocolfor the installed feature, at scale through your endpoint management tool. - SMBv1 use: before removal, enable
AuditSmb1Access; each SMBv1 client connection then writes event ID 3000 to theMicrosoft-Windows-SMBServer/Auditlog. Forward it to the SIEM and list the clients. - Internet exposure: confirm from an external attack surface scan that TCP 445 and 139 are not reachable on any public address you own, including cloud instances.
- East-west traffic: review firewall or flow logs for workstation-to-workstation TCP 445. Normal estates have very little; a spike from one host to many is a worm or lateral movement signal.
- Detection content: keep IDS and EDR signatures for MS17-010 exploitation enabled; alerts on these in 2026 usually mean an old commodity worm or a penetration test, and both warrant follow-up.
| Metric | Target | Why |
|---|---|---|
| Windows assets missing MS17-010 (or superseding update) | 0 | KEV listed with known ransomware use |
| Hosts with SMBv1 feature installed | 0, or a named exception register | Removal beats patching for a deprecated protocol |
| Event 3000 sources per week | Falling to 0 | Shows remaining SMBv1 dependencies |
| Public IPs with TCP 445 open | 0 | Primary WannaCry entry route |
| Unsupported Windows systems not isolated | 0 | No future fixes for these |
Lasting legacy: SMBv1 and patch discipline
Microsoft's current documentation states that SMBv1 is not installed by default in any edition of Windows 11 or in Windows Server 2019 through 2025, and that Windows 10 installs it by default only in Home and Pro. Old images, upgrades from older builds and devices such as scanners and NAS units still keep it alive. The protocol hardening detail (dialects, signing, encryption, NTLM) lives in the SMB Protocol Security and Signing Guide; the removal sequence below is the EternalBlue-specific part.
- Inventory: list every host with SMBv1 enabled and every device that only speaks SMBv1. Check Microsoft's SMB1 Product Clearinghouse for known dependent products.
- Audit: enable
AuditSmb1Accesson file servers for at least one full business cycle, including month-end and quarter-end jobs, and collect event 3000. - Fix dependencies: update or replace the clients that appear. Microsoft recommends updating them rather than re-enabling SMBv1.
- Pilot removal: on a pilot ring, run
Set-SmbServerConfiguration -EnableSMB1Protocol $false(no restart) and then remove the feature withDisable-WindowsOptionalFeature -Online -FeatureName SMB1Protocol(restarts the computer). - Broad rollout: push through your endpoint management or Group Policy in rings, monitoring help desk tickets for failed scans, file shares and printers.
- Rollback: re-enable per host only, with an exception record, owner and expiry; never re-enable estate-wide. Isolate any host that must keep SMBv1.
- Block at the network: block TCP 445, TCP 139 and UDP 137-138 at internet and site boundaries, and block workstation-to-workstation SMB with host firewalls, as CISA advised in TA17-181A. See the Network Segmentation Guide.
Decision guidance: where a system cannot be patched or have SMBv1 removed (medical devices, OT, vendor-locked appliances), segment it so that only named hosts can reach its SMB service, and record a compensating control. Small organisations should start with the internet boundary and endpoint feature removal, which give most of the benefit with little effort; large estates need the audit phase because legacy dependencies are near certain. Treat KEV listing as a fixed deadline rather than a risk score, as described in the CISA KEV Catalogue Guide.
Where identity fits
NotPetya's fastest spread came from stolen administrator credentials, not the exploit. Shared local administrator passwords and standing domain admin sessions on workstations let it jump to patched hosts. Unique local admin passwords (Windows LAPS), tiered admin accounts and restricting where privileged accounts log on close that path, and service accounts used by backup and patch tools need the same scrutiny.
Framework mapping
| Framework | Reference | Relevance |
|---|---|---|
| NIST CSF 2.0 | ID.AM-01, ID.RA-01, PR.PS-01, PR.PS-02, DE.CM-01 | Inventory, vulnerability identification, configuration, software maintenance, network monitoring |
| NIST SP 800-53 Rev 5 | SI-2 Flaw Remediation, RA-5 Vulnerability Monitoring and Scanning, CM-7 Least Functionality, CM-8 System Component Inventory | Patch, scan, remove unneeded protocols, know your assets |
| CIS Controls v8.1 | Control 7 Continuous Vulnerability Management; Control 4 Secure Configuration | Patch cadence and disabling unnecessary services |
| MITRE ATT&CK v20 | T1210, T1021.002, T1486, T1195.002, T1003.001 | Techniques seen in WannaCry and NotPetya |
| CISA KEV | CVE-2017-0143 to CVE-2017-0148 | Mandatory remediation for US federal agencies; prioritisation signal for everyone |
Common failure patterns
- Treating "no known exploitation" as low urgency: MS17-010 was published with no known exploitation and was weaponised within two months.
- Unsupported systems left on flat networks: the NAO tied the NHS infections to unpatched or unsupported Windows. Isolation is the minimum where replacement is not possible.
- Patching but leaving SMBv1 enabled: it keeps the attack surface for the next flaw and for downgrade attacks.
- Assuming patched means safe: NotPetya used harvested credentials and admin tools to reach patched machines.
- Exposed TCP 445: SMB reachable from the internet or partner networks turned single infections into outbreaks.
- Re-enabling SMBv1 estate-wide for one old device: fix or isolate the device instead.
Practitioner checklist
- Confirm zero Windows assets missing MS17-010 or a superseding cumulative update, including non-domain and OT hosts.
- Track the six CVEs as KEV items with a fixed remediation deadline.
- Enable SMBv1 auditing (event ID 3000) and resolve every client it reveals.
- Remove the SMB1Protocol feature across the estate, with a per-host exception register.
- Block TCP 445, TCP 139 and UDP 137-138 at internet and site boundaries.
- Block workstation-to-workstation SMB with host firewall rules.
- Isolate or replace every unsupported Windows system.
- Deploy Windows LAPS and restrict where privileged accounts can log on.
- Keep offline, tested backups, as both CISA alerts advise.
Standards and references
- Microsoft: Security Bulletin MS17-010, Security Update for Microsoft Windows SMB Server
- Microsoft Security Response Center: Protecting customers and evaluating risk
- Microsoft Learn: How to detect, enable and disable SMBv1, SMBv2 and SMBv3 in Windows
- CISA: Indicators Associated With WannaCry Ransomware (TA17-132A)
- CISA: Petya Ransomware alert TA17-181A (mailing list archive)
- UK Government: Foreign Office Minister condemns North Korean actor for WannaCry attacks
- UK Government: Foreign Office Minister condemns Russia for NotPetya attacks
- National Audit Office: Investigation: WannaCry cyber attack and the NHS
Related NHI Mgmt Group resources: Vulnerability Management Guide · SMB Protocol Security and Signing Guide · Ransomware Prevention Guide · Patch Management Guide