Study Guide
Keeping Data Safe
The ways data is kept safe from the threats in the previous lesson: access levels, anti-malware, authentication (passwords, biometrics, two-step verification), automatic software updates, checking the spelling and tone of messages and the URL behind a link, firewalls, privacy settings, proxy servers and the SSL security protocol.
Lesson 4.10 Networks, the Internet and Security
For: Cambridge IGCSE Computer Science learners, or anyone who wants practical ways to protect their accounts and data
Stage: Think
A plan for the school
Brightwater School, the fictional school from the last lesson, has decided to take security seriously. Its head teacher asks: “What can we actually do about all of this?”
Think it through
Think back over the threats: guessing passwords, listening in, overloading a website, hacking, malware, fake messages and websites, and tricking people. Suggest as many things as you can that the school, or a pupil, could do to protect against them.
- Hint 1: What could make a password harder to guess?
- Hint 2: What could stop a harmful program from running, or traffic from getting in?
- Hint 3: What could a person do when an email looks strange?
Show a model answer
Answers will vary: stronger or extra checks when logging in, software that looks for harmful programs, keeping software up to date, checking messages and links before clicking, limiting who can see what, and scrambling data in transit. Each of these has a name, and the lesson takes them one at a time.
No single measure protects against every threat. Each solution blocks some threats and leaves others, so a school uses several together. For each solution, ask: which threat does this help against, and how?
Stage: Discover
Who may do what
Brightwater keeps a spreadsheet of every pupil’s marks.
Think it through
Should every pupil, every teacher and the IT technician be allowed to read the marks, and to change them? Decide who should be allowed to do what, and say why.
- Hint 1: Should a pupil be able to change their own marks?
- Hint 2: Who needs to enter marks, and who only needs to look?
Show a model answer
A pupil may need to read their own marks but should not change them. A teacher needs to enter marks for their own class. Different people need different amounts of power over the same data.
Access levels set what each user is allowed to do with data. Common levels are:
- no access: the user cannot see the data;
- read only: the user can look at the data but cannot change it;
- read and write: the user can look at the data and change it;
- full access: the user can also add and delete data, and change who has access.
People are given the lowest level they need for their job. That limits the damage if an account is hacked or tricked: an attacker who takes over a pupil’s account only gets a pupil’s access.
| Person and data | Access level |
|---|---|
| A pupil looking at the published school timetable | |
| A teacher entering marks for their own class | |
| A pupil trying to open another pupil’s private records | |
| The IT technician adding user accounts and changing who can see what |
- Ask what the person needs to do, and nothing more.
Show the completed table
| Person and data | Access level |
|---|---|
| A pupil looking at the published school timetable | read only |
| A teacher entering marks for their own class | read and write |
| A pupil trying to open another pupil’s private records | no access |
| The IT technician adding user accounts and changing who can see what | full access |
Choose from: no access, read only, read and write, full access.
Stage: Explain
Proving who you are
Think it through
A website must decide whether the person typing is really the owner of the account. List the different ways a website could check, apart from asking for a password.
- Hint 1: Could it check something about the person’s body?
- Hint 2: Could it check something the person has, such as a phone?
Show a model answer
It could check something about the body, such as a fingerprint or face, or something the person has, such as a phone that receives a code. A password is something they know. Each is a way of authenticating.
Authentication is checking that a user is who they claim to be. Three methods are used:
- username and password: the user names the account and gives a secret that only they should know. This helps against brute-force attacks only if the password is strong: long, hard to guess, not used on any other site, and not a word or name that someone could try. It does not help if the password is stolen by phishing or spyware;
- biometrics: a measurable feature of the body, such as a fingerprint, face or voice, is checked. It is hard to forget or lend, but a stolen fingerprint cannot be changed like a password, it can fail to recognise the right person, and the stored biometric data is itself personal data that needs protecting;
- two-step verification: two separate steps are needed. Normally the password is the first step, and a one-time code sent to the user’s phone is the second. A stolen password alone is no longer enough, because the attacker does not have the phone. It can still be defeated if the user is tricked into reading out the code.
Check your understanding
Show the answer
Answer: A. The criminal still needs the one-time code sent to the pupil’s phone to finish logging in.
The password is one step. The code, which only the owner’s phone receives, is a second, separate one.
Apply it
Show the answer
Answer: A. Adding two-step verification, so a code sent to the customer’s phone is also needed.
Two-step verification adds a second proof, so a password on its own is not enough.
Stage: Explain
Software that defends
Think it through
A program has to look through every file on a computer and decide which ones are harmful. What might it compare them with? And what could it not catch?
- Hint 1: Could it keep a list of known harmful programs?
- Hint 2: What if a harmful program is brand new?
Show a model answer
It could compare files with a list of known harmful programs, and watch for suspicious behaviour. It could miss malware that is new and not yet on the list.
Anti-malware software scans files and programs, compares them with a list of known malware, and watches how programs behave. When it finds something harmful it blocks it, isolates it and removes it. Anti-virus software looks for viruses and other malware; anti-spyware looks for spyware. The list of known malware has to be kept up to date, or new malware will not be recognised. Anti-malware helps against viruses, worms, Trojan horses, spyware, adware and ransomware. It does not protect against someone being fooled into giving away a password.
Automating software updates means that the operating system, browser and other programs install their updates by themselves. An update often fixes a flaw in the software that attackers use to get in, such as a worm spreading through a known hole or a hacker breaking in. If an update is left until someone remembers, the flaw stays open. Automatic updates also keep the anti-malware list up to date.
Check your understanding
Show the answer
Answer: B. Updates close flaws in software that attackers could otherwise use to get in.
Updates fix known flaws, so an attacker cannot use them.
Apply it
Show the answer
Answer: B. Anti-malware protects only against malware, not against someone persuaded to hand over a password.
Each defence covers some threats. Anti-malware is for malware.
Stage: Discover
Guarding the door of the network
Think it through
A school’s network is joined to the internet through one connection. What kind of checker could stand at that connection, and what could it decide about each packet that tries to come in or go out?
- Hint 1: Think of a security guard at a gate.
- Hint 2: What would the guard’s list of rules say?
Show a model answer
A checker at the gate could look at each packet and decide, using rules, whether to let it through or stop it. It would check packets leaving as well as entering.
A firewall is software or hardware that sits between a device or network and the internet, checks the data going in and out against a set of rules, and blocks what the rules do not allow. It helps against hacking, because it can block connection attempts from outside, and it can stop malware on a device from sending data out. A firewall cannot stop the owner running a Trojan horse that they installed themselves.
A proxy server is a server that sits between users and the internet. A user’s request goes to the proxy, which passes it on to the website using its own address, and sends the reply back to the user. This means:
- the website sees the proxy’s address, not the user’s, which hides the user’s IP address;
- the proxy can filter requests, for example by blocking a list of websites;
- the proxy can keep copies of popular pages (caching), which makes them quicker to load;
- a proxy placed in front of a website can take the flood of requests of a DDoS attack, and filter them, before they reach the web server.
Do not confuse: Checking traffic, or standing in for the user
- Checks the dataFirewall
- Examines packets going in and out against rules, and blocks those the rules do not allow.Blocking connection attempts from outside.
- Passes requests onProxy server
- Receives requests, passes them on using its own address, and returns the replies, so it can filter them and hide the user’s address.A school proxy that blocks a list of websites.
Apply it
Show the answer
Answer: A. A proxy server, which can filter requests and shows its own address to each website.
A proxy server stands between users and websites, so it can filter and hide addresses.
Stage: Explain
How a secure connection is made
Think it through
From the Encryption lesson: a browser and a website have never met, and they want to use a secret key to encrypt everything between them. How could they agree on one key without a person at the next table, who sees every packet, learning it?
- Hint 1: One method has a key that is public and one that is private.
- Hint 2: Which kind of encryption is used to share the key, and which kind is fast enough to encrypt everything else?
Show a model answer
They can use asymmetric encryption, with the website’s public key, to send a secret key safely, and then use that secret key for fast symmetric encryption of everything else. This is the idea behind SSL.
The secure socket layer (SSL) is a security protocol that makes a connection between a browser and a web server private. Its modern version is called TLS, and the name SSL is still widely used. A website that uses it has an address that starts with https, and the browser shows a padlock.
Each step names who acts. The first steps use the public key and the private key, and the last uses a shared secret key.
The browser
Step 1 of 5: It asks the website to identify itself
Because the address starts with https, the browser asks the web server to start a secure connection.
The web server
Step 2 of 5: It sends its digital certificate
The certificate is a file that names the website and holds its public key, and shows which trusted organisation vouches for it.
The browser
Step 3 of 5: It checks the certificate
The browser checks that the certificate is from a trusted organisation, has not run out of date, and matches the website’s domain name. If not, it warns the user.
The browser and the web server
Step 4 of 5: They agree a secret key
The browser makes a secret key, encrypts it with the server’s public key and sends it. Only the server’s private key can decrypt it, so only the two of them now know the key.
The browser and the web server
Step 5 of 5: Everything after is encrypted with that key
Pages, logins and card numbers travel as ciphertext. Anyone who intercepts the packets sees nonsense.
SSL protects against data interception, because captured packets are ciphertext. The certificate check also helps against pharming: a fake website cannot show a certificate that matches the domain name, so the browser warns the user.
Check your understanding
Show the answer
Answer: C. It encrypts data between browser and server, so interception gives only ciphertext.
SSL encrypts the connection between the browser and the web server.
Stage: Predict
The checks a person can make
Here are two fictional emails. Both claim to come from Brightwater School’s head teacher.
Email 1. “Dear Parents, the trip to the science museum on Friday is confirmed. Please see the attached letter. Mrs Okafor, Head Teacher.”
Email 2. “DEAR CUSTOMER!!! Your acount is been suspended. You must click here IMMEDIATLY or you will loose all your childs records. Head Teacher.”
Think it through
Which email looks more like a phishing attempt, and why? List every sign you can find.
- Hint 1: Look at the spelling and the greeting.
- Hint 2: Look at the tone: how does the writer want the reader to feel?
Show a model answer
Email 2. It has spelling mistakes, a generic greeting (“Dear customer” instead of a name), capital letters and exclamation marks, a threat, pressure to act immediately, and a tone that does not sound like a head teacher. Email 1 is specific and calm.
Checking the spelling and tone of communications is a free defence against phishing and social engineering. Warning signs are: mistakes in spelling or grammar, an impersonal greeting, an urgent or threatening tone, an unexpected request for details or money, and a style that does not match the real organisation. Not every fake is badly written, so a message that looks professional should still be checked in another way, for example by contacting the organisation on a number you already know.
Messages often contain links. The words of a link are not always the address it leads to, so check the URL attached to a link before clicking: hover the pointer over it to see the address. Read the domain name, which is the part between :// and the first /. The real owner is shown by its end, so www.example.org.account-check.example.net belongs to example.net, not example.org. Look also for letters that have been changed, such as rn in place of m.
| URL in the link | Does it belong to example.org? |
|---|---|
| https://www.example.org/login | |
| https://www.example.org.account-check.example.net/login | |
| https://www.exarnple.org/login | |
| https://learn.example.org/homework |
- Find the domain name between :// and the first slash.
- Read the domain name from its end.
Show the completed table
| URL in the link | Does it belong to example.org? |
|---|---|
| https://www.example.org/login | yes |
| https://www.example.org.account-check.example.net/login | no |
| https://www.exarnple.org/login | no |
| https://learn.example.org/homework | yes |
Write yes or no in each blank cell.
The last of these solutions is about what you share. Privacy settings are the controls on websites, apps and devices that decide who can see your information, such as a profile, posts, photographs and location, and what the website may collect, such as cookies. Setting a social media profile to be seen only by friends, and turning off location sharing, gives attackers less to use: details such as a school and a pet’s name can make a phishing message or a phone call seem genuine, and make passwords easier to guess.
Apply it
Show the answer
Answer: C. Not click, because the domain name ends with example.net, so it is not example.org.
Hover to see the real address, then read its domain name from the end.
Stage: Apply
Matching solutions to threats
Brightwater’s marks system is at risk from two threats: hacking (someone getting into accounts) and phishing (teachers being tricked into giving their passwords).
- Pick a solution for hacking, and say why. Two-step verification: even if a password is guessed or stolen, the attacker needs the one-time code from the teacher’s phone, so a stolen password alone does not open the account.
- Pick a solution for phishing, and say why. Checking the URL behind each link, and the spelling and tone of messages: phishing needs the reader to click or reply, so a reader who spots the warning signs stops the attack at the first step.
- Limit the harm if both fail. Access levels: give each teacher read and write access only to their own class, so a stolen account cannot change every pupil’s marks.
- Check each choice against the threat. Each solution blocks a different step of an attack, so together they cover more than any one would.
| Threat | A solution that helps |
|---|---|
| Brute-force attack on a pupil’s account | |
| Data interception on public Wi-Fi | |
| A worm spreading through a flaw in old software | |
| A phishing email with a link to a fake bank page | |
| A DDoS attack on the school’s website | |
| A stranger posting a pupil’s school name and birthday to guess their passwords |
- Ask which step of the attack the solution would stop.
Show the completed table
| Threat | A solution that helps |
|---|---|
| Brute-force attack on a pupil’s account | two-step verification |
| Data interception on public Wi-Fi | SSL |
| A worm spreading through a flaw in old software | automating software updates |
| A phishing email with a link to a fake bank page | checking the URL attached to a link |
| A DDoS attack on the school’s website | proxy server |
| A stranger posting a pupil’s school name and birthday to guess their passwords | privacy settings |
More than one answer can be right, and the table accepts the main ones. Choose from: access levels, anti-malware, automating software updates, checking the URL attached to a link, firewall, privacy settings, proxy server, SSL, strong passwords, two-step verification.
“We have anti-malware, so we are safe” is a mistake. Each solution covers some threats and not others: anti-malware does not stop a person being tricked, a firewall does not stop a user installing a Trojan horse, and SSL does not show that a website is honest. Using several solutions together, so that a failure of one is caught by another, is what keeps data safe.
Apply it
Show the answer
Answer: A. A firewall cannot stop the pupil installing it; anti-malware could help detect it.
Each solution covers certain threats. A Trojan horse relies on the user, so anti-malware and care are needed.
Stage: Consolidate
Show what you know
Cedar Bakery, a fictional business, sells cakes on its own website. Three staff share one laptop and use the same password for the bakery’s online banking and its email. Last week, the owner received an email, supposedly from the bank, asking her to “confirm her details”.
Think it through
Choose four solutions from this lesson for Cedar Bakery. For each, say which threat it helps against and why it suits this business.
- Hint 1: Which of the bakery’s habits are risky?
- Hint 2: Which threats could damage a small business most?
Show a model answer
A strong answer picks solutions that fit the facts. For example: two-step verification and separate strong passwords for banking and email, because one shared password means one stolen password opens everything; access levels and separate accounts on the laptop, so each member of staff can reach only what they need; checking the sender and the URL of emails, because the owner has already been sent a phishing attempt; and automatic updates and anti-malware on the shared laptop, to close flaws and catch malware.
Apply it
Show the answer
Answer: C. Using a different strong password for each account and adding two-step verification.
Separate strong passwords and a second step reduce the harm of a stolen password.
- Access levels give each user the lowest level they need (no access, read only, read and write, full access), which limits the harm if an account is taken over.
- Authentication checks who a user is: username and password (strong ones help against brute-force attacks), biometrics, and two-step verification, which needs a second proof as well as the password.
- Anti-malware (anti-virus, anti-spyware) finds and removes malware; automating software updates closes flaws that hackers and worms use.
- A firewall checks data going in and out against rules; a proxy server passes requests on, can filter them and hides the user’s address; SSL encrypts the connection between a browser and a web server, after a certificate check.
- People can check the spelling and tone of messages and the URL attached to a link, reading the domain name from its end, and use privacy settings to limit what others can learn.
- No single solution is enough. Several are used together.
Sources and scope
- What this lesson is. The tenth 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, Mrs Okafor, the two emails, Ravi, Cedar Bakery and every URL are fictional. The URLs use example.org and example.net, which are reserved for examples in documents.
- Simplified on purpose. The rule for reading a domain name from its end is simplified: real domain names can have longer endings, such as co.uk, so the real owner is not always the last two parts. The lesson treats SSL and TLS as one idea and describes one simple version of how a secure connection is set up, with no detail on the algorithms. The lesson describes defences at the depth of the specification; real organisations also use staff training, backups and monitoring, which are not taught here.
The set of things a user is allowed to do with data, such as no access, read only, read and write, or full control.
Software that shows unwanted adverts, and may also track what the user looks at.
A sequence of precise steps that solves a problem or completes a task.
Software that scans for malware, blocks it and removes it; anti-virus and anti-spyware are kinds of it.
Encryption that uses a pair of keys: a public key to encrypt and the matching private key to decrypt.
Checking that a user is who they claim to be before letting them in.
Authentication that uses a measurable feature of the body, such as a fingerprint, a face or a voice.
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.
The readable name of a website’s host, such as www.example.org, which a domain name server turns into an IP address.
Software or hardware that checks the data entering and leaving a network or device against rules, and blocks what the rules do not allow.
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.
The stage in which a model’s parameters are adjusted, using large amounts of example data, until its predictions fit the data well.
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.
A server that sits between a user and a website, passing requests on and sending the replies back, so that it can filter them and hide the user’s own address.
The key of a pair that is given to anyone and is used to encrypt.
Malware that locks or encrypts a user’s files and demands payment before it will release them.
A program that stores data in a grid of rows and columns and can calculate with it using formulas.
Malware that secretly records what a user does, such as the keys they press, and sends it to the attacker.
A security protocol that encrypts the data sent between a browser and a web server; its modern version is called TLS.
Encryption in which the same secret key is used to encrypt and to decrypt.
Malware that pretends to be a useful or harmless program so that the user installs it.
Authentication that needs two separate steps, such as a password followed by a one-time code sent to the user’s phone.
The text-based address of a web page, which can contain the protocol, the domain name and the page or file name.
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.