Edition Friday 4 Dec 2026Updated SubscribeFollow @TechWireHQ on X

Case studies

Lessons for technology leaders and boards

Home / Case studies

WannaCry and the NHS: the patch that wasn't applied

Cyber attack · UK · May 2017 · Published 3 Dec 2026

A worm exploiting a Windows flaw that already had a fix, published by Microsoft two months earlier, disrupted about a third of hospital trusts, cancelled about 19,000 appointments and cost the NHS an estimated £92m.

At a glance

OrganisationThe National Health Service in England: hospital trusts, GP practices and national bodies
SectorHealthcare and life sciences
RegionUK
When12 to 19 May 2017
TypeCyber attack: self-spreading ransomware
ImpactA third of hospital trusts and about 8% of GP practices disrupted; about 19,000 appointments cancelled; estimated cost £92m

What happened

On Friday 12 May 2017 the WannaCry ransomware spread around the world, encrypting files on Windows computers and demanding payment in Bitcoin. It did not need anyone to click a link: it moved from machine to machine through a flaw in the way Windows shares files, a flaw Microsoft had patched two months earlier.

The NHS was one of the worst-hit organisations anywhere. Hospitals lost access to patient records, scans and test results, operations and appointments were cancelled, and in five areas ambulances were diverted because emergency departments could not treat some patients. The spread stopped that evening when a security researcher registered a web address that acted as a kill switch in the malware's code.

The US and UK governments later attributed the attack to North Korea. The NHS told the National Audit Office (NAO), the UK's public spending watchdog, that no NHS organisation paid the ransom and no patient data was believed to have been stolen.

Why it happened

  • Known fixes were not applied. The infected NHS organisations had unpatched or unsupported Windows systems. The NHS's own security team had issued an alert about the flaw weeks before the attack.
  • Warnings were not acted on. The Department of Health had been warned about cyber risks to the NHS a year before, and trusts had been told in 2014 to move off old software such as Windows XP by April 2015.
  • Nobody could make local trusts act. Security was left to each trust, and national bodies had no way to check or enforce basic standards, so an old, flat network let the worm spread.

What it cost

MeasureFigure
Trusts disruptedAbout a third of hospital trusts, and about 8% of GP practices
Appointments and operations cancelledAbout 19,000
Lost patient care during the attackAbout £19m
Recovery and IT support afterwardsAbout £73m
Total estimated cost£92m
Ransom paidNone

The Department of Health and Social Care later said it would spend about £275m on NHS cyber security by the end of 2021.

How they responded

National bodies set up an incident response over the weekend, but the NAO found there was no rehearsed plan: trusts struggled to reach national teams, and many turned to their own suppliers. The NHS later created a national security operations centre with IBM, set up a central contract to keep Windows up to date across the NHS, and asked trusts to meet a common data security standard.

Lessons for technology leaders

  1. Patch critical flaws fast, and know where you can't. The fix existed two months before the attack. Keep an accurate list of systems that cannot be patched, and wall them off.
  2. Unsupported software is a business decision. Running old systems may be cheaper, but the board should accept that risk knowingly, with a date to end it.
  3. Separate your network. A flat network lets a worm reach everything. Dividing it limits how far one infection can go.
  4. Rehearse the response across organisations. In a federated organisation, agree in advance who leads, how to reach each other when email is down, and who can tell local teams what to do.
  5. Count the cost of downtime in service terms. For a hospital the real cost is cancelled care, not IT spend. Plan recovery around what patients or customers need first.

Points to consider

  • Which of your systems can't be patched within a month of a critical fix, and what protects them?
  • Who owns the decision to keep running unsupported software, and does the board know?
  • If your email and phones were down, how would you coordinate a response across sites?

Sources

Cite this

Nuffield Consulting, “WannaCry and the NHS: the patch that wasn't applied”, The Daily Tech Wire case study, 3 Dec 2026. https://thedailytechwire.com/case-studies/wannacry-nhs-2017/ (retrieved 5 Dec 2026).

Please also cite the sources listed in the case study.

© 2026 Nuffield Consulting. All rights reserved. This case study may not be reproduced, republished or used commercially without our written permission. Short extracts may be quoted with a citation, as shown above. To ask for permission, email info@nuffieldconsulting.com.