Explore our new Cybersecurity Terms Glossary, explained by our experts.

View the Glossary View the Glossary
PRIVIA

Cybersecurity Terms Glossary

What Is a Computer Worm?

A computer worm is a type of malware that replicates itself and spreads automatically from one system to another across a network, without needing a host file or any user action.

Illustration for the cybersecurity term Worm
Home / Blog / Cybersecurity Terms / What Is a Computer Worm?
17 November 2026

What Is a Computer Worm?

What Is a Computer Worm?

A computer worm is a type of malware that copies itself and spreads from system to system on its own. Once it infects one machine, it scans for other vulnerable systems and infects them too, then repeats the cycle. Unlike a virus, a worm does not need to attach itself to another file, and it does not wait for anyone to open anything. That independence is what allows worms to spread at extraordinary speed.

Some worms simply spread. Others carry a payload, such as ransomware, a backdoor, or code that destroys data, which turns a fast-moving infection into a major incident.

How Worms Spread

Worms use several propagation methods, often in combination:

Famous Worm Outbreaks

YearWormImpact
1988Morris wormInfected an estimated 6,000 machines, about 10% of the internet at the time
2000ILOVEYOUSpread through email attachments to tens of millions of users worldwide
2003SQL SlammerInfected around 75,000 servers within ten minutes, doubling roughly every 8.5 seconds
2008ConfickerInfected millions of Windows computers and lingered for years
2010StuxnetSpread via USB drives and networks to sabotage industrial controllers in Iran
2016MiraiBuilt a huge botnet from IoT devices using default passwords
2017WannaCryCombined a worm with ransomware, affecting around 150 countries, including parts of the NHS
2017NotPetyaDestructive worm disguised as ransomware, causing billions in global damage

WannaCry and NotPetya both used EternalBlue, an exploit for a vulnerability in Microsoft’s SMBv1 protocol. Microsoft had released a patch (MS17-010) in March 2017, two months before WannaCry struck, which shows how closely worm outbreaks are tied to patching gaps.

Why Worms Are So Dangerous

Speed is the defining threat. Human response processes, such as raising a ticket, assessing the risk, and scheduling a change, cannot keep up with an infection that doubles every few seconds or minutes. By the time an analyst notices, thousands of machines may already be affected. Worms also spread indiscriminately, so organisations that were never deliberately targeted can become collateral damage, as many did during NotPetya.

Defending Against Worms

Because response is often too slow, defence relies mainly on architecture and preparation:

Worms Today

Classic mass-spreading worms are less common than in the early 2000s, partly because operating systems are better protected and attackers prefer quieter, targeted intrusions. However, worm-like behaviour remains common. Ransomware groups use automated propagation inside victim networks, IoT botnets continue to spread through default credentials, and any newly disclosed, remotely exploitable vulnerability in a widely used service carries the risk of a new worm.

At Privia Security, our Network Security Services test how far an automated infection could spread through your network, and which segmentation and hardening measures would contain it.

FAQ – Frequently Asked Questions

What Is the Difference Between a Worm and a Virus?

A virus attaches itself to a host file and spreads when that file is opened or run, so it depends on user action. A worm is self-contained and spreads automatically across networks by exploiting vulnerabilities or weak credentials, with no user involvement. This independence makes worms capable of spreading much faster than viruses.

Can a Worm Infect a Fully Patched System?

It is much harder, but still possible. Some worms spread using weak or stolen credentials, default passwords, or zero-day vulnerabilities rather than missing patches. Patching removes the most common route, and combining it with strong unique passwords, segmentation, host firewalls, and endpoint protection greatly reduces the remaining risk.

How Do You Stop a Worm Outbreak in Progress?

Isolate affected network segments quickly, block the protocol or port the worm uses at internal firewalls, and use endpoint tools to contain infected hosts. Then patch or mitigate the vulnerability, reset compromised credentials, and restore affected systems from clean backups. Having segmentation and an incident response plan in place beforehand makes containment far faster.

Related Terms

You May Be Interested In These

What Is Cross-Site Request Forgery (CSRF)?

Cybersecurity Terms

17 November 2026

What Is Cross-Site Request Forgery (CSRF)?

Read More
What Is Drone Detection and Counter-UAS?

Cybersecurity Terms

17 November 2026

What Is Drone Detection and Counter-UAS?

Read More