KS3 · Computer Science

Malware and how it spreads

Picture a school network where nobody has clicked anything, yet every computer is slowing down. What kind of malware spreads with no help at all?

Computer Science · Malware

Which malware is it?

Pick a description, then choose the type of malware it matches. Once you've sorted them all, switch the rule and sort the same six by what the attacker is after.

Which type of malware does this behaviour describe?

Still to sort

Virus (0)

Spreads between computers and interferes with how they work.

Where the line is: A virus needs a user to run an infected file, download or program. A worm does not.

Worm (0)

Replicates, but attaches to no file.

Where the line is: A worm spreads through the network itself. A virus is passed on by a user running something.

Trojan (0)

Disguised as something harmless.

Ransomware (0)

Locks or encrypts files, then demands payment.

Spyware (0)

Hides on a computer to monitor and gather information.

Adware (0)

Downloads or displays adverts or pop-ups.

6 of 6 still to sort.

These are example descriptions to practise on. Read what each one does, commit to a type, then read why.

Predict, then check

Back to that quiet school network. Commit to an answer before you read on.

Malicious code lands on one computer in a school network. Nobody opens or runs any file. Which of these happens?

Two real ransomware attacks

WannaCry (2017)vsLockBit

Both are ransomware. Look at how each one reaches computers.

Focus

How it reaches computers

WannaCry (2017)

It spread by itself, using a self-replicating worm that exploited a weakness in Windows computers. The weakness involved the SMB protocol, which is normally used for sharing files and printers. No human action was needed.

LockBit

It is deployed manually by cyber criminals, through methods such as phishing emails, brute force attacks or software vulnerabilities. It is also rented out to other criminals (ransomware-as-a-service).

The insight

WannaCry spread by itself. LockBit is put onto computers by people. That's the big difference.

Stopping it

WannaCry (2017)

It was stopped accidentally, when a security researcher discovered and triggered a kill switch that shut it down.

LockBit

As the Oak lesson describes it, unlike some ransomware there is no universal kill switch for LockBit.

Other points to know

WannaCry (2017)

More than 200,000 computers were affected. In the UK, NHS hospitals were badly hit, with cancelled surgeries and problems with patient care.

LockBit

The Oak lesson also describes LockBit as constantly being updated to avoid being detected by security systems.

Computer Science · Botnets

Order a botnet attack

Put the stages of a botnet DDoS attack in the order they happen

1 · First stage3 · Last stage
  1. The zombies send many requests to a single server

    That's a Distributed Denial of Service (DDoS) attack.

  2. Devices are infected with malware and become zombies in a botnet

    A botnet is a large collection of malware-infected devices.

  3. The bot herder chooses when to wake the zombies

    The bot herder is the attacker in charge of the botnet.

Watch out: Not every bot is bad. Bots are automated programs that repeat tasks, and many do useful jobs. It's the malware-infected ones we're worried about here.

Computer Science · Anti-malware

Follow a file through anti-malware

Anti-malware scans a file that can execute code. Which route does it take?

Does the code match a definition?

2 possible results of the scan.

On A file that can execute code is scanned. 2 branches to choose from.

Choose a branch to see what happens to the file.

Computer Science · Staying safe

What do you think keeps a computer safe?

A pupil is deciding how worried to be about malware on a school laptop.

Which of these is closest to what you think right now?
How sure are you?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Six kinds of malicious software, how they spread, and why one defence is never enough.

What you need to know

  • Malware is malicious software, designed to gain access to a computer and cause problems in how it works.
  • Attackers can have different aims: disabling hardware, data theft, forced advertising, sending email spam or extorting money.
  • A virus needs a user to run an infected file, download or program. Then it inserts code into other programs.
  • A worm attaches to no file. It spreads through the network itself and can slow the network by using up bandwidth.
  • A trojan is disguised as something harmless, like a game, movie or software update, and may open a back door.
  • Have a goSam says: "That 'free software update' can't be malware. It says update right on the label!" What would you tell Sam?

    A trojan is disguised as something harmless, so looking harmless proves nothing.

    The whole point of a trojan is the disguise, such as a game, movie or software update, with something malicious hidden inside.

  • Ransomware locks or encrypts your files, and the attacker demands a ransom before they decrypt them.
  • Have a goEvery file on a laptop is locked and the attacker wants payment to unlock them. Which aim from the list is that?

    Extorting money.

    Ransomware is the type that locks files and demands a ransom, and demanding payment is extorting money, not stealing data.

  • Spyware hides on your computer to gather information such as browsing history. Adware displays adverts or pop-ups while you're online.
  • A botnet is a large collection of infected devices called zombies. A bot herder chooses when to wake them for a DDoS attack.
  • Anti-malware compares files that can execute code with a list of definitions, and quarantines any file that matches.
  • Have a goA file's code matches nothing on anti-malware's list of definitions. Will it be quarantined?

    No. Only a file whose code matches a definition is quarantined.

    Quarantine is triggered by a match, so code that isn't on the list isn't flagged by this check.

  • Combine anti-malware, an active firewall, software updates and user training. No measure makes a system completely safe.

