Worm
A worm is infectious malware that can replicate itself and operate independently. Learn how computer worms spread, how they differ from viruses, and how organizations contain them before they move across the network.
What is a worm?
A computer worm is a type of malware that spreads from one system to another on its own. Unlike a virus, it does not need to attach to a host program or wait for a user to run it. Once a worm infects one machine, it scans for other vulnerable systems and copies itself to them, which can lead to very fast, wide outbreaks. Worms may carry a payload, such as ransomware or a backdoor, or cause damage simply by consuming bandwidth and resources.
How does a worm work?
- Initial infection: the worm enters through a vulnerable network service, a phishing message, removable media, or weak credentials.
- Scanning: it searches the local network or the internet for other systems with the same weakness.
- Propagation: it exploits the vulnerability or uses stolen or guessed credentials to copy itself to new systems.
- Repetition: each new infection starts scanning in turn, so spread can grow quickly.
- Payload: it may install other malware, encrypt files, or open remote access.
Some worms use multiple methods at once, such as exploiting a software flaw and also reusing administrator credentials found on infected machines.
Worm vs. virus
A virus needs a host file and usually some user action to spread. A worm is self-contained and self-propagating across networks. Both are malware; worms are generally faster to spread and harder to contain once they start.
Why does a worm matter?
Worms can affect many systems before anyone reacts. Prompt patching, network segmentation, firewalls that limit unnecessary connections between machines, and unique local administrator passwords reduce the paths a worm can use. Limiting where privileged credentials are stored and reused is especially important, since worms often harvest them to spread.
Frequently asked questions
What is a computer worm?
A worm is infectious malware that can replicate itself and operate independently, spreading across networks without needing a host program.
How do worms spread?
By exploiting vulnerabilities in network services, using stolen or weak credentials, or through email, messaging, and removable media.
How do you stop a worm outbreak?
Isolate infected systems, block the exploited service or port, patch the vulnerability, reset exposed credentials, and restore affected systems from clean sources.
Limit lateral movement through privileged accounts
Rotate privileged credentials on a schedule and propagate changes automatically.
Related terms
Virus
A virus is infectious malware that can replicate itself and execute its code into legitimate programs.
Read now →Malware
Malware is malicious software: a generic term for software designed to execute harmful or disruptive attacks on a server, network, or computer.
Read now →Zero-day attack
A zero-day attack is a cyberattack on a security vulnerability that is discovered by the attacker before the developer of the system or program.
Read now →