Computer ScienceFoundation20 min read

Cyber Security

The threats named in the syllabus, and the specific defence against each

This topic appears in:

01

Most attacks target the person

It is tempting to picture cyber security as a battle between clever software. In practice the majority of successful attacks work by persuading a human being to do something — click a link, open an attachment, or hand over a password.

That shapes the whole subject. Technical defences matter, but a firewall cannot stop a user who has been convinced to type their password into a convincing fake page. This is why every answer about protection should include training and caution alongside the software.

ThreatWhat it doesMain defence
Brute force attacktries every possible passwordlong passwords; lock after failed attempts
Data interceptionreads data travelling on a networkencryption
DDoS attackfloods a server so it cannot respondfirewall, traffic filtering
Hackingunauthorised access to a systemstrong passwords, two-factor authentication
Malwareharmful software of several kindsanti-malware, updates, caution
Phishinga fake message requesting detailscheck sender and link; never log in via a link
Pharmingredirects you to a fake sitecheck the address; anti-malware
Social engineeringmanipulates a person into helpingtraining and verification procedures
02

The kinds of malware

Malware is the general term, and the syllabus expects the specific types by name, since each behaves differently and needs a different response.

A virus attaches itself to a file and needs that file to be run to spread. A worm spreads by itself across a network with no user action at all, which is why worms spread so much faster. A trojan disguises itself as something useful and is installed willingly by the victim. Spyware records activity, and a keylogger is spyware that records every keystroke including passwords. Ransomware encrypts the victim's files and demands payment. Adware displays unwanted advertising and often tracks the user as well.

Virus and worm are not the same word

A virus needs a host file and a user to run it. A worm is self-replicating and needs neither — it finds vulnerable machines on the network and copies itself to them. That difference explains why a worm can spread worldwide in hours while a virus depends on people sharing files, and exam questions ask for it directly.

03

Phishing, pharming and social engineering

These three all attack the person rather than the machine, and the distinctions between them are examined.

Phishing sends a message pretending to be from a trusted organisation, containing a link to a fake site. The victim must be persuaded to click. Pharming is more insidious: malicious code alters the machine's DNS settings or a DNS server, so that typing the correct address still leads to the fake site. No link needs to be clicked at all.

Social engineering is the general technique of manipulating a person into breaking security — a phone call claiming to be from the IT department and asking for a password, or someone in a delivery uniform asking to be let through a locked door.

The sender and the link are the two that matter most. Only the part immediately before the final dot identifies the owner, so a domain containing the right letters proves nothing at all.

Why pharming is harder to defend against

Against phishing, the advice "type the address yourself instead of clicking the link" works. Against pharming it does not — the address is correct and the redirection happens afterwards. The defences are anti-malware to prevent the DNS settings being altered in the first place, and checking that the site has a valid HTTPS certificate for the name you actually typed.

04

Defences

Each defence addresses particular threats, and a full answer names which.

A firewall examines traffic entering or leaving a network and blocks anything not permitted by its rules — the main defence against unauthorised access and flooding attacks. Anti-malware scans for known malicious software and removes it. Two-factor authentication requires a second proof beyond the password, so a stolen password alone is not enough. Biometrics use a physical characteristic that cannot be guessed or shared. Access levels restrict each user to what they need, so a compromised account does not expose everything. And automatic updates close known vulnerabilities before they can be exploited.

Worked example

An online banking system must protect against brute force attacks and phishing. Describe the measures for each.

  1. Against brute force: require long passwords combining several character types.Each additional character multiplies the number of possibilities to try.
  2. Lock the account after a small number of failed attempts.This is the decisive measure — it makes trying millions of passwords impossible regardless of how fast the attacker is.
  3. Add two-factor authentication, such as a code sent to the registered phone.Even a correctly guessed password is then insufficient.
  4. Against phishing: never include links in customer emails, and say so publicly.If the bank never sends links, any message containing one is identifiable as fraudulent.
  5. Train customers to type the address themselves and check for the padlock and the correct domain.Phishing attacks the person, so the defence must reach the person.

Account lockout and two-factor authentication against brute force; a no-links policy and customer education against phishing.

