Explanation of viruses and worms

Explanation of viruses and worms

Can you further explain the difference between a virus and worm? I found the previous explanation to be brief.


    Requires Free Membership to View

    SearchSecurity.com members gain immediate and unlimited access to breaking industry news, virus alerts, new hacker threats, highly focused security newsletters, and more -- all at no cost. Join me on SearchSecurity.com today!

    Michael S. Mimoso, Editorial Director

    By submitting your registration information to SearchSecurity.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSecurity.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

A Trojan horse program is named after the infamous Greek Trojan horse of history. A Trojan or Trojan horse is an imposter file, presented to you as doing something beneficial or benign to your computer. When run, the Trojan might or might not do what it claims, but it will also or instead will do something else, such as format your hard-drive. A Trojan does not replicate.

A computer virus is a small program written to do something to a computer without the consent (and often the knowledge) of the computer user. For a program to be considered to be a virus, it must somehow cause itself to be replicated once it has been executed by the user. So, for e-mail attachments, a virus file would need to be double-clicked to activate and then replicate on that computer.

A worm is a program which actively replicates itself to other computers. A worm arriving via e-mail would start spreading itself to other computers as soon as it was activated. This could be by sending itself out via e-mail or by exploiting open file shares on a network.

These days, many examples of malware combine the techniques into hybrids, and debating the differences becomes an exercise for purists.


This was first published in October 2001