Malware
Categories
Learn to identify and distinguish viruses, worms, trojans, and ransomware: the four most common categories of malicious software threatening modern systems.
What is Malware?
Malware (short for malicious software) is any program or code intentionally designed to harm, exploit, or compromise a computer system, network, or user. It is the umbrella term that covers all hostile or intrusive software.
Why Malware Matters
The Four Major Categories
Virus: The Parasite
Worm: The Self-Replicator
Trojan: The Impersonator
Ransomware: The Extortionist
Virus vs Worm: Key Distinction
Trojan vs Virus: Another Distinction
How to Identify the Category
Example 1: ILOVEYOU
Scenario: In 2000, millions of users received an email with the subject "ILOVEYOU" and an attachment named "LOVE-LETTER-FOR-YOU.txt.vbs". When users opened the attachment, the malware overwrote their files and emailed itself to every contact in their address book.
Example 2: WannaCry
Scenario: In May 2017, WannaCry infected over 230,000 computers in 150 countries within hours. It exploited a Windows vulnerability (EternalBlue) to spread automatically across networks, then encrypted users' files and displayed a ransom note demanding Bitcoin payment.
Example 3: Emotet
Scenario: A user downloads what appears to be an invoice document from a business email. The "invoice" actually installs a hidden program that steals banking credentials, logs keystrokes, and opens a backdoor for attackers to install additional malware on the system.
Common Mistakes
Comparison Summary
| Feature | Virus | Worm | Trojan | Ransomware |
|---|---|---|---|---|
| Needs host file | Yes | No | No | No |
| Self-replicates | Yes | Yes | No | Varies |
| User action needed | Yes | No | Yes | Varies |
| Uses deception | Sometimes | Rarely | Always | Sometimes |
| Primary goal | Damage/spread | Spread/disrupt | Steal/control | Extort $$$ |
Question 1 of 5
A user opens a file attached to an email. The malicious code in the file then copies itself into other documents on the same computer. It does not spread to other machines unless those files are shared. What type of malware is this?
Question 2 of 5
Malware spreads across a corporate network automatically, infecting hundreds of machines within minutes without any employee clicking or opening anything. Which category best describes this behavior?
Question 3 of 5
A student downloads a "free photo editor" from an unofficial website. The software works as expected, but secretly installs a keylogger that records all passwords. This malware does not copy itself to other files or machines. What is it?
Question 4 of 5
After a cyberattack, all files on a hospital's servers are encrypted and a message demands $300,000 in Bitcoin for the decryption key. Which malware category is primarily responsible for this outcome?
Question 5 of 5
Which of the following statements correctly distinguishes a virus from a worm?