Study Guide

Cyber Security Threats

How the main threats to computers and data work, and what each one is for: brute-force attacks, data interception, DDoS attacks, hacking, the kinds of malware (virus, worm, Trojan horse, spyware, adware, ransomware), pharming, phishing and social engineering.

Lesson 4.9 Networks, the Internet and Security

For: Cambridge IGCSE Computer Science learners, or anyone who wants to recognise the tricks used against ordinary computer users

Stage: Think

Why would anyone attack a school?

Brightwater School, a fictional school, keeps pupils’ work, staff emails and a website for parents on its computers. Every pupil has an account with a password.

Think it through

Imagine someone wants to cause harm to Brightwater School’s computers or data. List some different things they might want, and some different ways they might try to get it.

Show a model answer

People might want to steal data (passwords, personal details), make money (by tricking someone or demanding a payment), damage or delete work, or stop the school’s systems working. Some attacks need an attacker to break in; others only need someone to be fooled. The rest of the lesson takes the main ones in turn.

To understand any threat, ask two questions:

  • What is the process? How does the attack work, step by step, at a general level?
  • What is the aim? What does the attacker want to get out of it?

This lesson explains how each threat works so that you can recognise it and defend against it. It does not give instructions for carrying one out.

Stage: Discover

Guessing a password

Many school systems protect a pupil’s account with a four-digit PIN.

Think it through

How many different four-digit PINs are there, from 0000 to 9999? If a person could try one PIN each second, how long would it take to try every one? And if a computer could try a thousand each second?

Show a model answer

There are 10 000 PINs. At one a second, trying all of them takes 10 000 seconds, which is about 2 hours 47 minutes. A computer trying a thousand a second takes 10 seconds.

That is a brute-force attack. The process: a program tries every possible combination, or a long list of the most likely passwords, one after the other, until one works. The aim: to find the password or PIN and so get into the account.

More characters make this much harder. Each extra digit multiplies the number of PINs by 10, so five digits give 100 000. A password of 8 lower-case letters has about 209 billion possibilities (26 to the power 8), and longer passwords that mix letters, digits and symbols have vastly more.

Check your understanding

Why is a brute-force attack much faster against a four-digit PIN than against a long password of mixed characters?
Show the answer

Answer: C. Because the PIN is shorter, so the program has far fewer combinations to try.

The more possible combinations there are, the longer the program has to keep trying.

Stage: Explain

Listening in

Think it through

A pupil sends a message across the school’s Wi-Fi to a website that does not use HTTPS. Who might be able to read the message on its way, and what from the Encryption lesson tells you what they would be able to see?

Show a model answer

Anyone who can capture the packets, for example someone else on the same Wi-Fi or someone with access to a device the packets pass through. Without encryption the data is plaintext, so what they capture can be read as it is.

That is data interception. The process: while data is travelling across a network, an attacker uses software or a device to capture the packets and copy them. The aim: to read or collect information that was not meant for them, such as passwords, card numbers, messages or personal data.

Interception is hard to notice, because the data still arrives. The defence you already know is encryption: a captured packet is then ciphertext, which is of no use without the key.

Check your understanding

Which of these is data interception?
Show the answer

Answer: A. Someone capturing the packets of a plain HTTP login as they cross a café’s Wi-Fi.

Capturing data in transit, to read or copy it, is interception.

Stage: Predict

The crowded canteen

At lunchtime, the school canteen has one till. Suppose a thousand people who do not want to buy anything join the queue, and each one asks the cashier a question.

Think it through

What happens to the pupils who really do want lunch? What would the people in the crowd gain by doing this?

Show what happens

The real customers cannot be served, because the till is busy with the crowd. The crowd does not gain lunch: the point is to stop the canteen working.

A DDoS attack, a distributed denial of service attack, does this to a web server. The process: the attacker takes control of a large number of other people’s devices that have been infected with malware, a group called a botnet, and makes them all send requests to one server at the same moment. The server is overwhelmed and cannot answer real users. The aim: to take a website or service offline, for revenge, protest, advantage over a rival, or to demand money to stop.

