AQA GCSE Computer Science (8525), section 3.6.2 (Cyber security threats)
What is malware?
Malware (malicious software) is an umbrella term for hostile or intrusive software designed to damage, disrupt, or gain unauthorised access to a computer system.
Types of malware
Computer virus
A virus is a program that attaches itself to other files and copies itself when those files are opened or shared. It can delete or corrupt files, slow the computer, or fill up storage. It needs a user to run the infected file to spread.
Trojan
A trojan is malware disguised as a useful or harmless program (such as a free game or software update). The user installs it willingly, and it then does harm in the background, for example creating a back door for an attacker. Unlike a virus, it does not copy itself.
Spyware
Spyware secretly monitors what a user does, such as recording the keys typed (keylogging), and sends the information to the attacker. It is used to steal passwords and bank details.
| Malware | Key features |
|---|---|
| Virus | attaches to files and replicates |
| Trojan | pretends to be legitimate, no self-copying |
| Spyware | secretly gathers information |
How malware spreads
- Email attachments and links
- Downloads from untrustworthy websites
- Removable media (USB drives)
- Unpatched software
Protection against malware
- Install anti-malware (antivirus) software and keep it up to date.
- Keep operating system and software updated (patches).
- Use a firewall.
- Do not open attachments or links from unknown senders.
- Only download software from trusted sources.
- Scan removable media before use.
- Back up important files so they can be recovered.
How anti-malware spots malware
Anti-malware software compares files with known patterns of malware code (signatures), and also looks for suspicious behaviour.
Common mistake: saying a trojan copies itself like a virus. A trojan pretends to be useful and relies on the user installing it. Also, remember that spyware often does no visible damage: its purpose is to gather information secretly.
Exam tip: for each type, give how it works and one effect on the user. For protection, give specific measures (antivirus, updates, careful downloads) not just "be careful".
Check yourself
What is malware?
Software designed to be hostile or intrusive, to damage a system or gain unauthorised access.
How does a trojan differ from a virus?
A trojan disguises itself as legitimate software and does not copy itself, whereas a virus attaches itself to files and replicates.
What does spyware do?
It secretly monitors the user and sends information, such as passwords, to the attacker.