KS3 · Computer Science

Defending against cyber threats

Locking your front door is sensible, but not if a window is wide open. Defences work like that: each one closes one gap.

Computer Science · Cyber defences

Which defence deals with which attack?

Pick an attack attempt, then choose the defence that deals with it.

Which defence is built to deal with this?

Still to sort

Firewall (0)

Checks incoming and outgoing traffic against rules.

Where the line is: It looks at data packets: IP addresses, port numbers and protocols. It does not scan files for malicious code. That's anti-malware.

Anti-malware (0)

Compares the code in a file with a list of definitions.

Where the line is: It deals with code that matches a known-malicious definition. It does not filter network traffic by rules. That's the firewall.

Software updates (0)

Close weaknesses in software that is not up to date.

Where the line is: Updates fix the weakness itself. Other measures try to block or catch an attack that is aimed at it.

User authentication (0)

Helps prove it is you who is logging in.

Where the line is: Passwords, biometrics and two-factor authentication prove who you are. They don't decide what you can open once you're in. That's access rights.

Access rights (0)

Different users get different permissions.

Where the line is: Access rights limit what a signed-in user can reach or change. They don't prove who the user is. That's authentication.

User training (0)

Teaches everyone who uses the system to reduce human error.

Where the line is: Training changes what people do, like not clicking suspicious links. It doesn't filter traffic or scan files.

One measure that stops every attack (0)

Is there one?

7 of 7 still to sort.

Pick an attack, then pick the defence built for it. Read why. Then switch the rule and sort the same attacks again.

Watch out: Don't let one product take every job. A firewall checks traffic against rules; it does not scan files for malicious code.

Computer Science · Algorithms

Trace table — dry run the code

An example rule table for one network (the addresses, ports and rules are made up). Before you press Next, decide: will this one be allowed or blocked?

1RULE 1: ALLOW incoming protocol HTTPS port 443
2RULE 2: BLOCK incoming protocol TCP port 4444
3RULE 3: ALLOW outgoing to 192.0.2.10 protocol HTTPS port 443
4RULE 4: BLOCK outgoing to 203.0.113.50 (a blocked website)
Packet
Rule checked
Decision
Output
Press Start to run the first line.
·

Ready when you are — step through one line at a time.

Computer Science · Anti-malware

What happens to a file when anti-malware scans it?

Pick a branch to see what happens to the file.

Compare the code with the list of definitions

2 routes a scanned file can take.

On Anti-malware scans a file that is able to execute code. 2 branches to choose from.

One condition decides the route: does the code match a definition? Walk both branches.

Computer Science · User authentication

Which idea about proving who you are is closest to yours?

Zainab is setting up her school account and wants it to be as safe as possible. These are ideas people have about how to protect it.

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

WannaCry, 2017

?

Reason it through

How did WannaCry spread so far, and how was it stopped?

Link 1 of 4

First link · your turn

What did WannaCry need before it could get into computers?

2
Locked — reveal the link above first
3
Locked — reveal the link above first
4
Locked — reveal the link above first

Computer Science · After an attack

Your turn: write the plan

A company discovers that a cyber attack has got through its defences and is affecting some of its computers. Say what the company should do now. Then name two different measures it could use to reduce the risk of this happening again. [5 marks]

0 words · your answer stays on this page and is not sent anywhere.

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Every defence is built for one kind of threat. Find out which, and why none of them is enough on its own.