The word distributed means the requests come from many devices in many places, so they cannot be stopped by blocking one source. Denial of service means real users are denied the service.

Check your understanding

A fictional school’s website becomes unreachable because it is receiving requests from hundreds of thousands of devices at once. What is the aim of this attack?
Show the answer

Answer: D. To stop real users reaching the website by overloading its server.

The aim of a DDoS attack is to take a service offline.

Stage: Explain

Getting in without permission

Think it through

A stranger reads a teacher’s private files on the school network without being given permission. What is different about this compared with the threats so far? What might they do next?

Show a model answer

This person got inside the system without permission. Once inside they could read, copy, change or delete files, or use the computer for other attacks.

Hacking is gaining unauthorised access to a computer system or to the data on it. The process: the attacker finds a way past the protection, for example through a weak or stolen password, or through a flaw in software that has not been updated, and so gets access that they were never given. The aim: to steal, change or delete data, to use the system for other attacks, or sometimes just to show that it can be done.

Some of the threats in this lesson can be the way a hacker gets in, for example brute-force attacks, malware and phishing.

Not everyone who finds weaknesses in computer systems is a hacker in this sense. Security professionals are paid to test a system, with the owner’s written permission, so that its weaknesses can be fixed. What makes hacking a threat is that access is unauthorised.

Stage: Discover

Software that is out to harm

Think it through

A harmful program has to get onto a computer somehow, and the person at the keyboard does not want it there. Suggest three different ways it might arrive or spread.

Show a model answer

For example: hidden inside a file that someone opens; moving by itself from one computer to the next across a network; or looking like something useful, such as a free game, so that the user installs it themselves. These three routes give three kinds of malware.

Malware is software written to harm a device or its data, or to give someone unauthorised access to them. Its name comes from “malicious software”. Three kinds differ mainly in how they spread:

  • a virus attaches itself to a program or file. It spreads when someone opens or runs that program or file, which copies the virus into other files. It needs a person to run the infected file. The aim: to damage or delete data, or to slow the computer;
  • a worm copies itself from one computer to another across a network on its own, with no host file and without anyone opening anything. The aim: to spread as far as possible, which can fill a network with traffic, and often to leave other malware behind;
  • a Trojan horse pretends to be a useful or harmless program, such as a free game, so that the user installs it. It does not copy itself. The aim: to give an attacker access, steal data or damage files once it is installed.

The name comes from the ancient story of a wooden horse, left as a gift, with soldiers hidden inside.

Do not confuse: How each one spreads

Needs a host and a personVirus
Attaches itself to a file or program, and spreads when that file or program is opened or run.A document that infects other documents when it is opened.
Spreads by itselfWorm
Copies itself across a network without needing any file to be opened.A program that appears on every computer on a network within minutes.
Pretends to be usefulTrojan horse
Looks harmless or helpful so that the user installs it, and does not copy itself.A “free” game that also opens a way in for an attacker.

Virus, worm and Trojan horse are named by how they get onto a device and spread. What they do once there can be the same.

Apply it

Within an hour, a program has copied itself onto every computer in a fictional school’s network. Nobody opened a file or ran a program. Which kind of malware is this?
Show the answer

Answer: C. A worm, because it copied itself across the network on its own.

A worm spreads on its own; a virus needs an infected file to be opened.

Stage: Explain

What malware does once it is there

Think it through

Suppose a program was secretly on a computer. Give three different things the person behind it might want it to do, to make money or to gain information.

Show a model answer

It could watch what the user does and send it back, show adverts so that someone gets paid, or lock the user’s files and demand money to release them. Each of these is one kind of malware.

Three more kinds are named for what they do:

  • spyware secretly records what a user does, such as the keys they press or the websites they visit, and sends it to the attacker. The aim: to steal passwords, card numbers and other private information;
  • adware shows unwanted adverts, such as pop-ups, and may track what the user looks at. The aim: to earn money for its owner from the adverts or the clicks. It is often bundled with free software, and some adware can also redirect a browser to other pages;
  • ransomware locks a user’s files, usually by encrypting them with a key only the attacker holds, and demands payment before they are released. The aim: to get money. Paying does not guarantee that the files will be released.

