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.

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.

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.

Which access level suits each person?
Person and dataAccess 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

    Show the completed table
    Person and dataAccess level
    A pupil looking at the published school timetableread only
    A teacher entering marks for their own classread and write
    A pupil trying to open another pupil’s private recordsno access
    The IT technician adding user accounts and changing who can see whatfull 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.

    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

    A criminal has a pupil’s password, taken by a phishing email. Why does two-step verification still help?
    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

    A fictional bank wants to protect online accounts against criminals who have guessed or stolen passwords. Which single change would help most?
    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?

    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

    Why is it a good idea to switch on automatic updates?
    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

    Ravi has anti-malware installed and up to date. He still gives his password to someone who phones him claiming to be from the school IT team. What does this show?
    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?

    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

    A school wants a way to stop pupils reaching a list of unsuitable websites, and to hide pupils’ own IP addresses from the websites they visit. Which solution fits?
    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?

    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.

    How a browser sets up a secure connection with a website

    Each step names who acts. The first steps use the public key and the private key, and the last uses a shared secret key.

    1. 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.

    2. 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.

    3. 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.

    4. 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.

    5. 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

    What is the main purpose of SSL when a pupil visits a website?
    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.

    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.

    Does the link really belong to example.org?
    URL in the linkDoes 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

      Show the completed table
      URL in the linkDoes it belong to example.org?
      https://www.example.org/loginyes
      https://www.example.org.account-check.example.net/loginno
      https://www.exarnple.org/loginno
      https://learn.example.org/homeworkyes

      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

      A message says “Click to confirm your account” and the link’s text is www.example.org, but hovering over it shows https://www.example.org.confirm-now.example.net/login. What should the pupil do?
      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).

      1. 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.
      2. 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.
      3. 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.
      4. Check each choice against the threat. Each solution blocks a different step of an attack, so together they cover more than any one would.
      One solution that helps against each threat
      ThreatA 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

        Show the completed table
        ThreatA solution that helps
        Brute-force attack on a pupil’s accounttwo-step verification
        Data interception on public Wi-FiSSL
        A worm spreading through a flaw in old softwareautomating software updates
        A phishing email with a link to a fake bank pagechecking the URL attached to a link
        A DDoS attack on the school’s websiteproxy server
        A stranger posting a pupil’s school name and birthday to guess their passwordsprivacy 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

        A pupil works on a school laptop, which has a firewall, strong passwords and automatic updates. One day, they install a free “homework helper” that turns out to be a Trojan horse. Which statement is accurate?
        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.

        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

        Cedar Bakery can only make one change this week. Staff reuse a single password for the bank and email, and a phishing email has already arrived. Which change gives the most protection for the bank account?
        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.