Skip to main content

Computer Worms - Self-Spreading Network Malware

About 2 min read

A worm is a type of malware that self-replicates and automatically spreads to other computers. Unlike a virus, it does not need a host file and spreads on its own by exploiting network vulnerabilities. According to an analysis by researchers at CAIDA and other institutions, SQL Slammer (Sapphire), which spread in January 2003, infected more than 90 percent of vulnerable hosts within 10 minutes and caused network outages.

What Must Be Decided in Advance Against Something That Spreads on Its Own

When spreading proceeds without human operation, what governs the speed of the response is not the accuracy of detection but the time that judgment takes. The sequence of confirming what is happening, deciding where to cut, and actually acting always contains the time spent gathering the situation. Because the spreading continues at the same rate while that gathering goes on, spending more time in pursuit of a better judgment enlarges the very thing being responded to. What can be decided in advance here is the scope that may be acted on without waiting for judgment: an agreement on which conditions, once met, permit isolation without human confirmation. Next, a method that limits spreading by introducing divisions has to hold at the same time as the premise that some traffic needs to cross those divisions. A route that crosses for the sake of the work also serves as a route for the spreading. Since the shape of the traffic alone cannot tell which direction it is being used in, adding more divisions does not make things proportionally safer; a passage remains for every route that has to cross. What the design of divisions settles is not whether passage exists but whether the crossing routes can be kept to the minimum. And grasping the scale must be treated as separate from judging containment. Because the count grows while the counting is under way, the result always describes a past state. Tying the start of recovery to confirmation of the full count means nothing begins until that confirmation ends. What should be decided in advance is not whether the confirmation is complete but what will serve as the basis for judging whether the number is still growing.

How a Worm Spreads

Initial infection
Scan for vulnerable devices
Self-replicate and infect
Rescan from infected devices
Infections chain onward

How Worms Propagate

A worm scans the network for vulnerabilities, automatically discovering and infecting unpatched systems. Email attachments, USB drives, and file-sharing services can also serve as infection vectors. After infection, it creates copies of itself and keeps spreading. On WannaCry in May 2017, an alert from the US CISA stated that it propagated by exploiting a Windows SMB vulnerability (MS17-010) and, citing open-source reports, described tens of thousands of infections in over 150 countries.

The Difference From a Trojan Horse

A Trojan horse is a technique that disguises itself as legitimate software to trick users into installing it, and it has no self-replication capability. A worm differs in that it spreads automatically over the network without any user action. The distinction is that a Trojan horse "deceives its way in" while a worm "breaks in by exploiting vulnerabilities."

Key Defensive Measures

Promptly applying security patches for your OS and software is one measure against worms that spread by exploiting vulnerabilities. Use a firewall to close unnecessary ports, and network segmentation limits the spread of infection. Protecting network equipment and admin panels with strong random passwords, and never operating with default passwords, are also among the measures. The article on ransomware protection covers measures in common.

Was this article helpful?

Related Terms