Malware Families, Briefly
viruses, worms, trojans, ransomware — what actually separates them
Malware is any software built to harm, spy on or take control of a system. The names people use mostly describe how it spreads or what it does, and real samples often combine several behaviors.[1]
By how it spreads
- Virus: attaches to a legitimate file or program and spreads when that file is run or shared. It needs a host.
- Worm: spreads by itself across networks, usually by exploiting a vulnerability, with no user action. This is why worms can move so fast.
- Trojan: pretends to be something useful (a cracked game, a "PDF viewer") so the user installs it. It does not self-replicate.
By what it does
- Ransomware: encrypts files, and often steals them too, then demands payment.
- Spyware and infostealers: collect passwords, cookies, card data and files.
- Keylogger: records what you type.
- Remote access trojan (RAT): gives an attacker remote control of the machine.
- Backdoor: a hidden way back in that avoids normal login.
- Rootkit: hides malware by modifying the system, making it hard to find.
- Botnet client: turns the device into one of thousands of controlled machines for attacks or spam.
- Cryptominer: secretly uses your processor to mine cryptocurrency.
- Wiper: destroys data rather than ransoming it.
Helpers you will hear about
- Dropper / loader: a small first-stage program whose job is to install the real malware.
- Fileless malware: runs in memory or abuses built-in tools such as PowerShell instead of leaving an obvious file. This is sometimes called "living off the land".
- Exploit kit: automatically probes a browser or system for known flaws.
How it usually gets in
Phishing emails and attachments, malicious downloads, unpatched vulnerabilities, stolen credentials on exposed remote access, infected USB drives, and compromised software updates (a supply chain attack).
Layers that help
Keep software patched, remove unneeded admin rights, use endpoint protection with behavior detection (EDR), filter email and web traffic, back up with copies that cannot be changed from the infected machine, and segment networks so one infection cannot reach everything.[2] No single layer is enough, which is the point of defense in depth.
Sources
Test yourself
My notes
Private — saved only on this device, never sent anywhere.