What you need to know

  • A cyber threat can harm your computer or give access to your personal data; a vulnerability is a weakness it can exploit.
  • Have a goRavi says, "My laptop's software is out of date, so that's my cyber threat." Is he right? Decide whether it's the threat or the vulnerability.

    It's a vulnerability, not the threat.

    Out-of-date software is a weakness that could be exploited; the threat is the thing that could harm the computer or reach the data.

  • A firewall checks incoming and outgoing traffic against rules, using things like IP addresses, port numbers and protocols.
  • Anti-malware compares the code in a file with a list of definitions, and quarantines the file if it matches.
  • Have a goA classmate says, "The firewall checks every file for viruses." Which defence actually compares a file's code with known definitions?

    Anti-malware software.

    A firewall checks traffic against rules; matching code to a list of definitions is anti-malware's job.

  • Software updates close weaknesses, and auto-updates either alert you or install the update automatically.
  • User authentication helps prove it's you logging in, using secure passwords, biometrics or two-factor authentication.
  • A maximum number of sign-in attempts is a separate measure against hackers. It isn't a way of proving who you are.
  • Access rights give different users different permissions, such as certain network drives only, or read-only files.
  • Training reduces human error and social engineering attacks such as phishing.
  • No measure stops every attack, so organisations combine measures and aim to make attackers give up and find an easier target.
  • Have a goPriya says, "We've bought the best firewall there is, so we're completely safe." What would you say back?

    No system on a network is completely safe, so a firewall needs other measures alongside it.

    Each measure reduces a particular risk, and new threats can sometimes bypass even the best defences.

  • A risk analysis matrix places a threat by probability (rare to almost certain) and impact (minimal to disaster), and where it sits depends on the organisation's vulnerabilities.

The big picture

Each cyber defence is built for a particular kind of threat or weakness: firewalls filter traffic by rules, anti-malware compares code with definitions, updates close weaknesses, authentication helps prove who you are, access rights limit what users can reach and training reduces human error. No single measure stops every attack, so organisations combine them, and plan what to do when an attack still gets through.

Key points

1Each defence is built for a particular kind of threat or weakness, and none of them stops everything.
2A firewall filters traffic by rules; anti-malware checks code against definitions. They are different jobs.
3Authentication helps prove who you are; access rights limit what you can reach; a sign-in limit is a separate measure.
4No computer system on a network is completely safe, so organisations combine measures and plan what to do if an attack gets through.

Worked example

Problem

A small company has three problems: the software on its laptops isn't up to date, every employee can open every network drive, and one employee often clicks links from unknown senders. Which measures should it use, and is it then completely safe?

⚠ Watch out

Thinking one good defence, such as a firewall or a strong password, keeps a system completely safe, or that a firewall scans files for viruses. Each measure reduces a particular risk, and no system on a network is completely safe.

🧠

Memory hook

Weakness first, then ask: what closes THIS gap? Firewall = rules for traffic. Anti-malware = code against definitions. Updates = fix the weakness. Authentication = prove it's you. Access rights = what you can reach. Training = fewer human mistakes.

✓

Check yourself

A friend says their network is completely safe because it has a firewall. Name two things they've mixed up or missed, and one other measure you'd suggest.

Flashcards

(14)
What is a cyber threat?
Something that can harm your computer or give access to your personal data.
What is a vulnerability? Give one example.
A weakness that can be found and exploited, for example an easy-to-guess password, software that isn't up to date, or clicking a link from an unknown sender.
What does a firewall use to decide what can go in or out?
Rule-based filtering: it checks data packets against the network's rules, including IP addresses, port numbers and protocols.
What does anti-malware do with a file whose code matches a definition?
It quarantines the file. A definition is a sequence of code known to be malicious.
Why should software updates always be completed?
Software that isn't up to date is a vulnerability. Auto-updates check for updates and alert the user or install them.
Name three examples of user authentication.
Secure passwords, biometrics (fingerprint or facial recognition) and two-factor authentication.
Is a maximum number of sign-in attempts a way of proving who you are?
No. It is a separate security measure against hackers, used alongside authentication.
What are access rights?
Different users get different permissions, such as certain network drives only, read/write only on files, or restricted printers, software or websites.
Why does regular cybersecurity training help?
Human error is a risk to data security. Training reduces mistakes and social engineering attacks such as phishing.
What are the three parts of the CIA triad?
Confidentiality, integrity and availability.
What does a pen tester do?
With permission, tries to hack into a system or network, from inside or outside, to find vulnerabilities and feed back the findings so they can be fixed.
Which two axes does a risk analysis matrix use?
Probability (from rare to almost certain) and impact (from minimal to disaster).
Why do organisations use combinations of measures?
Measures reduce risk but cannot stop every attack, and combinations make systems more secure. Difficult targets make attackers more likely to give up.
How was the WannaCry attack stopped?
Accidentally: a security researcher discovered and triggered a kill switch that shut it down.

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