Check your understanding

A school’s files are suddenly unreadable and a message demands payment for the key. Which malware is this, and what is its aim?
Show the answer

Answer: D. Ransomware, whose aim is to get money by locking the files.

Ransomware locks files and demands a ransom for the key.

Stage: Think

Fake messages and fake websites

Think it through

A pupil’s parent receives an email that says: “Your Brightwater bank account has a problem. Click here within 24 hours or it will be closed.” The link leads to a page that looks like the bank’s login. What do you think the sender wants? What in the email might make a person click quickly?

Show a model answer

The sender wants the parent to type their login details into a fake page, so that the sender can copy them. The deadline and the threat of closure are meant to make people click without thinking.

That is phishing. The process: the attacker sends large numbers of emails, texts or messages that pretend to come from a trusted organisation, with a link or attachment, and a reason to act at once. If the reader follows the link, they reach a fake website, or they download malware. The aim: to trick people into giving away personal details, such as passwords and card numbers, or into installing malware.

Phishing relies on the reader being fooled, so it needs a message to be sent to the victim.

Think it through

Imagine a pupil types the correct address of their bank into the address bar, without clicking any link, and still ends up on a fake copy of the bank’s website. Using what you know about how a page is loaded, where in the journey could the pupil have been misdirected?

Show a model answer

The misdirection could happen at the DNS lookup. If the domain name leads to the wrong IP address, the browser sends its request to the attacker’s web server, which shows a fake page.

That is pharming. The process: the attacker alters where a domain name leads, for example by putting malicious code on the user’s device, or by tampering with the records that turn a domain name into an IP address, so that the user is sent to a fake website even though they typed the correct address. The aim: the same as phishing: to collect passwords and payment details.

Do not confuse: Fake message or redirection

Fooling the readerPhishing
A message pretends to be from a trusted organisation and gets the reader to click a link or give details.An email that says “your account will close” with a link.
Misdirecting the browserPharming
The correct address is typed, but the browser is sent to a fake site because of tampering with where the address leads.Typing the real bank address and arriving at a copy.

Both end at a fake website that collects details. The difference is how the user gets there.

Apply it

Kofi types his bank’s correct web address and lands on a page that looks identical, but is a fake. He did not click on anything in a message. Which threat is this?
Show the answer

Answer: D. Pharming, because he was sent to a fake site although the address was right.

Pharming misdirects a user who has done nothing wrong; phishing needs the user to be fooled by a message.

Stage: Explain

Attacking the person, not the computer

Think it through

A caller says: “I’m from the IT help desk. There is a problem with your account, and I need your password to fix it.” The caller knows the pupil’s name and form. Why might the pupil believe them? What would you do?

Show a model answer

The caller sounds helpful and knows some details, so they seem genuine, and the pupil may want to be helpful. A real help desk does not ask for your password. The safe response is to end the call and report it.

Social engineering is tricking people, rather than breaking into machines, into handing over information or access. The process: the attacker plays on human feelings, such as trust, fear, urgency or the wish to help, often pretending to be someone with authority, such as an IT worker, a delivery driver or a manager. The aim: to get passwords, personal details or access to a building or system, which is easier than defeating a machine’s protection.

Phishing is one kind of social engineering, done by message. Others are phone calls like the one above, and following an authorised person through a door they have unlocked.

Check your understanding

Why can social engineering work even against a computer with excellent technical protection?
Show the answer

Answer: C. Because it persuades a person to give away what the protection was guarding.

A person who can be persuaded is a way round every technical protection.

Stage: Apply

Name the threat

