The Morris Worm: The Night the Internet Got Sick
On November 2, 1988, a 22-year-old grad student released a program to quietly measure the early internet, but by morning, thousands of machines were offline. The difference between a quiet experiment and a network-wide disruption came down to one bad line of logic.
At around 8:30 on a Wednesday night in November 1988, a program began running on a computer at Massachusetts Institute of Technology (MIT), although nobody there had launched it. From that machine, it copied itself to another, then another, without deleting files or stealing anything. The trouble came from how relentlessly it spread.
By the next morning, computers at universities, National Aeronautics and Space Administration (NASA) research centers, and military research labs across the United States were crawling or had stopped responding entirely. Administrators returning after a night away found hundreds of copies of the same mystery process burying their machines. Some disconnected their networks from the internet to stop the arrivals, which also cut them off from the people trying to work out what was happening.
The internet was then a network of maybe 60,000 machines, run mostly by researchers who trusted one another, and this was its first encounter with something that spread on its own. The program became known as the Morris Worm. As you follow its path, you'll find almost every security concept you'll study for A+ and Security+ somewhere along the way.
Illustration of what an admin might have seen the next morning: hundreds of processes and a load average far above what a lightly loaded machine would show; compare load with its Central Processing Unit (CPU) count. The worm named its process sh to blend in.
Who wrote it, and why
The author was Robert Tappan Morris, a 22-year-old first-year computer science graduate student at Cornell who would turn 23 six days later. His father, Robert Morris Sr., was a well-known Unix pioneer and the chief scientist at the National Security Agency's National Computer Security Center at the time. Morris came from a family already deeply involved in computer security.
By Morris's own account, he wanted to measure how big the internet actually was by sending a program to as many machines as possible. Destruction wasn't the aim, and he launched the experiment from a computer at MIT rather than Cornell, making it harder to trace back to him. Once released, though, the program's behavior mattered more than its intended purpose.
Reaching another machine wasn't enough; the worm also needed a way to get inside it. Morris gave it four ways in, so closing just one door would still leave others available.
Four ways in
Pick a door the worm used
Each one is a lesson that still shows up on your exams, usually under a different name.
The bug that broke the internet
Morris knew repeated infections on the same machine would attract attention, so he built in a check before installation. The worm asked, "Is a copy of me already running here?" A yes was supposed to make it back off and leave that machine alone.
That check raised another concern for Morris: administrators could fake a yes to protect their machines. To get around that possibility, he added an exception: one time in seven, the worm would install itself anyway, even when another copy was already running. That small exception undermined the safeguard.
A one-in-seven chance sounds small until you remember that every copy kept trying to infect its neighbors throughout the night. With machines constantly reaching one another, those repeated attempts stacked dozens and eventually hundreds of copies on a single computer, each consuming memory and processor time. Eventually the machine could do nothing else, turning a program meant to stay invisible into a denial of service against the whole internet.
Release it yourself
Simplified model: illustrative topology and timing. These fifty machines and their connections, simulation clock, and unusable threshold do not reconstruct the historical network. Compare a one-in-seven reinfection chance with always backing off to see how repeat infections can amplify load.
Press Release the worm. It starts on one machine, just like it started on one computer at MIT.
The night, hour by hour
The worm is released from a computer at MIT and starts copying itself across the network.
As machines at universities and research labs slow down, administrators find dozens of unfamiliar sh processes. Killing those processes brings little relief because new copies keep arriving across the network.
Once Morris realizes the worm is out of control, he asks a friend at Harvard to post an anonymous warning with instructions for stopping it. The warning has to cross the same jammed network, so it reaches most sites too late to help.
By daytime, many sites have disconnected from the internet entirely to protect their machines. That leaves administrators with another problem: email, their main way of coordinating a response, is part of what's broken.
Teams at UC Berkeley and MIT capture copies of the worm and reverse-engineer its code. Within about a day, they publish an explanation of its behavior and ways to block each of its four routes into a machine.
Defense Advanced Research Projects Agency (DARPA) funds the Computer Emergency Response Team Coordination Center (CERT/CC) at Carnegie Mellon, a permanent group to coordinate the response to the next attack.
Morris is indicted and becomes the first person convicted under the 1986 Computer Fraud and Abuse Act. The sentence brings three years of probation, 400 hours of community service, and a $10,050 fine, giving the case consequences beyond the machines it disrupted.
Afterward, Morris goes on to co-found Viaweb and later Y Combinator, and becomes a professor at MIT. The worm's source code takes a different path: a copy on a floppy disk ends up in a museum.
What it changed
Before November 1988, there was no one to call to coordinate a response like this, and incident response became a discipline as that gap was addressed. CERT/CC was the first coordinated response team; today's Computer Security Incident Response Teams (CSIRTs), Security Operations Centers (SOCs), and incident response plans trace back to it. The Security+ sequence of preparation, detection, analysis, containment, eradication, recovery, and lessons learned grew out of the need to handle nights like this one.
As the worm moved between machines that trusted one another by default, it exposed the danger of granting access simply because a machine belonged nearby. Trust became something you verify. The modern answer is Zero Trust, where a device or network location doesn't earn trust just from where it sits.
The Morris case also gave courts a precedent for applying computer crime law to code that spreads on its own, whatever its author intended. That is why hacking became a crime with a precedent: an experiment's stated purpose did not settle responsibility for its effects.
Where this shows up on your exam
As you compare malware types, remember what made this a worm: it self-replicated across a network without user action. Use that behavior to distinguish it from a virus, Trojan, or rootkit.
The worm's password guessing gives you an example of a dictionary attack. Follow the effects of its traffic flood, and you can also see why it became a denial of service in practice.
In 1988, password hashes sat in /etc/passwd, where anyone could read them. Compare that with their location now in /etc/shadow, readable only by root, and you can see how access to the hashes changed.
Keep the two entry weaknesses separate when you read an exam scenario. The fingerd attack illustrates a buffer overflow, while the sendmail hole illustrates a misconfiguration.
When hundreds of copies of one process leave machines grinding to a halt, you have a concrete example of resource consumption. That pattern is an indicator of malicious activity worth investigating.
The hop through trusted hosts gives you a reason for removing implicit trust zones. Connect that behavior to Zero Trust rather than assuming a familiar network location makes a machine safe.
Follow the response from CERT/CC through reverse engineering the sample and publishing fixes. Those actions put analysis, containment, eradication, lessons learned into a concrete incident rather than leaving you with a list to memorize.
Spot the exam term
Watch it
Want more of the story? These free videos go deeper. They open on YouTube in a new tab.
Sources. Eugene Spafford, "The Internet Worm Program: An Analysis" (Purdue, 1988); Mark Eichin and Jon Rochlis, "With Microscope and Tweezers" (MIT, 1989); U.S. General Accounting Office report Government Accountability Office (GAO)/IMTEC-89-57 (1989); United States v. Morris, 928 F.2d 504 (2d Cir. 1991).