Malware and cyberattacks
Cyberattacks use clever software and even cleverer tricks on people. Knowing how they work is the first defence.
Types of malware
| Malware | How it works |
|---|---|
| Virus | Attaches to a file or program and spreads when that file is run or shared |
| Worm | Copies itself across networks without needing a user to do anything |
| Trojan | Pretends to be useful software but hides something harmful |
| Ransomware | Encrypts files and demands payment to unlock them |
| Key logger | Records key presses to steal passwords and card numbers |
Technical weaknesses
Out-of-date anti-malware cannot spot the newest threats.
Infected USB devices can carry malware between computers, and unencrypted network traffic can be intercepted (eavesdropping).
Social engineering
Phishing: fake emails or messages that look genuine, to steal details or spread malware.
Pharming: redirecting users to a fake website that looks real.
Shoulder surfing: watching someone type a PIN or password.
Blagging (pretexting): inventing a story to persuade someone to hand over information.
An email claiming to be from a bank asks you to click a link and 'confirm your password'. What is this and how should you respond?
- It is phishing: a fake message trying to steal your details.
- Do not click the link; contact the bank using its official website or number.
Answer: Phishing; ignore the link and contact the bank directly
Malware includes viruses, worms, Trojans, ransomware and key loggers. Attackers exploit unpatched software and old anti-malware, and use social engineering such as phishing, pharming and shoulder surfing.
- Malware
- Malicious software, such as viruses, worms, Trojans, ransomware and key loggers.
- Ransomware
- Malware that encrypts files and demands payment to unlock them.
- Anti-malware
- Software that detects and removes or quarantines malware.
- Social engineering
- Tricking people into giving away information or access.
- Phishing
- Fake messages that look genuine, used to steal details or spread malware.
- Pharming
- Redirecting users to a fake website that looks genuine.
All GCSE and International GCSE Computer Science key terms and definitions โ
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
Which malware attaches itself to files and spreads when they are opened or shared?
- Worm
- Virus
- Trojan
- Key logger
Show the answer
Answer: Virus
Viruses attach to files.
A free game download secretly lets an attacker control the computer. What is this?
- Worm
- Key logger
- Trojan
- Ransomware
Show the answer
Answer: Trojan
Disguised as something useful: Trojan.
Check you have got it
Answer 7 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.
- Pearson Edexcel GCSE Computer Science (1CP2) specification, topic 5.3.1
- Pearson Edexcel International GCSE Computer Science (4CP0) specification, topic 5.2.3
Facts checked against the sources below, 17 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.
What do exam command words like explain and evaluate mean? โ