Which threat is each scenario?
ScenarioThreat
A program tries thousands of passwords a minute against a teacher’s account
A school’s website stops responding because requests arrive from hundreds of thousands of infected devices
A file is locked and a message asks for payment in return for opening it
After installing a free game, a pupil’s device quietly lets someone else use it, and the game never copied itself anywhere
A text message pretends to be from a parcel firm and asks the reader to click a link and enter card details
A stranger in a hi-vis jacket says they are the fire inspector and asks a pupil to let them into the server room

    Show the completed table
    ScenarioThreat
    A program tries thousands of passwords a minute against a teacher’s accountbrute-force attack
    A school’s website stops responding because requests arrive from hundreds of thousands of infected devicesDDoS attack
    A file is locked and a message asks for payment in return for opening itransomware
    After installing a free game, a pupil’s device quietly lets someone else use it, and the game never copied itself anywhereTrojan horse
    A text message pretends to be from a parcel firm and asks the reader to click a link and enter card detailsphishing
    A stranger in a hi-vis jacket says they are the fire inspector and asks a pupil to let them into the server roomsocial engineering

    Choose from: brute-force attack, data interception, DDoS attack, hacking, virus, worm, Trojan horse, spyware, adware, ransomware, pharming, phishing, social engineering.

    Apply it

    A pupil installs a free keyboard app. Weeks later, their email account has been used without their knowledge, and they find the app has been sending a record of every key they pressed to another computer. Which malware is it?
    Show the answer

    Answer: B. Spyware, because it secretly recorded what the user typed and sent it away.

    Spyware records what a user does and sends it to the attacker.

    Apply it

    An attacker uses a stolen teacher password to open the school’s record system and changes some pupils’ marks. Which threat best describes how they got into the system?
    Show the answer

    Answer: A. Hacking, because access was gained to the system without permission.

    Getting into a system without permission is hacking, even when a stolen password is the key.

    Stage: Consolidate

    Show what you know

    Think it through

    Choose one pair that is easily confused: phishing and pharming, or virus and worm. Explain how they differ, and say what each one is for.

    Show a model answer

    A good answer: “Phishing is a fake message that persuades the reader to click or hand over details; pharming sends a user who typed the right address to a fake site. Both aim to collect details. A virus attaches to a file and needs someone to open it; a worm copies itself across a network on its own. Both aim to spread and cause harm.”

    Apply it

    A pupil receives a pop-up that says their device is infected and offers a free tool to fix it. They install it, and the tool then quietly gives an attacker access. Which description fits best?
    Show the answer

    Answer: C. A Trojan horse, because the tool pretended to be useful and the user installed it.

    A program that pretends to be useful and is installed by the user is a Trojan horse.

    • Brute-force attack: trying every combination or likely password until one works. Aim: to get into an account.
    • Data interception: capturing data as it travels. Aim: to read or copy what was not meant for the attacker.
    • DDoS attack: a botnet of devices floods a server with requests. Aim: to take the service offline.
    • Hacking: unauthorised access to a system. Aim: to steal, change or delete data, or to misuse the system.
    • Malware: harmful software. A virus needs an infected file to be opened; a worm spreads on its own; a Trojan horse pretends to be useful. Spyware records what a user does; adware shows adverts; ransomware locks files and demands payment.
    • Phishing: fake messages that trick the reader. Pharming: the browser is sent to a fake site although the correct address was typed. Both aim to collect details.
    • Social engineering: tricking people into giving away information or access.

    Sources and scope

    • What this lesson is. The ninth lesson of the Networks, the Internet and Security module, written for this site. Its curriculum links are provisional: the wording of each linked specification point has been checked against the published specification, but no link has been verified by the site owner, and the links imply no endorsement by any examination board. They were written against the Cambridge IGCSE Computer Science 0478 specification for 2026 to 2028 and the 9618 specification for 2027 to 2029.
    • Original material. Brightwater School, its canteen, the bank emails, the help-desk caller, Kofi and every scenario are fictional. No real organisation is named.
    • Simplified on purpose. The lesson describes each threat at the level of its process and aim, as the specification asks, and gives no instructions or tools for carrying one out. Real attacks combine several of these threats, and the boundaries between kinds of malware are less sharp than the lesson makes them. The defences are in the next lesson, Keeping Data Safe.