Ten dollars and sixty-nine cents
In May 2017, one piece of code hit two hundred thousand victims in a hundred and fifty countries. What stopped it spreading cost ten dollars and sixty-nine cents.


In England it reached one hospital trust in three. An estimated nineteen thousand appointments were cancelled, and five emergency departments sent their ambulances somewhere else.
And here's the strange part. It should never have worked at all: the fix was already out. That was WannaCry, and it is only one kind of malware. There are nineteen more. The answer to why it worked comes at the end.
Virus or malware? One word, three questions
One correction first. People call all of this a virus. A virus is only one of the twenty. The family name is malware: any software written to harm you.

And every piece of malware answers three questions. How do I get in? How do I hide? What do I want? This guide follows them in that order: six ways in, three ways to hide, and eleven things it wants. Start at the door.
- Gets in (6)Virus, macro virus, worm, trojan, poisoned update, zero-click.
- Hides (3)Rootkit, firmware implant, fileless malware.
- Wants (11)Your data (keylogger, infostealer, spyware), your machine (remote access trojan, botnet, cryptojacker), your money (adware, scareware, ransomware), or just to break things (wiper, logic bomb).
How it gets in: six doors
01 / 20 Virus rides on what you run
The virus that was signed
The virus hides inside something you run, a program or a disk, and it can only travel when a person carries it.


The first one for the PC came out of Lahore, Pakistan, in 1986. Two brothers wrote it and called it Brain. It rode on floppy disks. And inside the code they left their names, the address of their shop, and their phone numbers. They signed it. Nobody has been that polite since.
What beats it
It hasn't changed: don't run what you didn't ask for, and let an antivirus look at it first.
02 / 20 Macro virus hides in a document
Melissa: "Important message from" a friend
The macro virus doesn't hide in a program. It hides in a document. In 1999, a Word file called Melissa began arriving by email, and the subject line read: Important message from, followed by the name of someone you knew.

Open it, and a small program inside the document, a macro, mailed a copy to the first fifty people in your address book. Its author admitted to more than eighty million dollars in damage, and was sentenced to twenty months in federal prison.
What beats it
Since 2022, Office blocks macros in any file that came from the internet. So when a document asks you to enable content, the answer is no.
03 / 20 Worm needs nothing from you
Slammer: 75,000 servers in ten minutes
A worm needs nothing from you. No click, no file, no mistake. It finds a hole in a computer that's online, climbs in, and uses that computer to look for the next one.


In 2003, a worm called Slammer fit inside a single network packet. In its first minute, the number of infected servers doubled every eight and a half seconds. Ten minutes in, it had more than seventy-five thousand.
And the hole it used had been fixed six months earlier. The update existed. Too many servers hadn't installed it. Hold on to that.

What beats it
Install updates. A worm only gets into computers with an unpatched hole.
04 / 20 Trojan you open the door
Emotet: the door that was rented out
The trojan doesn't break in at all. You open the door, because it looks like something you wanted. An invoice. A delivery note. A free app.


Emotet started in 2014 as a banking trojan. Then its owners found a better business. They rented out the door. Other gangs paid to send their own malware through it, ransomware included.
Europol called it the world's most dangerous malware. In 2021, police from eight countries took over its servers. Then they used Emotet's own update system to send one last update: the one that deleted it.
What beats it
An attachment you didn't expect is a question. Ask the sender some other way.
05 / 20 Poisoned update the door you were told to trust
SolarWinds, and the half second that saved Linux
The fifth door is the one you were told to trust: the update. In 2020, attackers hid a backdoor inside updates for SolarWinds Orion, software that companies and governments use to watch their own networks. Fewer than eighteen thousand customers installed it. Every one of them was doing the right thing.

In 2024 it nearly happened to Linux. Someone spent more than two years earning trust on a small tool called xz, then slipped a backdoor into it. One engineer noticed that his logins had become slower: three tenths of a second before, eight tenths after. He went looking for the missing half second, and found the backdoor before it reached most stable Linux releases.


What beats it
Update anyway. The fix comes down the same road the attack did.
06 / 20 Zero-click a door with no handle
Pegasus: nobody tapped it
And the last door has no handle. In 2021, researchers at the Citizen Lab examined a Saudi activist's iPhone and found Pegasus: spyware that an Israeli company, NSO Group, sells to governments. It had arrived as an image in an iMessage. Nobody tapped it. Nobody had to.


Once it's in, Pegasus can read your messages and switch on the microphone and the camera. Apple closed the hole six days after the report.
What beats it
Update your phone the day the update arrives. There is no click to avoid, so the fix is all you have.
How it hides: three ways
Getting in is half the job. The other half is not getting caught.
07 / 20 Rootkit makes the system lie
The rootkit from a record label
A rootkit changes the system itself, so the system lies about what's running. And the most famous one didn't come from a criminal. It came from a record label.


