J277 11: Threats to Networks

OCR GCSE COMPUTER SCIENCE · J277 · PAPER 1

Threats to networks

From harmful software to tricking people, how attackers break into networks and what they are after.

Paper 1 · Lesson 11

1 / 22
next
Slide 1: Slide
New lesson editorComputer ScienceUpper Secondary (Key Stage 4)GCSE

This lesson contains 22 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 60 min
Report this lesson

Introduction

OCR GCSE Computer Science (J277), Paper 1, lesson 11 of 26 (Block B: networks and security). Students learn why networks are attacked and how the main forms of attack work: malware (virus, worm, trojan, ransomware, spyware), social engineering (phishing, blagging, shoulder surfing), brute-force attacks, denial of service, data interception and SQL injection. They spot the red flags in a phishing email, see why long passwords defeat brute force, and match real scenarios to attacks. Activities include a do now on lesson 10, picture questions, two drag-and-drop tasks, a tap-to-explore phishing email, a spot-the-mistake task, a sorting question on how a ransomware attack unfolds, fill in the blanks and an exam-style question with a model answer. This lesson was created with AI assistance.

Items in this lesson

OCR GCSE COMPUTER SCIENCE · J277 · PAPER 1

Threats to networks

From harmful software to tricking people, how attackers break into networks and what they are after.

Paper 1 · Lesson 11

Lesson 11 of the J277 series (Block B, Paper 1, section 1.4.1 Threats to computer systems and networks). Lesson 12 covers how to prevent these attacks.

Set the tone early: pupils learn how attacks work so they can recognise and prevent them. Carrying out these attacks is a crime: hacking into systems, spreading malware and denial of service attacks fall under the Computer Misuse Act 1990 (lesson 14), while phishing scams are mainly prosecuted as fraud under the Fraud Act 2006.

Device-free: show the slide; pupils write the title and date. Image credit: Kingsley Mkpandiok / Unsplash (cover hologram)

00 · MISSION · BY THE END OF THIS LESSON

By the end of this lesson you can…

01  Name the main forms of attack on a network and what attackers want.

02  Describe how malware, social engineering, brute force, DoS, interception and SQL injection work.

03  Spot the warning signs of a phishing message.

Read the three outcomes. OCR questions usually name an attack and ask how it works, or describe a scenario and ask which attack it is.

Device-free: pupils copy the outcomes and tick each one at the end.

02 · CHECK · DO NOW (LESSON 10)

Warm up: protocols and layers

1  What is a protocol?

2  Which protocol sends email?

3  What does HTTPS add to HTTP?

4  Give one benefit of using layers.

▮ TERMINAL // do_now_answers

1  a set of rules for how

   devices communicate

2  SMTP

3  encryption

4  one layer can change without

   affecting the others

Retrieval from lesson 10. Give 4 minutes, then click to reveal the answers line by line.

1 A set of rules for how devices communicate and transfer data. 2 SMTP. 3 Encryption, so intercepted data cannot be read. 4 Any one: a layer can be changed without affecting the others; the problem is split into smaller parts; faults are easier to find; products from different makers work together.

Device-free: questions on the board; mini whiteboards.

Recap of lesson 10: which protocol splits data into packets and checks they all arrive?

A

IP

B

FTP

C

TCP

D

SMTP

Answer: C, TCP. It splits data into numbered packets, checks they arrive, asks for missing ones again and reassembles them. IP addresses and routes each packet; FTP transfers files; SMTP sends email.

Device-free: students hold up A, B, C or D cards. Image credit: Compare Fibre / Unsplash

01 · LEARN · MISSION BRIEFING

Why attack a network?

Attackers target networks to steal, to make money or to cause disruption.

STEAL DATA

Personal details, passwords and bank details can be used or sold.

MAKE MONEY

Ransom demands and fraud make attacks profitable for criminals.

DISRUPTION

Taking a website or service offline can cost a business a fortune.

SYSTEM VOICE

System alert. Threat detected. Today's mission: learn how attackers break into networks, from harmful software to tricking people, so you can spot an attack before it succeeds.

Click play for the system voice briefing. The words are also on the slide.

Motives for attacks: stealing data (personal details, passwords, bank and card details, business secrets) to use or sell; financial gain (ransom, fraud); disruption (taking services offline, damaging a reputation), sometimes for a cause or just to show off.

Remind pupils that attacking a computer system without permission is a crime under the Computer Misuse Act 1990. Motives are checked in the fill in the blanks near the end.

Device-free: read the briefing aloud; pupils suggest one organisation that would be a target and say why.

01 · LEARN · MALWARE

Malware: malicious software

VIRUS

Attaches itself to a file or program. Spreads when the infected file is opened or shared.

