Skip to main content

1. The Infection

"Sandworms, ya hate 'em, right??"

— Michael Keaton, Beetlejuice

Defining "worm" versus "virus"​

A "worm" is a program that can run independently, will consume the resources of its host from within in order to maintain itself, and can propagate a complete working version of itself on to other machines.

A "virus" is a piece of code that inserts itself into a host, including operating systems, to propagate. It cannot run independently. It requires that its host program be run to activate it.

In the early stages of the helminthiasis, the news media popularly cited the Internet worm to be a "virus", which was attributed to an early conclusion of some in the computer community before a specimen of the worm could be extracted and dissected. There are some computer scientists that still argue over what to call the affliction. In this RFC, we use the term, "worm".

1.1 Infection - The Worm Attacks​

The worm specifically and only made successful attacks on SUN workstations and VAXes running Berkeley UNIX code.

The Internet worm relied on the several known access loopholes in order to propagate over networks. It relied on implementation errors in two network programs: sendmail and fingerd.

Sendmail is a program that implements the Internet's electronic mail services (routing and delivery) interacting with remote sites [1, 2]. The feature in sendmail that was violated was a non-standard "debug" command. The worm propagated itself via the debug command into remote hosts. As the worm installed itself in a new host the new instance began self-replicating.

Fingerd is a utility program that is intended to help remote Internet users by supplying public information about other Internet users. This can be in the form of identification of the full name of, or login name of any local user, whether or not they are logged in at the time (see the Finger Protocol [3]).

Using fingerd, the worm initiated a memory overflow situation by sending too many characters for fingerd to accommodate (in the gets library routine). Upon overflowing the storage space, the worm was able to execute a small arbitrary program. Only 4.3BSD VAX machines suffered from this attack.

Another of the worm's methods was to exploit the "trusted host features" often used in local networks to propagate (using rexec and rsh).

It also infected machines in /etc/hosts.equiv, machines in /.rhosts, machines in cracked accounts' .forward files, machines cracked accounts' .rhosts files, machines listed as network gateways in routing tables, machines at the far end of point-to-point interfaces, and other machines at randomly guessed addresses on networks of first hop gateways.

The Internet worm was also able to infect systems using guessed passwords, typically spreading itself within local networks by this method. It tried to guess passwords, and upon gaining access, the worm was able to pose as a legitimate user.

1.2 Festering - Password Cracking​

The worm festered by going into a password cracking phase, attempting to access accounts with obvious passwords (using clues readily available in the /etc/passwd file), such as: none at all, the user name, the user name appended to itself, the "nickname", the last name, the last name spelled backwards. It also tried breaking into into accounts with passwords from a personalized 432 word dictionary, and accounts with passwords in /usr/dict/words.

Most users encountered a slowing of their programs, as the systems became overloaded trying to run many copies of the worm program, or a lack of file space if many copies of the worm's temporary files existed concurrently. Actually, the worm was very careful to hide itself and leave little evidence of its passage through a system. The users at the infected sites may have seen strange files that showed up in the /usr/tmp directories of some machines and obscure messages appeared in the log files of sendmail.

1.3 The Cure​

Teams of computer science students and staff worked feverishly to understand the worm. The key was seen to get a source (C language) version of the program. Since the only isolated instances of the the worm were binary code, a major effort was made to translate back to source, that is decompile the code, and to study just what damage the worm was capable of. Two specific teams emerged in the battle against the Internet worm: the Berkeley Team and the MIT team. They communicated and exchanged code extensively. Both teams were able to scrutinize it and take immediate action on a cure and prevent reinfection. Just like regular medical Doctors, the teams searched, found and isolated a worm specimen which they could study. Upon analyzing the specimen and the elements of its design, they set about to develop methods to treat and defeat it. Through the use of the "old boy network" of UNIX system wizards (to find out something, one asks an associate or friend if they know the answer or who else they could refer to to find out the answer), email and phone calls were extensively used to alert the computer world of the program patches that could be used at sites to close the sendmail hole and fingerd holes. Once the information was disseminated to the sites and these holes were patched, the Internet worm was stopped. It could not reinfect the same computers again, unless the worm was still sitting in an infected trusted host computer.

The Internet worm was eliminated from most computers within 48-72 hours after it had appeared, specifically through the efforts of computer science staffs at the University research centers. Government and Commercial agencies apparently were slow in coming around to recognizing the helminthiasis and eradicating it.