In 2005, music CDs from Sony BMG quietly installed copy protection on Windows PCs. A researcher, Mark Russinovich, found it on his own machine. It hid every file whose name began with one short code, $sys$. Which meant any other malware could borrow that code and vanish too. Sony recalled the discs and settled with the Federal Trade Commission.
What beats it
Scan from outside the running system, from a rescue disk or another computer. The system inside can't be trusted.
08 / 20 Firmware implant lives under Windows
LoJax: still there after a new hard drive
Go one level down. Under Windows there is firmware: the code on a chip on your motherboard that runs before anything else does. In 2018, the security company ESET found the first rootkit living there in a real attack, and named it LoJax.


Reinstall Windows, and it's still there. Replace the hard drive, and it's still there. It was never on the drive.
What beats it
Secure Boot, which only lets signed startup code run. LoJax wasn't signed. Leave Secure Boot on in your PC's settings.
09 / 20 Fileless malware brings nothing at all
Volt Typhoon: five years with Windows' own tools
The deepest way to hide is to bring nothing at all. A fileless attack uses the tools already built into Windows, like PowerShell. Nothing new lands on the disk. So a scanner looking for a bad file finds no file.

America's cyber defence agency says a Chinese state-backed group, Volt Typhoon, stayed inside some US infrastructure networks this way for at least five years.
What beats it
This one is for companies to fix: record what those built-in tools do, and chase anything strange.
What it wants: eleven goals
So it's in, and it's hidden. What does it want? One of four things. Your data. Your machine. Your money. Or just to break things.
10 / 20 Keylogger your data
The £200 million keylogger
A keylogger records every key you press. In 2004, thieves had one put on computers in the London office of the bank Sumitomo Mitsui, by someone on the inside, at night. It recorded the logins, and they tried to wire more than two hundred million pounds to twenty accounts in ten countries. The bank's own staff caught it, and the bank says it lost nothing.


11 / 20 Infostealer your data, in seconds
Lumma: malware by subscription
An infostealer is faster. It takes your saved passwords, your cards, your bank logins and your crypto wallets, in seconds. One of them, Lumma, was rented out by the month, like a streaming service. In two months of 2025, Microsoft counted three hundred and ninety-four thousand infected Windows PCs.


What beats both
Turn on two-step sign-in, so a stolen password isn't enough by itself.
12 / 20 Spyware stays, and watches
The spyware that told jokes
Spyware stays, and watches. And sometimes it's charming. If you used a PC in the early 2000s, you may remember a purple gorilla on the desktop who told jokes: BonziBuddy. He was also collecting personal details from children, without asking their parents. The Federal Trade Commission fined his maker seventy-five thousand dollars.

13 / 20 Remote access trojan your machine
Blackshades, and the lens above your screen
A remote access trojan gives a stranger your screen, your files, and your webcam. Look at the small lens above your screen for a second.


One of these tools, Blackshades, was on more than half a million computers in over a hundred countries. In 2014, police in sixteen countries made ninety-seven arrests. A lens cover is the cheapest security you'll ever buy.
14 / 20 Botnet thousands of machines, one command
Mirai: 62 passwords that took down Twitter and Netflix
Put thousands of captured machines under one command, and you have a botnet. In 2016, Mirai built one out of cameras, routers and video recorders. It didn't need a hole. It tried sixty-two usernames and passwords: the ones those devices shipped with.


That October it aimed them at Dyn, a company that tells browsers where websites live, and for hours Twitter, Netflix and Reddit wouldn't load for many people in the US.
What beats it
Change the password on everything you plug in: cameras, routers, recorders.
15 / 20 Cryptojacker your electricity
The fan that roars on a quiet page
Some malware only wants your electricity. A cryptojacker mines cryptocurrency on your processor, for someone else. Coinhive was a script that websites ran in your browser while you read. The giveaway is a fan roaring on a page that's doing nothing.

What beats it
Close the tab. Firefox now blocks known miners by default.
16 / 20 Adware your money, through ads
Superfish: already installed
Adware gets paid to show you ads, and the worst of it came already installed. Some new Lenovo laptops shipped with Superfish, which broke into encrypted connections to slide its own ads into the page.

17 / 20 Scareware sells you fear
The fake scan that fooled a million people
Scareware sells you fear. A window pops up, runs a fake scan, finds infections that aren't there, and sells you the fix. One operation fooled more than a million people, and a US court ordered one of its executives to pay more than a hundred and sixty-three million dollars.

