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.
- Hint 1: What is valuable on a school’s computers?
- Hint 2: Do all attacks need the attacker to get inside the school’s computers?
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?
- Hint 1: 0000 is the first PIN. What is the last?
- Hint 2: Divide the number of PINs by the number tried 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
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?
- Hint 1: Where do the packets travel?
- Hint 2: What is plaintext?
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
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?
- Hint 1: Can the cashier answer a thousand questions and still serve lunch?
- Hint 2: Does the crowd want lunch?
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
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?
- Hint 1: Earlier threats guessed, listened, or overloaded. What did this person do?
- Hint 2: Once inside, what could someone do with the files?
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.
- Hint 1: Think about files, downloads and networks.
- Hint 2: Could a program pretend to be something else?
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
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.
- Hint 1: What could it watch?
- Hint 2: What could it show?
- Hint 3: What could it hold hostage?
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
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?
- Hint 1: What would the sender get from a login page that they control?
- Hint 2: Which words in the email create pressure?
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?
- Hint 1: Which step turns the domain name into an IP address?
- Hint 2: What if that step gave the wrong answer?
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
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?
- Hint 1: What does knowing the pupil’s name suggest?
- Hint 2: Would a real help desk need your password?
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
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
| Scenario | Threat |
|---|---|
| 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 |
- Ask: how does the attack work, and what is its aim?
- Use the names in the box below the table.
Show the completed table
| Scenario | Threat |
|---|---|
| A program tries thousands of passwords a minute against a teacher’s account | brute-force attack |
| A school’s website stops responding because requests arrive from hundreds of thousands of infected devices | DDoS attack |
| A file is locked and a message asks for payment in return for opening it | ransomware |
| After installing a free game, a pupil’s device quietly lets someone else use it, and the game never copied itself anywhere | Trojan horse |
| A text message pretends to be from a parcel firm and asks the reader to click a link and enter card details | phishing |
| A stranger in a hi-vis jacket says they are the fire inspector and asks a pupil to let them into the server room | social engineering |
Choose from: brute-force attack, data interception, DDoS attack, hacking, virus, worm, Trojan horse, spyware, adware, ransomware, pharming, phishing, social engineering.
Apply 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
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.
- Hint 1: Say how each one reaches its victim.
- Hint 2: Say what the attacker wants at the end.
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
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.
Software that shows unwanted adverts, and may also track what the user looks at.
A group of internet-connected devices that have been taken over by malware and are controlled together by an attacker.
Trying every possible combination, or a long list of likely ones, until the right password or PIN is found.
Capturing data as it travels across a network so that someone who was not meant to see it can read or copy it.
An attack in which very many devices flood a server with requests at once, so that it cannot answer real users.
A server that holds records linking domain names to IP addresses and returns the IP address for a domain name it is asked about.
The readable name of a website’s host, such as www.example.org, which a domain name server turns into an IP address.
Scrambling data with a key so that it cannot be understood by anyone who does not have the key to unscramble it.
Gaining unauthorised access to a computer system or the data on it.
Software written to harm a device or its data, or to give someone unauthorised access to them.
A small piece of data sent across a network, with a header, a payload and a trailer.
Any information about an identifiable living person, such as a name, address, photo, medical note or school record.
An attack that sends a user to a fake website even though they typed the correct address, by tampering with where the address leads.
Sending messages that pretend to come from a trusted organisation, to trick the reader into giving away details or clicking a harmful link.
Malware that locks or encrypts a user’s files and demands payment before it will release them.
Malware that secretly records what a user does, such as the keys they press, and sends it to the attacker.
Malware that pretends to be a useful or harmless program so that the user installs it.
Malware that attaches itself to a program or file and spreads copies of itself when that program or file is opened.
Software that requests web pages, then renders their HTML and displays them to the user.
A computer that stores the files of websites and sends a web page to a browser when it receives a request for it.
Malware that copies itself from one device to another across a network on its own, without needing a user to open anything.
Your progress on this lesson
Saved in this browser only. It is not sent anywhere, does not follow you to another device, and is lost if you clear this site’s data.
This browser is not allowing the site to save progress, so it will be forgotten when you leave the page.