WORM

Copies itself across a network on its own, without anyone opening a file.

TROJAN

Pretends to be useful software, such as a free game, but does harm once installed.

RANSOMWARE

Encrypts your files and demands payment for the key to unlock them.

SPYWARE

Secretly records what you do, such as the keys you press, and sends it to the attacker.

THE HARM

Deleted or damaged files, stolen data, locked computers and slower networks.

Malware (malicious software) is any software written to cause harm to a computer system, installed without the user's knowledge or permission.

Virus: attaches to a file or program and spreads when the infected file is run or shared. Worm: replicates itself and spreads across a network on its own, using up bandwidth. Trojan: disguised as legitimate software; once installed it can open a "back door" for the attacker. Ransomware: encrypts the victim's files and demands payment for the decryption key. Spyware: secretly monitors activity, for example a keylogger recording passwords, and sends the data to the attacker.

Harm: files deleted, corrupted or encrypted; data stolen; computers or networks slowed down or crashed; access given to attackers.

Device-free: pupils copy the five types with a three-word summary of each.

Drag each description to the type of malware.

VIRUS

WORM

TROJAN

RANSOMWARE





Copies itself across a network on its own

Locks your files and demands payment

Spreads when an infected file is opened

Looks like a free game but does harm when installed

Answers: virus = spreads when an infected file is opened; worm = copies itself across a network on its own; trojan = looks like a free game but does harm when installed; ransomware = locks your files and demands payment.

Device-free: pupils match the four by drawing lines in their books.

01 · LEARN · SOCIAL ENGINEERING

Hacking people, not computers

People are often the weakest point in a network.

PHISHING

Fake emails, texts or websites that look real, to trick people into giving away details, clicking a link or opening an attachment.

BLAGGING

Inventing a story to persuade someone, such as phoning while pretending to be from IT support.

SHOULDER SURFING

Watching someone type their PIN or password, in person or through a camera.

SYSTEM VOICE · KEY DEFINITION

Social engineering means tricking people, rather than computers, into giving away information or access. Phishing is the most common example.

Click play for the key definition. The words are also on the slide.

Social engineering: manipulating people into revealing confidential information or giving access, rather than attacking the technology. People are often the weak point: they can be rushed, flattered or frightened.

Phishing: fake emails, texts (sometimes called smishing) or websites made to look like a trusted organisation, to steal login or bank details or to get the victim to open malware. Blagging (pretexting): an invented scenario to persuade someone to hand over information or access, often by phone. Shoulder surfing: watching someone enter a PIN or password, directly or using a camera.

Device-free: pupils write one example of each that could happen at school.

03 · DEBUG · SPOT THE RED FLAGS

Is this email real?

From: Northgate Bank <alerts@northgate-bank.account-check.co>

Subject: URGENT: your account will be closed

Dear Customer,

We have detected unusual activity on you account. You must verify your details within 24 hours or your account will be suspended.

Click here to verify

Kind regards,

Northgate Bank Security Team

FIVE RED FLAGS

This email is a phishing attempt. Five warning signs are hidden in it.

Find them first, then tap each marker to check.

Northgate Bank is made up for this lesson.

Give pupils two minutes to list the warning signs before tapping any markers. Then reveal them one at a time.

The five red flags: an odd sender address that is not the bank's real domain; a generic greeting ("Dear Customer"); a spelling mistake ("you account"); urgency and threats ("URGENT", "within 24 hours"); a link asking the user to enter their details. Northgate Bank is invented for this lesson.

Stress that no single sign is proof either way: many phishing emails are well spelt and use the victim's name (spear phishing uses personal details found online). The safest test is to check through the organisation's own website or app.

Advice: do not click links or open attachments in unexpected messages; go to the organisation's real website or app instead; report phishing to the IT team (in the UK, suspicious emails can be forwarded to report@phishing.gov.uk).

Device-free: print or project the email; pupils circle and label the five red flags.

01 · LEARN · BRUTE FORCE AND DOS

Guess it, or flood it

BRUTE-FORCE ATTACK

Software tries every possible password, one after another, until it finds the right one. Short, simple passwords fall fastest.

DENIAL OF SERVICE (DoS)

Floods a website or server with so many requests that it cannot answer real users, so the service goes offline. A DDoS uses many computers at once, often thousands.

Brute-force attack: trying every possible combination of characters, usually with automated software, until the correct password is found. A dictionary attack tries common words and passwords first. Threat: access to accounts and the data in them.

Denial of service (DoS): a server or website is flooded with so many requests or so much traffic that it cannot respond to genuine users, so it slows down or goes offline. A distributed denial of service (DDoS) uses many computers at once, often a "botnet" of devices infected with malware. Threat: lost sales, lost access, damaged reputation; data is not usually stolen.

