How does a computer worm spread with no clicks?

The short answer

A computer worm is malware that copies itself from one machine to the next on its own. It needs no host program and no click, because it breaks in through network services that were never patched.

Animated diagram: How does a computer worm spread with no clicks?

Computer worm

A computer worm is malware that copies itself from one machine to the next on its own. NIST (National Institute of Standards and Technology) defines a worm as self-replicating and standalone. It needs no host program and no user action. That’s what sets it apart from a virus, which needs its host program to run. Nobody has to open a file or click a link for a worm to spread.

The best-known example is WannaCry. On May 12, 2017, it spread across Windows machines through a flaw in SMB (Server Message Block) version 1, the Windows file-sharing service. Microsoft had already released the fix on March 14, 2017, in security bulletin MS17-010. So the defense against a worm is the update that closes the hole it uses.

What a worm actually does

A worm starts on one infected PC and looks for its next victim. It scans nearby IP (Internet Protocol) addresses, probing for a service that’s listening. WannaCry swept local address ranges. It checked UDP (User Datagram Protocol) ports 137 and 138 and TCP (Transmission Control Protocol) ports 139 and 445. A reply on TCP port 445, the SMB port, is what triggered the attack.

When port 445 answered, WannaCry fired a specially crafted packet at a flaw in SMBv1 known as EternalBlue. Its CVE (Common Vulnerabilities and Exposures) number is CVE-2017-0144. No password was needed. MITRE ATT&CK (Adversarial Tactics, Techniques, and Common Knowledge) tracks this kind of spread as T1210, Exploitation of Remote Services.

How a worm spreads from one machine to many

  1. It scans for listeners. The infected PC probes nearby addresses for an open service, such as SMB on port 445.
  2. It exploits the flaw. A crafted packet hits the unpatched bug, here EternalBlue in SMBv1, and the worm gets in without a password.
  3. It copies and hides. The worm copies itself to the new machine and installs a hidden service. WannaCry dropped C:\WINDOWS\tasksche.exe and ran a service called mssecsvc2.0, shown as Microsoft Security Center (2.0) Service.
  4. Each victim scans too. The new machine starts its own scanning, so the number of infections doubles again and again.

That loop is how WannaCry hit over 200,000 machines in more than 150 countries and froze hospital systems across England’s NHS (National Health Service). But it only spread to machines that never installed the update. A patched machine had already closed the door the worm needed.

A worm is not a virus

People often use the two words as if they mean the same thing. A virus needs its host program to run, so something has to launch that program. A worm is standalone and needs no user action. That’s why not clicking won’t save you from a worm. Careful clicking still matters, but against a worm, patching is your wall. WannaCry also wasn’t spread by phishing, and EternalBlue wasn’t a zero-day. The fix was out two months before the outbreak.

What to do

  • Open Windows Update today and install every pending update.
  • Check whether SMB version 1 is present. In Control Panel, look in Windows features for SMB 1.0/CIFS (Common Internet File System) File Sharing Support and untick it if it’s there. Windows 11 doesn’t install it by default, but Windows 10 Home and Pro can still have it.
  • Do the same on every PC at home or at work, since the worm only spread to machines that never installed the update.
  • Don’t count on careful clicking alone. A worm needs no click, so updates are what keep it out.

#ComputerWorm#WannaCry#EternalBlue#SMBv1#Malware#CyberSecurity#InfoSec#CyberAwareness

Watch it in 60 seconds