Difference between Virus, Worm and Trojan Horse

Virus:
Virus is a computer program or software that connect itself to another software or computer program to harm computer system. When the computer program runs attached with virus it perform some action such as deleting a file from the computer system. Virus can’t be controlled by remote.

Worms:
Worms is also a computer program like virus but it does not modify the program. It replicate itself more and more to cause slow down the computer system. Worms can be controlled by remote.

Trojan Horse:
Trojan Horse does not replicate itself like virus and worms. It is a hidden piece of code which steal the important information of user. For example, Trojan horse software observe the e-mail ID and password while entering in web browser for logging.




Difference between Virus, Worm and Trojan Horse:

Virus Worm Trojan Horse
Virus is a software or computer program that connect itself to another software or computer program to harm computer system. Worms replicate itself to cause slow down the computer system. Trojan Horse rather than replicate capture some important information about a computer system or a computer network.
Virus replicates itself. Worms are also replicates itself. But Trojan horse does not replicate itself.
Virus can’t be controlled by remote. Worms can be controlled by remote. Like worms, Trojan horse can also be controlled by remote.
Spreading rate of viruses are moderate. While spreading rate of worms are faster than virus and Trojan horse. And spreading rate of Trojan horse is slow in comparison of both virus and worms.
The main objective of virus to modify the information. The main objective of worms to eat the system resources. The main objective of Trojan horse to steal the information.



My Personal Notes arrow_drop_up

Check out this Author's contributed articles.

If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.

Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.