The Morris Worm
The internet's first famous worm was meant to be harmless. One bad design choice made it copy itself out of control.
- Severity
- Front-page news
- Difficulty
- beginner
- Companies
- Cornell University, MIT, DARPA
- Tech
- Unix, sendmail, fingerd, rsh, Buffer overflow
- Root cause
- memory safety, insecure defaults, unpatched flaw
The story
Quick (1 min)
On the evening of 2 November 1988, a program written by Cornell graduate student Robert Tappan Morris was released from MIT's network. It spread across the young internet by itself, the first worm to get major public attention.
It got into computers through known weaknesses: a debug feature in the sendmail email program, a buffer overflow in the finger service, trusted logins that needed no password, and easy-to-guess passwords.
Morris said he didn't intend damage. But to stop admins from faking "already infected", he made the worm copy itself 14% of the time anyway. Machines got infected again and again until they slowed to a crawl. Networks disconnected from each other for days to clean up.
The lesson: small design choices in self-spreading code can have huge effects, and known weaknesses left unfixed add up.
Keep reading to the end to earn XP.Read. XP earned.
Engineer (2 min)
Targets. The main body infected DEC VAX machines running 4BSD and Sun-3 systems (RFC 1135 says VAXes and Sun-3 workstations running 4.2 and 4.3 Berkeley UNIX code). A small portable C "grappling hook" program downloaded the main body, and it also ran on other systems, loading them down as side victims.
How it got in (Wikipedia, RFC 1135):
- sendmail debug mode: a non-standard feature allowed commands to be run through email delivery.
- fingerd buffer overflow: the worm sent more characters than fingerd's buffer could hold, overwriting memory to run its own code.
- rsh/rexec trust: hosts trusted each other (for example via
/etc/hosts.equiv), allowing remote logins with no password. - Weak passwords: it guessed passwords such as dictionary words, the username, the username backwards ("emanresu"), and the username doubled.
The replication bug. The worm checked whether a machine was already infected, but Morris worried admins would fake a positive answer. So it copied itself 14% of the time regardless. That turned an experiment into "a viral denial-of-service attack." Machines ran multiple copies, ground to a halt, and got reinfected. Michael Rabin later said Morris "should have tried it on a simulator first."
Response. Regional networks disconnected from the NSFNet backbone and from each other for several days to avoid reinfection while cleaning up. Gene Spafford created the Phage mailing list to coordinate. Afterwards, DARPA funded CERT/CC at Carnegie Mellon as a central point for coordinating responses to network emergencies.
Interview takeaway: this is the original case study for buffer overflows, implicit trust between hosts, weak passwords, and why rate limiting in self-replicating systems matters.
Keep reading to the end to earn XP.Read. XP earned.
Deep dive (2 min)
Timeline (Wikipedia, RFC 1135)
- 2 November 1988, about 8:30 p.m.: the worm is launched from MIT's network. Morris was a Cornell PhD student and reportedly released it from MIT to avoid tracing it back to Cornell.
- Within hours: infected machines slow down from repeated infections. Clifford Stoll later wrote that he "found that two thousand computers were infected within fifteen hours."
- Following days: regional networks disconnect from NSFNet and each other to clean up. Phage mailing list coordination; fixes for sendmail and fingerd spread.
- Afterwards: DARPA funds the creation of CERT/CC.
- Later: Morris is convicted under the 1986 Computer Fraud and Abuse Act, the first felony conviction under it. He's sentenced to three years' probation, 400 hours of community service and a fine (Wikipedia gives a total of $13,326, including probation costs).
How many machines?
The often-quoted figure is about 6,000 UNIX machines. Paul Graham said it came from a guess of 60,000 internet computers times 10%. Stoll estimated "only a couple thousand." Treat the number as uncertain.
Cost estimates
A US court of appeals estimated removal costs per installation at $200–$53,000. Stoll's estimate for the GAO put total economic impact between $100,000 and $10,000,000. No precise figure exists.
Why it still matters
- Buffer overflows: the fingerd attack is one of the earliest well-known real-world examples.
- Implicit trust:
hosts.equivand rsh trust let one compromised machine reach its neighbours, an early lesson in why "inside the network" shouldn't mean trusted. - Weak passwords: simple patterns were enough.
- Coordinated response: CERT/CC's creation shaped how security incidents are handled to this day.
Quote
"[Morris] should have tried it on a simulator first." (Michael Rabin, quoted on Wikipedia)
Keep reading to the end to earn XP.Read. XP earned.
Failure replay
Step by step, what broke and what it hit next. Showing the key steps. Switch to Engineer or Deep dive for every step.
- Nov 2, ~8:30 p.m.Worm launch (MIT)compromised
The worm is released from MIT's network onto the internet.
Affects: VAX and Sun hosts
- MinutesVAX and Sun hostscompromised
It breaks in via sendmail's debug mode, a fingerd buffer overflow, password-less rsh trust, and guessed passwords.
Affects: Neighbour hosts
- MinutesNeighbour hostscompromised
From each victim it spreads to trusted hosts listed in files like /etc/hosts.equiv.
Affects: VAX and Sun hosts
- HoursVAX and Sun hostsdegraded
It reinfects 14% of the time even when a machine says it's already infected. Copies pile up.
- Within 15 hoursInternet (1988)down
Thousands of machines slow to a crawl. Stoll counts about 2,000 infected in 15 hours.
- DaysInternet (1988)recovering
Regional networks disconnect from NSFNet to clean up. Admins coordinate fixes on the Phage mailing list.
Affects: VAX and Sun hosts
- AfterCERT/CChealthy
DARPA funds CERT/CC to coordinate future internet security emergencies.
Impact
- Who was affected
- VAX and Sun-3 machines running Berkeley UNIX across the 1988 internet; estimates range from about 2,000 to an often-quoted (and disputed) 6,000 machines.
- How long
- Spread within hours on 2–3 November 1988; parts of the internet stayed partitioned for several days during cleanup.
- Cost
- Uncertain; estimates range from $100,000 to $10,000,000 total, with $200–$53,000 per installation.
Lessons
- Buffer overflows in network services let remote attackers run code; validate input lengths.
- Implicit trust between machines lets one compromise spread to many.
- Weak and predictable passwords are an easy way in.
- Self-spreading code needs strict limits; a 14% reinfection rate caused the damage.
- Coordinated response (CERT/CC, mailing lists) speeds recovery.
Quiz
Which flaw in the finger service did the worm exploit?
The answer is A buffer overflow from sending too many characters. The worm overflowed fingerd's input buffer to run its own code.
Check answer
A buffer overflow from sending too many characters. The worm overflowed fingerd's input buffer to run its own code.
Why did the worm cause so much damage even though it had no destructive payload?
The answer is It reinfected machines 14% of the time even if already infected, so copies overloaded systems. The forced reinfection rate turned it into a denial-of-service attack.
Check answer
It reinfected machines 14% of the time even if already infected, so copies overloaded systems. The forced reinfection rate turned it into a denial-of-service attack.
What organisation was created in response?
The answer is CERT/CC at Carnegie Mellon, funded by DARPA. DARPA funded CERT/CC to coordinate responses to network emergencies.
Check answer
CERT/CC at Carnegie Mellon, funded by DARPA. DARPA funded CERT/CC to coordinate responses to network emergencies.
How reliable is the famous "6,000 machines infected" figure?
The answer is Disputed; Paul Graham said it came from a guess of 10% of about 60,000 machines. Estimates vary, from Stoll's "couple thousand" to the often-quoted 6,000.
Check answer
Disputed; Paul Graham said it came from a guess of 10% of about 60,000 machines. Estimates vary, from Stoll's "couple thousand" to the often-quoted 6,000.
Interview prep
Try answering out loud before you open the model answer.
- security
The Morris worm used four ways to break into machines. Name them and the modern defence for each.
Show model answer
(1) sendmail's debug mode, a dangerous feature left enabled; the defence is disabling debug and unnecessary features in production and patching. (2) A buffer overflow in fingerd; the defence is input length validation, memory-safe languages, and compiler and OS protections. (3) Password-less trust via rsh and hosts.equiv; the defence is removing implicit trust, using strong authentication between hosts, and segmenting networks (zero trust). (4) Weak password guessing; the defence is strong password policies, MFA and rate limiting. Overall: minimise attack surface and assume one host will be compromised.
A strong answer hits:
- Debug features enabled in production
- Buffer overflow and input validation
- Implicit trust between hosts
- Weak passwords, MFA, rate limiting
How did your answer compare? - system design
The worm's damage came from its replication logic, not a destructive payload. What does that teach you about designing any system that automatically spreads work or copies itself?
Show model answer
Feedback and replication rates must be bounded. Morris reinfected 14% of the time regardless of status, so copies grew without limit and overloaded machines. The same applies to legitimate systems: retries, auto-scaling, gossip protocols and job fan-out need caps, backoff, and de-duplication checks that can't be bypassed. Simulate or test at realistic scale before release; Rabin said Morris should have used a simulator.
A strong answer hits:
- Unbounded replication becomes denial of service
- Caps, backoff, de-duplication
- Simulation and scale testing
How did your answer compare? - behavioural
Why was the creation of CERT/CC after the Morris worm significant, and how does coordinated response work today?
Show model answer
In 1988, responders coordinated ad hoc through mailing lists like Phage, and networks disconnected to protect themselves. CERT/CC, funded by DARPA, gave a central point to coordinate responses to network emergencies. Today, coordinators like CERT/CC and national CERTs and CSIRTs, vendor security teams and information-sharing groups handle disclosure, advisories and incident coordination. Inside a company, the equivalent is a clear incident response process with defined roles and external contacts.
A strong answer hits:
- Ad hoc response in 1988
- CERT/CC as a central coordinator
- Modern CSIRTs and disclosure processes
How did your answer compare?
Go deeper
- Official reportRFC 1135: The Helminthiasis of the InternetRFC Editor, link checked 2026-11-25
- ArticleMorris wormWikipedia, link checked 2026-11-25