The big picture

Malware is software designed to cause problems on a computer, and it comes in distinct types that behave differently. You'll sort six types by what they do, work out why a worm can spread without anyone's help, compare two real ransomware attacks, see how a botnet is used, and learn why combining defences lowers the risk without removing it.

Key points

1To tell malware apart, ask what it does. For a virus and a worm, also ask whether it needs a user to run it or spreads through the network itself.
2The six categories are virus, worm, trojan, ransomware, spyware and adware, and each behaves differently.
3WannaCry spread by itself using a self-replicating worm. LockBit is deployed manually by criminals.
4A botnet attack runs in order: devices are infected, the bot herder wakes them, they send many requests to a single server.
5Malware can get in by many routes, so the risk is reduced by combining measures. No measure makes a system completely safe.

Worked example

Problem

Jo's laptop keeps showing adverts and pop-ups while she's online. Jo says: "I've got a virus!" Use what you know to decide which type of malware the behaviour really matches, and what it is for.

⚠ Watch out

Calling every piece of malware 'a virus'. A virus is just one type. Worms, trojans, ransomware, spyware and adware each behave differently, so match the behaviour to the type.

🧠

Memory hook

A virus waits for you to run it. A worm walks the network by itself. A trojan wears a disguise. And ransomware, spyware and adware are named for the ransom, the spying and the adverts.

✓

Check yourself

A friend says: "I've installed anti-malware, so I can click any link I like." Give them two reasons that's a risky plan.

Flashcards

(15)
What is malware?
Malicious software: software designed to gain access to a computer to cause problems in how it works.
Give four aims an attacker might have when using malware.
Any four of: disabling hardware, data theft, forced advertising, sending email spam, extorting money.
Which six categories of malware should you know?
Virus, worm, trojan, ransomware, spyware and adware.
What does a virus need before it can infect a system?
A user to run it from an infected file, download or program. It then replicates by modifying other programs and inserting code.
How is a worm different from a virus?
A worm attaches to no file. It spreads through the network itself, and most worms slow the network by using up bandwidth.
Why is a trojan named after the Trojan horse?
It is disguised as something harmless, like a game, movie or software update, with something malicious hidden inside. It could open a back door for an attacker.
What does ransomware do?
It encrypts or locks files, and the attacker demands a ransom before they decrypt them. Modern ransomware often targets the most valuable common file types.
What do spyware and adware each do?
Spyware hides on your computer to monitor and gather information. Adware downloads or displays adverts or pop-ups when you're online.
How did WannaCry spread without any human action?
It used a self-replicating worm to exploit a weakness in Windows computers. The weakness involved the SMB protocol, used for sharing files and printers.
How was WannaCry stopped?
Accidentally. A security researcher discovered and triggered a kill switch that shut it down.
How is LockBit deployed, as the Oak lesson describes it?
Manually, by cyber criminals using phishing emails, brute force attacks or software vulnerabilities. It is also rented out to other criminals.
What are a botnet, a zombie and a bot herder?
A botnet is a large collection of infected devices. Each infected device is a zombie. The bot herder is the attacker who chooses when to wake them.
How does anti-malware decide to quarantine a file?
It scans files that can execute code and compares them with a list of definitions. If the code matches a definition, the file is quarantined.
Apart from downloading a file, name three other ways malware can get in.
Visiting unsafe websites, clicking bad links, and through software flaws. These are examples; malware can use many different methods.
Which measures combine to reduce malware risk?
Anti-malware installed, a firewall active, software updates completed, and user training. Even together, no measure makes a system completely safe.

Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.

Learning with Lightbulb is opening soon

You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.

Keep me posted

More KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

How this lesson was checked. This KS3 Computer Sciencelesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 10 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.

Helpful guides for parents and students