Topic 5 · The internet and its uses (cyber security)
Types of malware
▶ Watch the video lessonShort, exam-focused explanation of this topic on the CS with Aamir YouTube channel.Malware (malicious software) is any software designed to damage a computer, steal data or disrupt a system. You need to know six types and be able to describe what each one does.
The six types of malware
| Malware | How it works | What it can do |
|---|---|---|
| Virus | Attaches itself to another file or program and copies itself when that file is run | Deletes or corrupts files, fills up storage, makes the computer crash |
| Worm | A standalone program that copies itself and spreads across a network on its own, without the user running anything | Uses up network bandwidth and slows networks down; can carry other malware |
| Trojan horse | Disguised as legitimate, useful software, so the user installs it themselves | Once installed, can let other malware in, such as spyware, or give a hacker access |
| Spyware | Secretly monitors what the user does, for example by recording key presses (key logging) | Sends passwords, bank details and other personal data to a third party |
| Adware | Displays unwanted adverts, often as pop-ups, and may redirect the browser | Annoys the user, slows the computer down, can lead to harmful websites |
| Ransomware | Encrypts the user's files so they cannot be opened | Demands a payment (ransom) for the key to decrypt the files |
Virus or worm? The key difference
A virus needs a host file and only spreads when that infected file is run. A worm does not need a host file or any action by the user – it spreads through the network by itself. This is a very common exam question.
How to protect against malware
- Install anti-malware software and keep it updated so it can detect and remove new threats.
- Use a firewall to block suspicious traffic coming into the network.
- Keep the operating system and applications updated, as updates fix security weaknesses.
- Don't open email attachments or click links from unknown senders, and only download software from trusted sources.
- Make regular backups, stored separately, so files can be recovered after a ransomware attack.
Exam tips
- For each type, say how it works and what harm it does – both parts usually earn marks.
- Remember that a Trojan horse is installed by the user, because it looks like genuine software.
- Match the prevention method to the threat: a backup does not stop ransomware, but it lets you recover your files without paying.
Want the full topic notes, slides and worksheets? See Notes & Slides, practise with the free CS with Aamir Quiz App, or order the O Level Computer Science Study Guide.