What beats it
A real antivirus never sells to you from a pop-up in your browser. Close the tab.
18 / 20 Ransomware sells you your own files
Colonial Pipeline, and how WannaCry was stopped
Ransomware locks your files with encryption, then sells you the key. In 2021 it reached Colonial Pipeline, the largest fuel pipeline in the United States. The company shut the pipeline down and paid about seventy-five bitcoin. The FBI followed the money and took back sixty-three point seven.

Which brings us back to WannaCry. It was ransomware with a worm inside, and that's why it moved so fast. But its code carried a strange instruction. Before spreading, it checked whether one long, nonsense web address existed. A researcher found the address in the code and registered it. Ten dollars and sixty-nine cents. From that moment the address existed, and the worm stood down.



What beats it
A backup it can't reach: one copy offline, or in a cloud that keeps old versions. Then a ransom note is a bad day, and nothing worse.
19 / 20 Wiper just to break things
NotPetya: a wiper wearing a ransom note
Last, the ones that want nothing from you. In 2017, NotPetya looked like ransomware. It asked for bitcoin. But nothing could be recovered. It was a wiper wearing a ransom note.


It began inside an update for Ukrainian accounting software, and spread across the world. The US later charged six Russian military intelligence officers, and said three companies alone lost nearly a billion dollars.
20 / 20 Logic bomb waits for a date
The spreadsheets built to break
A logic bomb sits quietly and waits for a date. A contractor wrote spreadsheets for Siemens that were built to break after a set day. When they did, Siemens called him back, and paid him to fix them. He got six months in prison and a seven thousand five hundred dollar fine.

The team-up: Stuxnet
And at the very top, the cyberweapon. It has no place in the line-up of twenty, because it was several of them working together: it spread like a worm, hid like a rootkit, and broke things like a wiper.


Stuxnet used four holes that nobody had found yet. It travelled on USB sticks, hunting for one kind of factory controller. It found them at Natanz, Iran's enrichment plant. There it made the centrifuges spin too fast, then too slow, while the control room screens went on showing normal. Researchers estimate about a thousand centrifuges had to be replaced.
Four habits, and two months
That's all twenty. Now look at what beat them, because it's a much shorter list.
- Strong passwords and two-step sign-in. A different password for every account. That shuts out Mirai, and makes a stolen password worth far less.
- Think before you click. Melissa, Emotet and every trojan since needed someone to open the door.
- Keep one backup offline. Ransomware and wipers lose most of their hold on you.
- Update. The dull one. Slammer's hole had been fixed for six months.

And WannaCry? Microsoft fixed the hole it used on the fourteenth of March, 2017. WannaCry arrived on the twelfth of May. Two months. The computers it locked were the ones that hadn't taken that update, or ran a Windows too old to receive it.