Device-free: pupils write one sentence on how each attack works and one on the harm it causes. Image credit: Lens Fables / Unsplash

01 · LEARN · PASSWORD MATHS

Why long passwords win

A brute-force attack must try every possible password. Each extra character multiplies the number of guesses.

Using a mix of upper case, lower case and digits gives 62 choices for every character instead of 26.

Long passwords with a mix of characters take far longer to crack.

▮ TERMINAL // crack_time.log

> 4 lower-case letters

  264 = 456,976 guesses

> 8 letters and digits

  628 =

  218,340,105,584,896 guesses

> every extra character

  multiplies the work

Click the terminal to reveal the calculation line by line.

4 lower-case letters: 26 choices for each of 4 characters, 26 × 26 × 26 × 26 = 456,976 possible passwords; software can try these in well under a second. 8 characters from upper case, lower case and digits: 26 + 26 + 10 = 62 choices each, 62 to the power 8 = 218,340,105,584,896 possibilities, about 478 million times more. (Both checked twice.)

Link to maths: this is the same "multiply the choices" idea as the number of values n bits can hold (2 to the power n) from Block A.

Device-free: pupils work out 10 to the power 4 for a 4-digit PIN (10,000) and compare it with the two results.

01 · LEARN · INTERCEPTION AND SQL INJECTION

Listening in and sneaking code in

DATA INTERCEPTION

Data travelling across a network is captured by an attacker, for example with packet-sniffing software on unsecured public Wi-Fi, and then read or stolen.

SQL INJECTION

SQL is a language for asking a database for data.

An attacker types SQL code into an input box on a website, such as a login form. If the site does not check the input, the database runs the code and can reveal, change or delete data.

> name box: ' OR '1'='1

> SELECT * FROM users WHERE name = '' OR '1'='1'

> '1'='1' is always true, so every user record is returned

Data interception and theft: data is captured as it travels across a network, for example by packet-sniffing software, especially on unsecured public Wi-Fi. If it is not encrypted, the attacker can read usernames, passwords or messages.

SQL (Structured Query Language) is the language used to search and change data in a database; pupils meet it properly in Paper 2, so one sentence is enough here. SQL injection: an attacker enters SQL code into a web form (such as a login or search box). If the website puts the input straight into a database query without checking it, the code runs. In the terminal, the attacker types ' OR '1'='1 as a name; the query becomes "WHERE name = '' OR '1'='1'", which is true for every row, so the whole user table is returned. Pupils do not need to write SQL injections; they need to describe what the attack does and why it works.

Click the terminal to reveal the three lines.

Device-free: pupils explain to a partner, in one sentence each, how the two attacks work.

Thousands of computers flood a website until it stops responding. What attack is this?

A

Denial of service (DDoS)

B

Brute-force attack

C

Phishing

D

SQL injection

Answer: A, a denial of service attack, and because thousands of computers are used it is a distributed denial of service (DDoS).

Brute force guesses passwords; phishing tricks people; SQL injection sneaks code into a website's database through an input box.

Device-free: students hold up A, B, C or D cards. Image credit: Aditya Vyas / Unsplash

Which attack is it? Drag each scenario to its name.

PHISHING

BRUTE FORCE

DOS

SQL INJECTION





A ticket website is flooded with requests and stops responding

Code typed into a login box shows the whole customer list

Software tries millions of passwords on one account

Riya gets a text saying her parcel is held and to pay £1.99 by a link

Answers: phishing = Riya's fake parcel text; brute force = software trying millions of passwords; DoS = the ticket website flooded with requests; SQL injection = code typed into a login box revealing the customer list.

Ask: what would you tell Riya to do? (Do not click the link; check with the delivery company directly; report and delete the text. In the UK, scam texts can be forwarded to 7726.)

Device-free: pupils match the four scenarios by drawing lines in their books.

Four more attacks. Drag each scenario to its name.

SPYWARE

BLAGGING

SHOULDER SURFING

INTERCEPTION





Someone in the queue watches Kofi type his PIN at a cash machine

A hidden program records every key Tomasz presses and sends it on

On café Wi-Fi, software captures and reads unencrypted messages

A caller who says he is from IT support asks Grace for her password

Answers: spyware = the hidden program recording Tomasz's key presses (a keylogger); blagging = the caller pretending to be from IT support; shoulder surfing = watching Kofi type his PIN; interception = software capturing unencrypted messages on café Wi-Fi.

This checks the attacks the first scenario task leaves out. Ask: which two of these are social engineering? (Blagging and shoulder surfing.) Grace should hang up and call IT support back on a number she already knows; real IT staff never need your password.

