A worm is a program that duplicates itself from one directory, drive, computer or network to another. Most worms send themselves through e-mail and many have mass-mailing functions, which allow them to mail themselves to every address in a particular mailbox. Another popular method of transmission for worms is through Local Area Networks. A few can even come through instant messangers.
Unlike a virus a worm is a self-contained program and does not need to attach itself to an executable files, though some worms have a viral component that infects files. As they are executable programs, they can become infected with viruses and all "descendants" of that copy of the worm maybe infected with the virus and have the ability to infect files on other computers that they spread to when they are run.
As with viruses, worms come in many types. The most common method of categorization is how they spread. Some worms may have more than one method of spreading.
Email worms spread through email messages. Essentially, an email message with an attachment arrives in a mailbox and when the user downloads and executes that attachment, the worm creates a new email message with a copy of itself attached and mails itself to one or more other email addresses. Some email worms such as Nimda can run by themselves without any intervention from the user, and may even infect the computer from the preview pane. Details like the alleged sender, subject, message, attachment name and file type, payload (if any), and method of finding email addresses to send itself to can be radically different.
There is some speculation that Email Worms may become less of a threat in the future, as average users become more wise and follow safer email handling practices.
Internet worms spread directly over the Internet. The worm searches for open ports on the Internet and sends itself to other systems. Most of the major worms exploit known vulnerabilities to spread. Some consider these worms to be the only "true" worms, as they require absolutely no user intervention to spread. Morris, Slammer, CodeRed, Blaster and Sasser are a few examples of prominent internet worms.
Network worms spread over network shares. Usually a network worm is also an email, Internet or other type of worm, as it would not spread very far if it were restricted to a local network.
IRC (Internet Relay Chat), IM (Instant Message), P2P (Peer-to-Peer file sharing) and other types of worms typically require that one have a client for the particular activity that allows the worm to spread through one's computer.
Multiple Vector WormsEdit
John Leyden. The Register, The strange death of the mass mailing virus. 2004.12.09