Malware and cyberattacks

Cyberattacks use clever software and even cleverer tricks on people. Knowing how they work is the first defence.

Practise this lesson free (7 questions)

More tools

Types of malware

MalwareHow it works
VirusAttaches to a file or program and spreads when that file is run or shared
WormCopies itself across networks without needing a user to do anything
TrojanPretends to be useful software but hides something harmful
RansomwareEncrypts files and demands payment to unlock them
Key loggerRecords key presses to steal passwords and card numbers

Technical weaknesses

Hackers exploit unpatched software: known security holes that have not been fixed by an update.
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

Tricking people rather than computers.
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.
Worked example

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?

  1. It is phishing: a fake message trying to steal your details.
  2. Do not click the link; contact the bank using its official website or number.

Answer: Phishing; ignore the link and contact the bank directly

Key idea

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.

Key words
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 โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Which malware attaches itself to files and spreads when they are opened or shared?

    1. Worm
    2. Virus
    3. Trojan
    4. Key logger
    Show the answer

    Answer: Virus

    Viruses attach to files.

  2. A free game download secretly lets an attacker control the computer. What is this?

    1. Worm
    2. Key logger
    3. Trojan
    4. 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.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

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? โ†’

Related lessons