Device-free: pupils match the four scenarios by drawing lines in their books.

03 · DEBUG · SPOT THE MISTAKE

One line in Zara's notes is wrong

▮ TERMINAL // zara_threats.txt

1  virus: spreads via infected files

2  worm: copies itself across a network

3  ransomware: encrypts, demands payment

4  DoS: guesses passwords until one works

5  phishing: fake messages that trick people

Check each line against what you learned. Which one is wrong, and what should it say? Then tap the marker.

Exam tip: name the attack AND say how it works, not just what it is called.

Give a minute to find the mistake before tapping the marker.

Answer: line 4. Guessing passwords until one works is a brute-force attack. A denial of service attack floods a website or server with requests. Lines 1, 2, 3 and 5 are correct. If pupils are stuck, ask: which attack floods, and which one guesses?

Device-free: copy the five lines onto the board; pupils write the wrong line number and the correction.

1

Ransomware installs itself without them knowing

2

An employee receives a phishing email with an attachment

3

A message demands payment for the key to unlock the files

4

It encrypts files on the computer and across the network

5

They open the attachment

Put the steps of a ransomware attack in order.

Correct order: 1 an employee receives a phishing email with an attachment; 2 they open it; 3 ransomware installs itself without them knowing; 4 it encrypts files on the computer and across the network; 5 a message demands payment for the key.

Point out how one attack leads to another: social engineering (phishing) is often how malware gets in. Organisations are advised not to pay: there is no guarantee the files will be unlocked, and paying funds more crime. Backups are the real protection, which is lesson 12.

Device-free: pupils write the five steps on sticky notes and order them on the desk.

Complete the summary.

Attackers may want to steal data, make money or cause disruption. Software designed to cause harm is called malware. A worm copies itself across a network on its own, while ransomware encrypts files and demands payment. Fake messages that trick people into giving away details are called phishing. A brute-force attack tries every possible password, and each extra character multiplies the number of guesses. A denial of service attack floods a server with requests.

money
malware
worm
ransomware
phishing
brute-force
multiplies
denial
firewall
encryption
halves

Answers in order: money, malware, worm, ransomware, phishing, brute-force, multiplies, denial. Distractors: firewall, encryption, halves. The first blank checks attackers' motives and the "multiplies" blank checks the password maths.

Device-free: paragraph on the board with gaps and the word bank; pupils write the eight missing words.

EXAM · A school's network could be attacked. Identify two forms of attack and describe how each one works. [4 marks]

Exam-style question, 4 marks. Give 5 minutes. The model answer is on the next slide.

Mark scheme: for each of two attacks, 1 mark for naming it and 1 mark for a description of how it works. Accept: malware (or a named type), phishing or other social engineering, brute-force attack, denial of service, data interception, SQL injection. The description must say how the attack works, not just what harm it does.

Device-free: pupils answer on paper, then peer-mark with the next slide.

04 · EXAM · MODEL ANSWER

Name it, then say how it works

Phishing.

An attacker sends staff a fake email that looks as if it comes from the school IT team, with a link to a fake login page that steals their password.

Denial of service.

The attacker floods the school web server with so many requests that it cannot respond, so staff and pupils cannot use it.

MARK SCHEME

1 mark: first attack named

1 mark: how it works

1 mark: second attack named

1 mark: how it works

Also accept: malware, brute force, interception, SQL injection.

Click to reveal the model answer one part at a time: each name and each description earns one mark.

Common weak answer: "A virus, which damages the computer." This names an attack but describes the harm, not how it works, so it earns 1 mark. A better description: "it attaches itself to a file and spreads when the file is opened or shared."

Device-free: read the model answer aloud; pupils underline the four mark-earning parts in their own answer.

Exit check: how sure are you about the attacks?

1

Very: I can name and explain all of them

2

Fairly: I mix up a couple, like DoS and brute force

3

Not yet: I need another go

Anonymous exit poll. If many pupils choose "fairly" or "not yet", start lesson 12 with the scenario drag-and-drop again.

Device-free: thumbs up, sideways or down.

05 · NEXT · KEEP GOING

Keep going

Isaac Computer Science

Free online lessons and questions. Look for the cyber security topic.

BBC Bitesize

GCSE Computer Science, OCR: revise network security threats.

OCR past papers

J277/01 papers and mark schemes on the OCR website: try the threats questions.

Next lesson: fighting back, with firewalls, anti-malware, strong passwords, encryption and more.

Point pupils to the three places to practise. Isaac Computer Science and BBC Bitesize are free; OCR past papers and mark schemes are on the OCR website.

Device-free: pupils write down one question they still have about threats to bring to lesson 12.