Four habits won't stop all twenty. But they close the door on most of them: fourteen of the twenty in our line-up. WannaCry was stopped by ten dollars and sixty-nine cents. It could have been stopped two months earlier, by an update that cost nothing.
The machine all of this runs on
Every part inside a PC, what it does and what to upgrade first, pictured from our film.
All 20 at a glance
| Type | What it does | The real case | What stops it |
|---|---|---|---|
| Virus | Rides inside a program or disk you run | Brain, 1986 | Run only what you asked for; antivirus |
| Macro virus | Hides in a document's macro | Melissa, 1999 | Never enable content |
| Worm | Climbs through holes, no click needed | Slammer, 2003 | Updates |
| Trojan | Looks like something you wanted | Emotet, 2014 to 2021 | Check unexpected attachments |
| Poisoned update | Rides a trusted update | SolarWinds 2020, xz 2024 | Update anyway |
| Zero-click | Gets in with no tap at all | Pegasus, 2021 | Update the day it arrives |
| Rootkit | Makes the system lie | Sony BMG, 2005 | Scan from outside |
| Firmware implant | Lives in the motherboard | LoJax, 2018 | Secure Boot |
| Fileless | Uses Windows' own tools | Volt Typhoon | Companies watch the tools |
| Keylogger | Records every key | Sumitomo Mitsui, 2004 | Two-step sign-in |
| Infostealer | Grabs saved passwords and cards | Lumma, 2025 | Two-step sign-in |
| Spyware | Stays and watches | BonziBuddy | Think before you install |
| Remote access trojan | Your screen, files and webcam | Blackshades, 2014 | Lens cover; don't open strangers' files |
| Botnet | Your device under someone's command | Mirai, 2016 | Change default passwords |
| Cryptojacker | Mines coins on your processor | Coinhive | Close the tab; a browser that blocks miners |
| Adware | Paid to show you ads | Superfish, 2014 | The maker's doing |
| Scareware | Fake scan, real bill | Innovative Marketing | Ignore browser pop-ups |
| Ransomware | Locks files, sells the key | WannaCry 2017, Colonial 2021 | Offline backup; updates |
| Wiper | Destroys, sometimes behind a ransom note | NotPetya, 2017 | Offline backup |
| Logic bomb | Waits for a date, then breaks | Siemens spreadsheets | An insider's doing |
Questions
What is the difference between a virus and malware?
Malware is the family name for any software written to harm you. A virus is one of about twenty kinds: it hides inside a program or a disk you run and only travels when a person carries it. Worms, trojans, ransomware and spyware are malware too, but they are not viruses.
What are the main types of malware?
Sorted by the three questions every piece of malware answers. Getting in: virus, macro virus, worm, trojan, poisoned update and zero-click exploit. Hiding: rootkit, firmware implant and fileless malware. What it wants: keylogger, infostealer, spyware, remote access trojan, botnet, cryptojacker, adware, scareware, ransomware, wiper and logic bomb.
Can malware survive reinstalling Windows?
A firmware implant can. LoJax, found by ESET in 2018, lived in the motherboard's UEFI firmware, so it survived a Windows reinstall and even a new hard drive. Secure Boot stops it, because it only lets signed startup code run and LoJax was not signed.
How was WannaCry stopped?
Before spreading, WannaCry checked whether one long nonsense web address existed. A researcher found the address in its code and registered it for $10.69, and from that moment the worm stood down. Microsoft had already fixed the hole it used two months earlier, on 14 March 2017.
What is the best protection against ransomware?
A backup it can't reach: one copy offline, or in a cloud that keeps old versions, so a ransom note is a bad day and nothing worse. Then keep Windows and your apps updated, because WannaCry only locked computers that had not taken a two-month-old update.
Sources
- WannaCry: Europol director Rob Wainwright, 14 May 2017 (200,000 victims, 150 countries); Marcus Hutchins (MalwareTech), 13 May 2017 (the $10.69 domain); UK National Audit Office, Investigation: WannaCry cyber attack and the NHS, October 2017; Microsoft Security Bulletin MS17-010, 14 March 2017.
- Brain: Mikko Hypponen (F-Secure), Brain: Searching for the first PC virus in Pakistan, 2011.
- Melissa: FBI NIPC testimony to Congress, April 1999; CERT/CC advisory CA-1999-04; US Department of Justice, 1 May 2002; Microsoft Learn, Macros from the internet are blocked by default in Office.
- Slammer: Moore, Paxson, Savage, Shannon, Staniford and Weaver, Inside the Slammer Worm, IEEE Security and Privacy, 2003; Microsoft Security Bulletin MS02-039, July 2002.
- Emotet: Europol and Eurojust, 27 January 2021; Malwarebytes on the removal update of 25 April 2021.
- SolarWinds: SolarWinds Form 8-K, 14 December 2020; CISA Emergency Directive 21-01. xz: Andres Freund, oss-security list, 29 March 2024; CVE-2024-3094; Russ Cox, Timeline of the xz open source attack.
- Pegasus: Citizen Lab, FORCEDENTRY, 13 September 2021; Apple security content of iOS 14.8 (CVE-2021-30860).
- Sony BMG: Mark Russinovich, Sony, Rootkits and Digital Rights Management Gone Too Far, 31 October 2005; Halderman and Felten, USENIX Security 2006; FTC settlement, January 2007.
- LoJax: ESET, LoJax: First UEFI rootkit found in the wild, 27 September 2018, and its white paper.
- Volt Typhoon: CISA and partners, advisory AA24-038A, 7 February 2024.
- Sumitomo Mitsui: eWeek, 17 March 2005, and The Register, 13 April 2005. Lumma: Microsoft On the Issues, 21 May 2025.
- BonziBuddy: FTC press release, 18 February 2004. Blackshades: US Attorney, Southern District of New York, 19 May 2014; Europol and Eurojust, 19 May 2014.
- Mirai: Antonakakis et al., Understanding the Mirai Botnet, USENIX Security 2017; Dyn's statement of 22 October 2016. Coinhive: its own notice, February 2019; Mozilla, Firefox 69.
- Superfish: FTC, Lenovo Settles FTC Charges, September 2017. Scareware: FTC v. Innovative Marketing, 2012, upheld by the Fourth Circuit in 2014.
- Colonial Pipeline: US Department of Justice, 7 June 2021. NotPetya: Cisco Talos, The MeDoc Connection, July 2017; US Department of Justice, 19 October 2020. Logic bomb: US Attorney's Office, Western District of Pennsylvania, December 2019.
- Stuxnet: Falliere, O Murchu and Chien, W32.Stuxnet Dossier, Symantec, February 2011; Institute for Science and International Security, 22 December 2010.
- The habits: CISA, Secure Our World, and the CISA #StopRansomware Guide.