Difference between Virus and Trojan Horse

1. Virus :
A virus is a malicious executable code attached to another executable file which can be harmless or can modify or delete data. 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.

2. Trojan Horse :
Trojan Horse is also a type of malware which uses false and fake name for mislead users from its true intent and executing them. Trojan Horses generally install on the system as legitimate and useful software that can give unauthorized access and control of the system to the hackers. Back orifice, Rootkit and Beast Trojan are some of the common Trojan horse which is more harmful.



Difference between Virus and Trojan Horse :

S.No. VIRUS TROJAN HORSE
1. A Virus is a malicious executable code attached to another executable file which can be harmless or can modify or delete data. Trojan Horse is a form of malware that capture some important information about a computer system or a computer network.
2. The main objective of virus is to modify the information. The main objective of Trojan horse is to steal the information.
3. It is more harmful. It is less harmful as compared.
4. Antivirus software are used for protection against viruses. Trojan horses are detected by the antivirus software.
5. Virus can’t be controlled by remote. Trojan Horse can be controlled by remote.
6. Viruses are executed via executable files. Trojan horse are executed through a program and interprets as utility software.
7. Resident and Non -resident viruses are two types of Virus. Back orifice, Rootkit and Beast Trojan are some of the common Trojan horses.
8. Virus replicates itself. Trojan horse does not replicate itself.

Attention reader! Don’t stop learning now. Get hold of all the important CS Theory concepts for SDE interviews with the CS Theory Course at a student-friendly price and become industry ready.

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.