Paper 1 · J277/01 · unit 1.4

Network security

Malware, phishing, brute force, DoS, interception, SQL injection, and the defences that actually match them. Open exercises and quiz.

Everything on this course is open. Skip, jump, retry. Nothing is locked and there is no required order.

People will try to break in. This unit is the threats and the defences. You can start with prevention if you already know the attack names.

1.4.1 Threats to computer systems and networks

Learn a definition, what the attacker wants, and one tell.

Threat What it is Typical goal
Malware Software designed to harm or exploit. Includes virus (needs a host file; spreads when you run it), worm (spreads by itself over a network), trojan (pretends to be useful), ransomware (encrypts files and demands money), spyware (steals data silently) Damage, money, data
Social engineering Tricking a human, not a firewall. Includes phishing (fake emails/sites), blagging/pretexting, shouldering (watching you type a PIN) Passwords, payments, access
Brute force Trying many passwords (or keys) until one works Account takeover
Denial of service (DoS / DDoS) Flooding a service so legitimate users cannot use it. DDoS uses many machines (often a botnet) Take a site offline
Data interception / packet sniffing Capturing traffic on a network Steal unencrypted data
SQL injection Typing SQL into a form so the database runs the attacker’s command (dump tables, bypass login) Steal or wreck data

Phishing is a kind of social engineering. Do not treat them as unrelated in a long answer — say so.

A virus is not the same as a worm. Marker gold: virus needs a user to run an infected file; worm self-propagates.

1.4.2 Identifying and preventing vulnerabilities

Match defence to threat. A list of tools with no link scores poorly.

Defence What it does Hits
Penetration testing Authorised attackers try to break in and report holes before criminals do Finds weaknesses (does not patch them by itself)
Anti-malware Detects/removes known (and sometimes behaviour-based) malware Virus, trojan, many worms
Firewall Allows or blocks traffic by rules (ports, IPs, applications) Unwanted incoming/outgoing connections
User access levels People only get the rights they need (least privilege). Admin is rare Limits damage if one account is stolen
Passwords Strong, unique, not shared; lockouts after failures; 2FA where you can Brute force, some social engineering
Encryption Scramble data so intercepted bits are useless without the key. Disk, HTTPS, Wi-Fi (WPA2/3) Interception
Physical security Locks, locked server rooms, cables, CCTV, shredding disks Stolen hardware, shouldering

Input sanitisation / parameterised queries belong with SQL injection: never concatenate raw user text into an SQL string.

Patching / updates close known holes — worms love unpatched services.

A full 6-mark “discuss how a company can protect…” wants several defences, each tied to a threat, plus a limitation (staff still click phishing; encryption needs key management; pentest is a snapshot in time).


Exercises ask you to pair attacks with defences. The quiz never blocks 1.5.

Practice · optional · answers on this page

Exercises

Do as many or as few as you like, in any order. Hints and a model answer sit under each task.

1.4.1 · e1 paper

Name the attack

1. Thousands of PCs flood an online shop until it will not load. 2. An email looks like the school, asking you to “confirm” your password on a fake page. 3. A program encrypts the office files and asks for Bitcoin. 4. A form on a website dumps the users table when you type ' OR 1=1 -- 5. Software hides in a free calculator and emails your files out.
Hint
DDoS, phishing, ransomware, SQL injection, trojan.
Show a model answer
1. (D)DoS 2. Phishing (social engineering) 3. Ransomware (malware) 4. SQL injection 5. Trojan (malware)
1.4.1 · e2 paper

Virus vs worm

Write two differences that would satisfy a 2-mark compare.
Hint
How they spread, and whether they need a host file / user action.
Show a model answer
A virus attaches to a host file and typically needs the user to run it; a worm is standalone and can copy itself across a network without that. A virus infects files; a worm consumes bandwidth/resources by replicating between machines.
1.4.2 · e3 paper

Match the defence

For each threat, name one technical defence and one sentence on how it helps. 1. Brute force on the staff portal 2. Packet sniffing on café Wi-Fi 3. SQL injection 4. Stolen laptop
Hint
Lockouts/2FA; HTTPS/VPN; sanitise/parameterise; disk encryption + physical lock.
Show a model answer
1. Account lockout after N failures and/or 2FA — guessing becomes useless or too slow 2. HTTPS (or a VPN) — intercepted packets are ciphertext 3. Parameterised queries / input validation — user text cannot become SQL commands 4. Full-disk encryption + physical locks — stolen hardware does not yield readable files
1.4.2 · e4 think

Why pentest is not enough

A company does a penetration test in March and finds nothing. Give two reasons they could still be breached in September.
Hint
New software, new staff, phishing, unpatched systems, one test is a snapshot.
Show a model answer
New vulnerabilities appear (unpatched software, new services). Staff can still be phished; a pentest does not fix human error or guarantee future safety. Attack surface changes — a plugin added in June was never tested.

Check yourself · not a gateway

Quiz

Mark it, reveal it, or skip it. A low score does not close anything. Try again as often as you want.

1 1.4.1 Ransomware typically…
2 1.4.1 SQL injection attacks a system by…
3 1.4.1 Phishing is best classified as…
4 1.4.2 A firewall is used to…
5 1.4.2 Which defences help against data interception? (Select all that apply)
6 1.4.2 Penetration testing is…
7 1.4.1 A worm differs from a virus because a worm…