Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App

Related Articles

Difference between Worms and Virus

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

1. Worms : 
Worms are similar to a virus but it does not modify the program. It replicates itself more and more to cause slow down the computer system. Worms can be controlled by remote. The main objective of worms is to eat the system resources. The WannaCry ransomware worm in 2000 exploits the Windows Server Message Block (SMBv1) which is a resource-sharing protocol.

2. Virus : 
A virus is a malicious executable code attached to another executable file that can be harmless or can modify or delete data. When the computer program runs attached with a virus it performs some action such as deleting a file from the computer system. Viruses can’t be controlled by remote. The ILOVEYOU virus spreads through email attachments. 

Difference between Worms and Virus : 


Sr.No.Basis of ComparisonWORMSVIRUS
1.DefinitionA Worm is a form of malware that replicates itself and can spread to different computers via Network.A Virus is a malicious executable code attached to another executable file which can be harmless or can modify or delete data. 
2.ObjectiveThe main objective of worms is to eat the system resources. It consumes system resources such as memory and bandwidth and made the system slow in speed to such an extent that it stops responding. The main objective of viruses is to modify the information.
3.HostIt doesn’t need a host to replicate from one computer to another.It requires a host is needed for spreading.
4.HarmfulIt is less harmful as compared.It is more harmful.
5.Detection and ProtectionWorms can be detected and removed by the Antivirus and firewall.Antivirus software is used for protection against viruses.
6.Controlled byWorms can be controlled by remote.Viruses can’t be controlled by remote.
7.ExecutionWorms are executed via weaknesses in the system.Viruses are executed via executable files.
8.Comes fromWorms generally comes from the downloaded files or through a network connection.Viruses generally comes from the shared or downloaded files.
  • Hampering computer performance by slowing down it
  • Automatic opening and running of programs
  • Sending of emails without your knowledge
  • Affected the performance of web browser
  • Error messages concerning to system and operating system
  • Pop-up windows linking to malicious websites
  • Hampering computer performance by slowing down it
  • After booting, starting of unknown programs.
  • Passwords get changed without your knowledge
  • Keep your operating system and system in updated state
  • Avoid clicking on links from untrusted or unknown websites
  • Avoid opening emails from unknown sources
  • Use antivirus software and a firewall
  • Installation of Antivirus software
  • Never open email attachments
  • Avoid usage of pirated software
  • Keep your operating system updated
  • Keep your browser updated as old versions are vulnerable to linking to malicious websites
11.TypesInternet worms, Instant messaging worms, Email worms, File sharing worms, Internet relay chat (IRC) worms are different types of worms.Boot sector virus, Direct Action virus, Polymorphic virus, Macro virus, Overwrite virus, File Infector virus are different types of viruses
12.ExamplesExamples of worms include Morris worm, storm worm, etc.Examples of viruses include Creeper, Blaster, Slammer, etc.
13.InterfaceIt does not need human action to replicate.It needs human action to replicate.
14.SpeedIts spreading speed is faster.Its spreading speed is slower as compared to worms.


My Personal Notes arrow_drop_up
Last Updated : 01 Jun, 2022
Like Article
Save Article
Similar Reads