SecSIGSecurity Special Interest Group of US MensaCuriosity. Perspective. Security.

Research Library · Idea

Morris worm

The Morris worm was a self-replicating program released on the Internet on the evening of 2 November 1988. Spafford's Purdue technical report describes it as a program that exploited flaws in utility programs on BSD-derived UNIX systems to break into machines and copy itself, and that eventually spread to thousands of machines and disrupted normal activities and Internet connectivity for many days.1 It infected only Sun 3 systems and VAX computers running variants of 4 BSD UNIX.1 RFC 1135, written by Joyce Reynolds in December 1989, calls it a self-replicating program that infected VAX computers and Sun-3 workstations running 4.2 and 4.3 Berkeley UNIX code.2

The worm used several routes into a target. Two were implementation errors in network programs. In sendmail, the worm used a non-standard "debug" command. In the finger daemon, fingerd, it sent a specially constructed string of 536 bytes that overflowed the input buffer and overwrote part of the stack, so that the return address pointed into the buffer and the injected instructions started a shell. This attack worked on the VAX versions of 4 BSD only.12 Spafford traces the overflow to the gets library call, which takes input into a buffer without any bounds check.1 A third route used the trusted-host mechanisms rsh and rexec, and the worm also tried to guess passwords, beginning with obvious choices derived from the account information and then a built-in word list and the system dictionary.12

The visible effect was load. Systems ran more and more copies of the worm as they were repeatedly infected, and some became unable to continue processing or failed when swap space or process tables were exhausted.1 Spafford records that staff at Berkeley and MIT had captured copies by late Wednesday night, and that by 5 AM EST Thursday the Berkeley Computer Systems Research Group had an interim set of steps to halt its spread, including a preliminary sendmail patch. Systems disconnecting from the network in an attempt at quarantine hampered the spread of these instructions.1

Spafford concludes that the code shows the worm was deliberately designed to infect as many machines as possible and to be difficult to track and stop, and that its release may have been premature.1 When he wrote, he reported that an author had been alleged, Robert T. Morris, who had not publicly confessed and whose authorship had not been definitively proven.1 RFC 1135 gives a chronology of the events from 2 to 11 November 1988 and discusses lessons, ethics and the role of the news media.2

Source · The Internet Worm Program: An Analysis (opens in a new tab) · Purdue University Department of Computer Sciences, Technical Report CSD-TR-823 (author: Eugene H. Spafford)

References

  1. The Internet Worm Program: An Analysis (opens in a new tab) · Purdue University Department of Computer Sciences, Technical Report CSD-TR-823 (author: Eugene H. Spafford) · November 29, 1988 · Copy dated November 29, 1988, revised December 8, 1988; abstract, introduction, description of the infection methods, and conclusions. ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩ ↩
  2. RFC 1135: The Helminthiasis of the Internet (opens in a new tab) · RFC Editor / IETF (author: J. Reynolds) · December 1989; memo for information, not a standard. ↩ ↩ ↩ ↩

Research articles

See what connects to it on the map of ideas →

See also