The most important computer worm examples are the Morris worm (1988), ILOVEYOU (2000), Code Red and SQL Slammer (2001 and 2003), Conficker (2008), Stuxnet (2010), and WannaCry and NotPetya (2017). Each spread without a host file, mostly by exploiting network flaws or tricking users, and each forced a lasting change — from the creation of CERT/CC to the retirement of SMBv1.
Key takeaways
- A worm spreads on its own across networks; a virus needs a host file and a user to run it.
- The Morris worm infected about 6,000 machines in 1988 and led to the creation of CERT/CC.
- Patching, network segmentation and disabling SMBv1 stop most historic worm techniques cold.
A virus needs you to open a file. A worm does not need you at all. Once a worm lands on one machine, it finds the next one by itself — and the next, and the next. That self-spreading power is why nine outbreaks, spread over thirty years, still shape how networks are built today.
What is a computer worm?
A computer worm is self-replicating malware that spreads across networks without a host file and without a user running anything. It copies itself from machine to machine by exploiting software flaws, guessing weak passwords, abusing shared folders, or riding on email and USB drives.
The difference from a virus matters. A virus attaches to a program or document and waits for someone to open it. A worm is standalone code: infect one machine, and the worm scans for neighbours, exploits them, and repeats. That is why worms can cross the internet in hours while a virus spreads at the speed of human clicks.
Worms usually have a payload as well as a spreading mechanism. The payload might steal data, install a backdoor, build a botnet, encrypt files for ransom, or — in Stuxnet's case — destroy physical equipment. The spreading mechanism is what makes it a worm; the payload is what makes it dangerous. For a broader view of the threat landscape, see our guide to knowing if your phone is hacked.
How do computer worms spread?
Worms spread through the paths networks already trust: software vulnerabilities, weak credentials, shared folders, email address books, and removable media. Most famous worms used more than one path at once, so blocking a single route was never enough.
Speed is the worm's weapon. SQL Slammer infected most of its 75,000 victims within ten minutes of release, doubling roughly every 8.5 seconds. Code Red infected more than 359,000 servers in under 14 hours. At that pace, no human response can keep up — which is why prevention, not reaction, is the only workable defense.
Computer worm examples compared
Nine worms tell the whole story, from a student's experiment to state-sponsored sabotage. Read them in order: each one taught the industry a lesson the next one exploited anyway.
| Worm | Year | How it spread | Scale |
|---|---|---|---|
| Morris worm | 1988 | sendmail and fingerd flaws, weak passwords | About 6,000 machines |
| ILOVEYOU | 2000 | Email attachment, address book | Tens of millions of PCs |
| Code Red | 2001 | Buffer overflow in Microsoft IIS | 359,000 servers in 14 hours |
| SQL Slammer | 2003 | One 376-byte packet to SQL Server | 75,000 hosts in 10 minutes |
| Conficker | 2008 | Windows flaw MS08-067, weak passwords, USB | 9–15 million PCs |
| Stuxnet | 2010 | USB drives, four zero-day flaws | Targeted: Natanz centrifuges |
| WannaCry | 2017 | EternalBlue exploit of SMBv1 | 200,000-plus PCs, 150 countries |
| NotPetya | 2017 | EternalBlue plus credential theft | Billions in global damage |
| Mirai | 2016 | Default passwords on IoT devices | 600,000-plus IoT devices |
1. Morris worm (1988): the internet's first major outbreak
The Morris worm was released on the evening of 2 November 1988 by Robert Tappan Morris, a Cornell graduate student, from MIT. It exploited flaws in sendmail and fingerd, trusted relationships between machines, and weak passwords — and a bug made it reinfect machines repeatedly, slowing them to a halt.
According to the FBI, it hit about 6,000 of the roughly 60,000 computers then on the internet within 24 hours — about 10 percent of the network. Morris was the first person convicted under the Computer Fraud and Abuse Act, and the outbreak led directly to the creation of CERT/CC, the first computer emergency response team, as the FBI recounts.
2. ILOVEYOU (2000): social engineering at global scale
ILOVEYOU arrived on 4 May 2000 as an email with the subject "ILOVEYOU" and an attachment disguised as a love letter. Opening it ran a Visual Basic script that mailed itself to everyone in the victim's Outlook address book and overwrote music, image and script files.
It infected tens of millions of computers in days, disrupted the US Congress, the British Parliament and military networks, and caused damage widely estimated at up to $10–15 billion. Its author, Onel de Guzman, a student in the Philippines, was never successfully prosecuted, because the Philippines had no computer crime law at the time. The lesson: the human click was now a spreading mechanism, and no firewall could filter curiosity.
3. Code Red (2001) and SQL Slammer (2003): speed itself
Code Red exploited a buffer overflow in Microsoft IIS web servers. On 19 July 2001 it infected more than 359,000 servers in under 14 hours, according to CAIDA's measurement study, and it defaced websites with the words "Hacked by Chinese!" A later variant launched a denial-of-service attack against the White House website.
SQL Slammer was faster still. In January 2003 it spread through a single 376-byte packet aimed at Microsoft SQL Server, infecting most of its 75,000 victims within ten minutes. It slowed internet traffic worldwide, disrupted airline booking systems and bank ATMs, and proved that a worm could outrun any human response. Both worms had patches available before they struck — the lesson was that patching speed, not patch availability, decides the outcome.
4. Conficker (2008): the worm that would not die
Conficker exploited a Windows flaw Microsoft fixed in bulletin MS08-067, and it spread through weak network-share passwords and USB drives. By January 2009 it had infected an estimated 9 to 15 million computers in more than 190 countries, making it the largest worm outbreak since SQL Slammer.
What made Conficker remarkable was its resilience. It used multiple propagation channels, disabled security software, blocked access to antivirus update sites, and generated thousands of possible command-and-control domains a day. A coalition of industry and government, the Conficker Working Group, fought it for years, and infections lingered long after the peak. Conficker's lesson was that a worm with good engineering can survive almost anything except a patched, segmented network.
5. Stuxnet (2010): malware as a weapon
Stuxnet was no ordinary worm. Discovered in 2010, it spread through USB drives and networks using four Windows zero-day flaws, then searched for a specific target: Siemens S7 programmable logic controllers running uranium enrichment centrifuges at Iran's Natanz facility. When it found them, it altered their speed while reporting normal readings to operators.
It was the first widely known malware built to cause physical damage, and it is widely attributed to a state-sponsored operation. Stuxnet changed the debate permanently: industrial control systems, once thought safe behind air gaps, were now targets. Its lesson reached every power grid, pipeline and factory that had assumed isolation was protection.
6. WannaCry and NotPetya (2017): the worm meets ransomware
On 12 May 2017, WannaCry used the EternalBlue exploit against unpatched Windows SMBv1 to spread across networks, encrypting files and demanding Bitcoin. It hit more than 200,000 computers in at least 150 countries within days, including parts of the UK's National Health Service. Microsoft had released the fix, MS17-010, two months earlier — the victims were the unpatched, as CISA's alert documented at the time.
NotPetya followed weeks later, disguised as ransomware but designed to destroy data rather than recover it. It combined EternalBlue with stolen credentials and legitimate admin tools to move sideways, and it caused billions in damage, including more than $10 billion at shipping giant Maersk and pharmaceutical firm Merck by some estimates. Together, the two outbreaks ended the argument about patching: an unpatched flaw is not a technical debt, it is an open door.
7. Mirai (2016): the worm goes to the Internet of Things
Mirai took a different route: instead of exploiting a software flaw, it simply tried factory default usernames and passwords on internet-connected cameras, routers and DVRs. It built a botnet of more than 600,000 IoT devices, then used it to launch some of the largest distributed denial-of-service attacks ever recorded, including one that took down the DNS provider Dyn in October 2016.
Mirai's lesson was about the long tail of devices nobody patches. A camera with the password "admin" is a computer, and a worm does not care what the computer is for. Change default credentials on every device you own, and keep IoT gadgets on a separate network segment from your computers. Our Wi-Fi security guide shows how to isolate them.
How do you protect against computer worms?
Prevention beats cleanup, because a worm spreads faster than any team can respond. Five controls stop most historic worm techniques, and they are the same controls that stop modern ransomware from moving sideways.
- Patch promptly. Apply security updates within days, not months. Code Red, Slammer, Conficker and WannaCry all had patches available before they struck.
- Disable SMBv1 and other legacy protocols. WannaCry and NotPetya rode on SMBv1; modern Windows has it off by default, so check older machines.
- Segment your network. A worm that lands on one machine should not be able to reach every server. Separate IoT devices, guest Wi-Fi and critical systems.
- Use strong, unique passwords. Conficker and Mirai both relied on weak or default credentials. A password manager makes unique passwords practical — test yours with our password strength checker.
- Block autorun from USB drives and keep antivirus updated. Stuxnet and Conficker both used removable media as a bridge into isolated networks.
Also watch for the signs: sudden network slowdowns, unexplained outbound traffic, and programs crashing without reason. If you suspect an infection, disconnect the machine from the network first, then scan it — do not keep working while a worm spreads from it.
The bottom line
Every famous worm exploited the same three weaknesses: unpatched software, weak passwords, and flat networks that let one infected machine reach all the others. The Morris worm taught the internet to organise incident response; WannaCry taught it to patch on time; Stuxnet taught it that even air-gapped systems are targets.
Patch promptly, segment your network, and change every default password. Those three habits would have stopped most of the worms on this list — and they still stop the ones spreading today. Check whether any of your passwords have already appeared in a breach with our pwned password checker.
Frequently asked questions
What is a computer worm?
A computer worm is self-replicating malware that spreads across networks on its own, without needing a host file or a user to run it. It copies itself from one machine to another by exploiting software flaws, guessing passwords, or using email and removable drives.
What is the difference between a worm and a virus?
A virus attaches itself to a file or program and needs a person to run that file before it spreads. A worm is standalone: once it infects one machine, it can find and infect others by itself, which is why worms can spread across the internet in hours.
What was the first computer worm?
The Morris worm, released on 2 November 1988 by Cornell graduate student Robert Tappan Morris, was the first worm to spread widely across the internet. It infected about 6,000 of the roughly 60,000 computers then online, and it led directly to the creation of CERT/CC.
Are computer worms still a threat in 2026?
Yes, though the classic internet-wide worm is rarer now. Modern ransomware and botnets still use worm-like techniques to move sideways inside a network, and unpatched systems remain vulnerable to the same flaws that powered Conficker and WannaCry.
How do you stop a computer worm?
Patch promptly, segment your network so one infected machine cannot reach everything, disable old protocols such as SMBv1, use strong unique passwords, and block autorun from USB drives. Those five controls stop most historic worm techniques.
Was WannaCry a worm or ransomware?
Both. WannaCry was ransomware with a worm component: it encrypted files and demanded payment, and it spread on its own using the EternalBlue exploit against unpatched Windows SMBv1. That combination is why it reached more than 200,000 computers in days.
What did Stuxnet target?
Stuxnet targeted Siemens industrial controllers at Iran's Natanz uranium enrichment plant. It spread through USB drives and networks, used four Windows zero-day flaws, and physically damaged centrifuges — the first widely known malware built to cause physical destruction.
How can I tell if my computer has a worm?
Warning signs include sudden network slowdowns, unexplained traffic, programs crashing, files changing without your input, and your computer sending emails you did not write. Run a full scan with up-to-date antivirus software and check for unknown processes and connections.
Sources
- FBI — The Morris Worm: 30 Years Since First Major Attack on the Internet
- CISA — WannaCry Ransomware
- Microsoft — MS08-067: Vulnerability in Server Service Could Allow Remote Code Execution
- Microsoft — MS17-010: Security Update for Microsoft Windows SMB Server
- CAIDA — The Spread of the Code-Red Worm
- LastPass — The Rise and Reign of Computer Worms
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against FBI and CISA advisories, Microsoft security bulletins MS08-067 and MS17-010, and CAIDA's Code Red measurement study.
How we write and fact-check →