WannaCry ransomware attack
On 12 May 2017 the WannaCry ransomware worm spread across the world, locking files and demanding Bitcoin. In England it hit NHS hospitals and GP practices, cancelling thousands of appointments. A researcher's domain registration halted its spread, and the US and UK blamed North Korea, though no one has been tried.
Sources: 13| Date | Friday 12 May 2017, when the attack spread across the world |
|---|---|
| Malware | WannaCry, a ransomware worm that locked files and demanded payment in Bitcoin |
| Worst hit in Britain | The National Health Service in England, including hospitals and GP practices |
| Scale | Figures differ: more than 200,000 computers in at least 100 countries (National Audit Office), or 300,000 in 150 countries (UK government, December 2017) |
| Blamed on | North Korea, according to the UK and US governments; the UK named the Lazarus Group. No trial has been reported |
Introduction
On Friday 12 May 2017 a ransomware program called WannaCry began locking computers in dozens of countries. By that afternoon it had reached hospitals in England, where staff lost access to patient records, test results and appointment systems. Operations were cancelled and five emergency departments in England had to send patients elsewhere. The prime minister said the attack was not targeted at the NHS. It exploited a Windows weakness for which Microsoft had released a patch in March; machines that had not installed the patch were vulnerable.
Within weeks the attack had a famous footnote. A young British researcher found a hidden web address inside the code, registered it, and in doing so switched off the program's spread. Seven months later the United States and the United Kingdom publicly blamed North Korea for the attack. Neither government has put anyone on trial for it.
The attack
WannaCry was a worm, which means it could move from one machine to another on a network without a person clicking anything. Once inside, it encrypted files and displayed a demand for payment in Bitcoin. The BBC reported that the exploit, known as EternalBlue, was believed to have been developed by the US National Security Agency, and that a group called the Shadow Brokers made it freely available in April 2017. The BBC reported the demand as $300 (£230) in Bitcoin for each computer. Staff at NHS organisations shared screenshots of the message as it appeared on their screens.
The scale is reported differently by different sources. The National Audit Office said the attack affected more than 200,000 computers in at least 100 countries. On the first day the BBC reported that at least 75,000 computers in 99 countries had been encrypted. In December 2017 the UK government put the figure at 300,000 computers in 150 countries, and the BBC repeated that figure later the same month.
Europol, the European police agency, called the attack unprecedented in scale and said a complex international investigation would be needed to identify those responsible. Russia's interior ministry said about 1,000 of its computers had been infected. Banks, the state-owned railways and a mobile network were also hit, and the carmaker Renault stopped production at a number of sites.
The NHS in England
The NHS was hit hardest in Britain. At 4 pm on 12 May, NHS England declared a major incident. The National Audit Office, which investigated the response for Parliament, said at least 81 of the 236 trusts in England were affected in its web summary, and at least 80 in its full report. Both counted trusts whose machines were infected or that switched systems off as a precaution. The UK government (in December 2017) and the BBC, quoting the Home Secretary Amber Rudd in May, gave 48 trusts. The BBC also reported on the first day that about 40 NHS organisations and some GP practices had been hit.
NHS England identified 6,912 cancelled appointments. It estimated that more than 19,000 would have been cancelled in total. The auditors said neither the department nor NHS England knew how many GP appointments had been lost. Patients in five areas, in London, Essex, Hertfordshire, Hampshire and Cumbria, had to be diverted to other emergency departments.
NHS Digital told the auditors that it believed no patient data had been compromised or stolen. The department, NHS England and the National Crime Agency said no NHS organisation had paid the ransom. The department did not know what the disruption cost the service.
Warnings and the response
The National Audit Office's conclusions were sharp. The department had been warned about the risk of a cyber attack on the NHS a year before WannaCry, and it did not formally respond in writing until July 2017. In 2014 the department and the Cabinet Office had written to trusts saying they needed "robust plans" to move away from old software such as Windows XP. NHS Digital issued critical alerts in March and April 2017 telling organisations to patch their systems. Before 12 May, the department had no formal way to check whether local organisations had acted on its advice.
The response plan existed, but it had not been tested locally. It was not immediately clear who should lead the response, and many trusts could not use email because their systems were infected or had been shut down. Staff passed information by personal mobile phones, including through the encrypted messaging app WhatsApp. The auditors said the attack could have been prevented. NHS Digital told them every infected organisation had shared the same weakness and could have protected itself with relatively simple steps, including managing the firewalls that face the internet.
The report's summary was blunt. It called the attack a "relatively unsophisticated attack" and said there were "more sophisticated cyber threats out there than WannaCry". The NHS said it had lessons to learn, and NHS England and NHS Improvement wrote to every major health body asking boards to confirm they had put in place the alerts issued between March and May 2017.
The kill switch
On the Friday, a security researcher known online as MalwareTech was examining a sample of the program. He noticed that it tried to contact a long, meaningless web address. The address was not registered. He bought it for $10.69, as the Guardian and Wired reported. The BBC gave the price as £8.50 (about $11). The effect was that WannaCry, when it found that address live, stopped spreading. Wired reported that the domain was enough to shut the program down, at least for the time being.
He said he had bought the domain to monitor the spread and that the effect on the attack was unplanned. He told the Guardian that the authors would change the code and start again, and urged people to install updates. Darien Huss of Proofpoint told Wired that the switch was most likely intentional. MalwareTech theorised that it was meant to stop the program running in analysis sandboxes, and said the domain should have been random.
The kill switch did not unlock machines that were already infected. It bought time for others to be patched. The National Audit Office noted that 32 of the 37 trusts that were infected and locked out were in the North and Midlands and East regions, which NHS England put down to early infections on 12 May, before the switch was activated.
Blame and the evidence
In October 2017 the security minister Ben Wallace appeared to blame North Korea, according to The Register. On 19 December 2017 the UK Foreign Office minister Lord Ahmad of Wimbledon said the National Cyber Security Centre judged it "highly likely" that the Lazarus Group, which the UK links to North Korea, had run the campaign. The UK said the indiscriminate use of the ransomware showed North Korea using its cyber programme to get round sanctions.
The same day, the White House homeland security adviser Thomas Bossert said the United States was publicly attributing the attack to North Korea and that it had seen the evidence. He said the United Kingdom, Australia, Canada, New Zealand and Japan had seen the US analysis and joined in denouncing North Korea. Microsoft said it had worked with Facebook and others to act against a threat actor it called ZINC, also known as the Lazarus Group. The BBC's analysis linked the timing to tension over North Korea's nuclear programme, and noted that the US did not say what action it would take. The Register pointed out that attribution in cyber attacks is difficult, because attackers can use other countries' networks. No trial has been reported.
The charges against Park Jin Hyok
On 6 September 2018 the US Justice Department announced charges against Park Jin Hyok, a North Korean man then aged 34. The complaint alleged that he was a member of a hacking team known as the Lazarus Group, and said he was employed by Korea Expo Joint Venture, which the complaint calls a front for the North Korean government. The complaint said the conspiracy ran from no later than 2 September 2014 to at least 3 August 2017. The allegations also cover the WannaCry attack, the 2014 hack of Sony Pictures and the theft of $81 million from the Bangladesh Bank. Nextgov later called the 2018 filing an indictment; the document itself is captioned a criminal complaint.
NPR reported that Park's last known location was North Korea, which made it unlikely he would ever stand trial in the United States. The charges included conspiracy to commit wire fraud. The Assistant Attorney General for National Security, John Demers, said the cyber-crimes alleged in the complaint were "staggering".
In February 2021 the Justice Department unsealed a further case, an indictment dated 8 December 2020 in the Central District of California. It charged Park with two others, Jon Chang Hyok and Kim Il, with conspiracy to commit wire fraud and bank fraud. The indictment alleges the three are part of the Reconnaissance General Bureau, a military intelligence service, and links them to numerous attempts to steal $1.3 billion. A separate charge accused a US-Canadian citizen, Ghaleb Alaumary, of working with the group to launder millions of dollars taken from a Maltese bank. These are allegations, not findings of guilt.
The researcher and the conviction
Marcus Hutchins, the British researcher behind the MalwareTech account, was hailed as a hero for stopping WannaCry. The charges against him did not concern WannaCry. Later in 2017 he was arrested in Las Vegas and accused of creating malware to steal banking passwords. Prosecutors said he conspired to distribute the UPAS Kit and Kronos from 2012 to 2015, and that he had also lied to the FBI. Prosecutors said Kronos had infected many computers and had been used to steal banking details, but gave no number.
Hutchins first pleaded not guilty to all charges and was due to go on trial. In April 2019 he changed his plea. He pleaded guilty to two charges, one for writing Kronos and an updated version of UPAS and one for conspiring to distribute them. Prosecutors dismissed the other eight charges as part of the deal. The prosecution made no specific sentence recommendation.
On 26 July 2019 Judge J.P. Stadtmueller of the federal court in Milwaukee sentenced him to time served. He was 25. Hutchins apologised in court: "I deeply regret my conduct and the crimes I was involved in." The judge said Hutchins had turned the corner on that conduct, and prosecutors said he deserved credit for finding the kill switch even though his earlier actions were still serious. He had been required to stay in the United States while the case was pending. His lawyer said he intended to return to Britain.
What remains open
The biggest open question is who ordered and carried out the attack. The United States and the United Kingdom have given their assessments, and the US charges allege that North Korean state-backed hackers were involved. No trial of any named man has been reported. The figures for the number of machines and countries, the number of NHS organisations affected and the cost to the health service differ between the sources cited above. The auditors said neither the department nor NHS England knew how many GP appointments had been cancelled, or what the disruption cost the health service.
The National Audit Office's most lasting finding is about the weakness, not the attacker. NHS Digital told the auditors that every infected organisation shared the same vulnerability, and the report said the attack could have been prevented by basic security practice, including patching and managing internet-facing firewalls. Its summary called it a "relatively unsophisticated attack" that could have been prevented by following basic security practice.
On the record
| NHS trusts affected | At least 81 of 236 trusts in England in the National Audit Office's web summary, or at least 80 in its full report; the UK government and the BBC gave 48 trusts |
|---|---|
| Primary care | A further 603 NHS organisations, including 595 GP practices, were infected, according to the National Audit Office |
| Cancelled appointments | 6,912 identified by NHS England; more than 19,000 estimated in total |
| Ransom | About $300 in Bitcoin per machine; the Department of Health, NHS England and the National Crime Agency told the National Audit Office that no NHS organisation paid |
| Kill switch | A domain name hard-coded in the code, registered for $10.69 by a UK researcher known online as MalwareTech (the BBC gave £8.50, about $11) |
| Patch | Microsoft issued an emergency update for older Windows systems, including Windows XP |
| Charges in the United States | A 2018 criminal complaint against Park Jin Hyok, and a 2020 indictment against him and two others, unsealed in 2021; both are allegations |
| Kill switch researcher | Marcus Hutchins, who pleaded guilty in 2019 to charges over the Kronos malware and was sentenced to time served; he was not charged over WannaCry |
Where this comes from
The sources.
- National Audit Office: Investigation: WannaCry cyber attack and the NHS
- National Audit Office: Investigation: WannaCry cyber attack and the NHS (full report, HC 414)
- GOV.UK: Foreign Office Minister condemns North Korean actor for WannaCry attacks
- The Register: UK, US govt and pals on WannaCry culprit: It woz the Norks wot done it
- BBC News: Cyber-attack: US and UK blame North Korea for WannaCry
- BBC News: NHS cyber-attack: GPs and hospitals hit by ransomware
- BBC News: Cyber-attack: Europol says it was unprecedented in scale
- The Guardian: 'Accidental hero' halts ransomware attack and warns: this is not over
- WIRED: The WannaCry Ransomware 'Kill Switch' That Saved Untold PCs From Harm
- NPR: Feds Charge North Korean Cyber-Operative In Sony Hack, Ransomware Attack
- US Department of Justice: Criminal complaint against Park Jin Hyok
- NBC News: No prison for British cyber expert in malware case
- Nextgov/FCW: DOJ charges three in WannaCry attacks, attempts to steal $1.3B

