At about half past eight in the evening on 2 November 1988, a program began copying itself from machine to machine across the internet. It had no name yet and no owner anyone could see; within hours it had slowed or stopped something like six thousand of the roughly sixty thousand computers then connected, and parts of the network were cut off from each other for days. It was written by a Cornell graduate student named Robert Tappan Morris, and it is remembered as the Morris worm — the first time a piece of self-spreading code caused a crisis on the internet, the event that created the first coordinated security response team, and the origin of nearly every defensive habit the rest of this series describes. It is the oldest story here, and in a sense the one all the others are footnotes to.
This is the sixth and final page in a series on the vulnerabilities that changed how Linux is built and defended, after Heartbleed, Shellshock, regreSSHion, the privilege-escalation decade and Meltdown and Spectre. It goes back before Linux existed, to the Unix the worm actually spread through, because the lessons of 1988 are the ones Linux inherited rather than learned.
What happened
Morris released the worm from a machine at MIT rather than Cornell, to disguise where it came from. It spread three ways, each of them a weakness in how Unix machines of the era trusted one another and the input they were given. It exploited a flaw in the fingerd daemon, the service that answered requests about who was logged in, by sending it more data than it was built to hold. It used a DEBUG feature that had been left enabled in the sendmail mail server, which allowed commands to be run on a remote machine that was only meant to be receiving mail. And it walked the trust relationships between machines — the rsh and rexec services that let one host log into another without a password — guessing weak passwords from a built-in list to widen its reach.
None of that, by itself, would have made the news. What turned the worm into a disaster was a design decision. Morris had anticipated that administrators might try to immunise their machines by faking an infection, so he programmed the worm to keep spreading even onto machines that already carried it, making a fresh copy a fraction of the time regardless. On the real internet that fraction was far too high, and machines were reinfected over and over until they collapsed under the load — the effect of a fork bomb, spread across the whole network. The worm did no damage to data; it did not read files or delete anything. It simply multiplied until the machines it lived on could do nothing else.
The aftermath built the institutions that security still runs on. Within weeks, DARPA funded the creation of the CERT Coordination Center at Carnegie Mellon University — the first organisation whose job was to coordinate the response to incidents like this, and the direct ancestor of the coordinated-disclosure process that every later page in this series depends on. And Morris became the first person convicted under the United States’ Computer Fraud and Abuse Act of 1986: he was sentenced in 1990 to three years’ probation, four hundred hours of community service and a fine. He was expelled from Cornell, and went on to become a respected professor at MIT. He has said he did not intend the worm to spread as it did.
The flaw, in one paragraph
All three of the worm’s routes in were the same mistake wearing different clothes: a program trusting something it should have checked. fingerd trusted that a request would fit the space it had set aside for it. sendmail trusted that a convenience left over from development would never be used in anger. The rsh network trusted that a machine claiming to be a friend was one, and that the password guarding the door was not “password.” Each was reasonable on a small network of people who knew each other, which is what the internet had been until that night. The worm’s real discovery was that the internet had stopped being that, and that trust extended by default to whoever could connect was no longer trust at all — it was an opening. Every defensive idea on the pages before this one is, at bottom, a refusal to make one of those three assumptions again.
The fingerd weakness in particular — accepting more input than a fixed buffer could hold — became the defining bug class of the next two decades, and the toolchain’s answer to it is now so built-in that the oldest culprit cannot easily be compiled at all. On the machine used for this page:
$ gcc overflow.c -o overflow
overflow.c: warning: implicit declaration of function 'gets'; did you mean 'fgets'?
/usr/bin/ld: warning: the `gets' function is dangerous and should not be used.The gets() function — the classic way a C program read input into a buffer with no limit, and the shape of the fingerd flaw — was removed from the C language standard in 2011, and both the compiler and the linker now object to any program that still reaches for it. That is one small, visible end of a very long road that started in 1988.
What it taught Linux
The network is hostile by default, and that is the starting assumption now. Before the worm, a Unix machine on the internet was configured as a good neighbour: services on, trust extended, passwords optional between friendly hosts. The worm proved that a single bad actor could reach every machine that held that posture, and the entire direction of travel since — services off unless needed, authentication required, trust granted explicitly rather than assumed — is the inversion of 1988’s defaults. A fresh Linux install today ships almost nothing listening and trusts no one automatically, which is the worm’s most direct legacy, and the starting point of Securing a New Linux Server.
The buffer overflow became the enemy, and the defences are now automatic. The fingerd flaw set the pattern for twenty years of the most serious vulnerabilities, and the response was layered: the dangerous functions removed from the language, stack canaries to catch overwrites, non-executable memory so overwritten data cannot be run, and address-space randomisation so an attacker cannot predict where anything is. Every one of those is on by default in a modern Linux toolchain and kernel, quietly, for code that was compiled with no special effort — which is why the same class of bug that stopped the internet in 1988 is merely difficult rather than routine in 2026.
Ship nothing you are not using. The sendmail DEBUG hole was not a coding error; it was a development convenience that nobody had turned off before the software shipped. That lesson — that every enabled feature, every default account, every open port is attack surface whether or not you use it — runs straight through this series, from the pkexec that did not need to be on a server to the mitigations Meltdown left switchable. The discipline of a minimal install, with only what the machine’s job requires, is the oldest security advice there is, and the worm is why.
Someone has to coordinate the response. The worm hit a network with no one to call. The CERT Coordination Center was created so there would be, and the machinery it began — advisories, embargoes, coordinated release dates, a shared vocabulary of CVEs — is exactly what made the orderly disclosures of Heartbleed, regreSSHion and the rest possible. The reason those later stories are about a fix shipping on the same day as the flaw’s announcement, rather than about a week of chaos, is an institution that 1988 proved was necessary.
What to check on your machine today
You cannot check for the Morris worm; the services it rode are long gone from a default system. What you can do is confirm that the three doors it walked through are shut on your machine — which is a good description of basic hardening in general.
ss -tlnp # what is listening — fingerd, rsh and rexec should be nowhere
gcc -Q --help=common | grep -i 'stack-protector.*enabled' # the overflow defence, on by default
cat /proc/sys/kernel/randomize_va_space # ASLR: 2 means full randomisationOn the machine used for this page the listening set is tiny, gcc reports -fstack-protector-strong enabled by default (alongside -fstack-clash-protection and _FORTIFY_SOURCE 3), and randomize_va_space reads 2. The buffer-overflow defences the worm’s descendants forced into existence are simply on, for everything, without anyone asking.
grep -E '^(PasswordAuthentication|PermitRootLogin|PermitEmptyPasswords)' /etc/ssh/sshd_config /etc/ssh/sshd_config.d/* 2>/dev/null
sudo sshd -T 2>/dev/null | grep -iE '^(passwordauthentication|permitemptypasswords)'
getent hosts | head; cat /etc/hosts.equiv 2>/dev/null || echo "no hosts.equiv (good)"The worm’s password-guessing and host-trust routes are what SSH replaced, so check that SSH is not quietly allowing them back. The modern successor to rsh‘s trusted hosts is key-based SSH, and the whole point of it is defeated if the server still accepts passwords or, worse, empty ones — so passwordauthentication no is the setting that closes the door the worm used, and a missing /etc/hosts.equiv means the old blanket-trust mechanism is not even present. SSH Keys Explained covers doing this properly, and Securing a New Linux Server puts it alongside the rest. Thirty-seven years on, the checklist the Morris worm wrote is still the one that matters.
Sources
- RFC 1135, “The Helminthiasis of the Internet” (J. Reynolds, December 1989) — the launch time of 2 November 1988 and the contemporary account of the incident
- Brendan P. Kehoe, Zen and the Art of the Internet (1992), as hosted by MIT — the three attack vectors (the
sendmaildebug hole and thefingerdhole), the release from MIT to disguise Cornell as the origin, the reinfection bug, and the sentence of probation, community service and a fine - The Cornellians magazine account (Cornell University, November 2023) — the ~6,000-of-60,000 figure, Morris’s expulsion and later career, and the first-conviction-under-the-CFAA detail; the 6,000 figure is, as Wikipedia notes citing Paul Graham, a widely repeated estimate rather than a precise count
- The founding of the CERT Coordination Center at Carnegie Mellon in response to the worm, and United States v. Morris (2d Cir. 1991) for the Computer Fraud and Abuse Act conviction
- The
gets()compiler and linker warnings, the defaultgcchardening flags and the ASLR setting were read on the Ubuntu 24.04 machine (gcc 13.3.0) used for this page; the removal ofgets()is from the C11 language standard
Related reading
- Heartbleed, Shellshock, regreSSHion, the privilege-escalation decade and Meltdown and Spectre — the rest of the series, every one of them a descendant of this story
- Securing a New Linux Server — services off, keys not passwords, trust granted explicitly: the worm’s lessons as a checklist
- SSH Keys Explained — the key-based trust that replaced the
rshrelationships the worm abused - ss — reading what is actually listening on a machine, which is where hardening starts
- The Life of an SSH Connection — how the service that replaced
rshactually establishes trust

