| Type | Behaviour |
|---|---|
| Virus | Attaches to a file or program and spreads when that file is run or shared |
| Worm | Spreads by itself across networks without needing a host file |
| Trojan horse | Pretends to be useful software but carries a harmful hidden function; does not copy itself |
| Spyware | Secretly watches activity and collects information |
| Ransomware | Locks or encrypts files and demands payment to restore them |
| Adware | Shows unwanted advertisements |
| Keylogger | Records what is typed |
Virus needs a host file. Worm spreads alone. Trojan pretends to be useful. Ransomware demands payment.
Key takeaways: link each malware to its behaviour, and remember that a virus needs a host while a worm does not.