Before you leave this chapter

  1. Most successful attacks target people, not software.
  2. A virus needs a host file and a user; a worm spreads itself across a network.
  3. Phishing needs you to click a link; pharming redirects you even when you type the address correctly.
  4. Account lockout, not password length alone, is what defeats brute force.
  5. Name the specific defence for the specific threat — a firewall does not stop phishing.

Practice questions

6 questions · 20 marks · full working on every one

Try each one on paper first, then open the working. The marks are shown where they are actually awarded, because that is where they are actually lost.

Short questions

3 · 6 marks

Two marks each, in the style of the short-question section of the paper. Answer in two or three lines.

SQ1[2 marks]
State the difference between a virus and a worm.
Model answer

A virus attaches itself to a host file and requires a user to run that file in order to spread. A worm is self-replicating and spreads across a network by itself, needing no user action at all.

Examiner tip. The user action is the distinguishing point, and it explains why worms spread so much faster.

SQ2[2 marks]
What is a brute force attack, and give one measure that defeats it?
Model answer

An attacker tries every possible password in turn until one works. The most effective measure is to lock the account after a small number of failed attempts, which makes exhaustive guessing impossible however fast the attacker is.

Examiner tip. Lockout is stronger than password length. A long password only makes the attack slower; lockout stops it outright.

SQ3[2 marks]
What does a firewall do?
Model answer

It examines data entering or leaving a network and blocks anything not permitted by its rules, preventing unauthorised access and filtering out unwanted traffic.

Examiner tip. A firewall filters traffic. It does not detect malware already present or protect against a user handing over a password.

Solved numericals

2 · 8 marks

Full working, one step per line, with the marks shown where they are awarded.

N1[4 marks]
Explain the difference between phishing and pharming, and state a defence against each.
Full working
  1. Phishing sends a fraudulent message imitating a trusted organisation, containing a link to a fake site the victim must click[1]
  2. Defence: check the sender and the true destination of any link, and never log in through a link — type the address yourself[1]
  3. Pharming uses malicious code to alter DNS settings so that typing the correct address still leads to a fake siteno link is clicked[1]
  4. Defence: anti-malware to prevent the DNS settings being altered, and checking the HTTPS certificate matches the site you intendedtyping the address does not help here[1]

Phishing needs a click; pharming redirects a correctly typed address. Different attacks, different defences.

Examiner tip. The reason they are examined together is that the standard phishing advice fails against pharming. Saying so explicitly is what earns the fourth mark.

N2[4 marks]
A school network must be protected. Describe four security measures and the threat each addresses.
Full working
  1. Firewall — filters incoming and outgoing traffic, preventing unauthorised access from outside[1]
  2. Anti-malware with automatic updates — detects and removes viruses, worms and spyware, and updates close known vulnerabilities[1]
  3. Access levels — each user sees only what they need, so a compromised student account cannot reach staff records[1]
  4. Two-factor authentication or strong password policy with lockout — protects against brute force and stolen passwordsaccept staff training against social engineering[1]

Firewall, anti-malware with updates, access levels, and strong authentication — each matched to its threat.

Examiner tip. Pair each measure with what it actually prevents. A list of four security words without the threats typically scores two.

Long questions

1 · 6 marks

Theory and numerical together, as they appear in the long-question section.

LQ1[6 marks]
A company suffers two incidents: its website becomes unreachable for several hours, and separately an employee's password is obtained by an attacker who telephoned claiming to be from the IT department.
  1. Name and describe the attack in each case.
  2. Explain why a firewall would not have prevented the second incident.
  3. Recommend one measure against each.
Mark scheme
  1. The website incident is a DDoS attack — the server is flooded with requests from many machines until it cannot respond to genuine users[1]
  2. The password incident is social engineering — the attacker manipulated a person into revealing the password, with no technical attack at all[1]
  3. A firewall filters network traffic against a set of rules[1]
  4. The employee volunteered the password over the telephone, which never touched the network — no traffic rule could have detected itthe reason is the mark[1]
  5. Against DDoS: traffic filtering at the firewall, rate limiting, or a service that absorbs and distributes the load[1]
  6. Against social engineering: staff training and a strict procedure that credentials are never given out over the phone, with any such request verified by calling back on a known number[1]

(a) DDoS and social engineering (b) the password never crossed the network (c) traffic filtering, and training with a call-back verification policy

Examiner tip. Part (b) is the point of the whole question: technical defences protect technical routes. An attack that goes around the technology entirely needs a human defence.