Network and Cyber Security (GCSE & IGCSE Computer Science): Revision Notes and Worksheets
GCSE and IGCSE Computer Science security: malware, phishing, brute force, DoS, interception, SQL injection, firewalls, passwords, pen testing and SSL.

Every organisation that keeps data on a computer is a target, and most attacks start with a person, not a machine. This guide covers GCSE and IGCSE network and cyber security: malware, social engineering and phishing, brute-force attacks, denial of service, data interception, SQL injection, and the methods that limit each threat, from firewalls and passwords to penetration testing and SSL. Each part has a worked example and a worksheet for your exam board.
OCR J277 students: skip G10, and the points marked IGCSE only. Cambridge IGCSE 0478 students: skip G6 and G9, and the points marked GCSE only. Everything else is on both boards. All the people and organisations in this post are made up.
What does security cover for OCR and Cambridge?
Security is about the threats to computer systems and the methods that limit them. OCR J277 calls the topic network security: forms of attack (1.4.1) and identifying and preventing vulnerabilities (1.4.2). Cambridge IGCSE 0478 calls it cyber security: threats (5.3.1) and solutions that keep data safe (5.3.2). Both boards want to know how each attack is carried out and its purpose, and how each method limits the threat. The table below is based on the OCR J277 specification (version 3.1) and the Cambridge IGCSE 0478 syllabus for 2026-2028, as checked in November 2026.
Part | Topic | OCR J277 | Cambridge 0478 |
|---|---|---|---|
G1 | Malware (both boards; the six named types IGCSE only) | 1.4.1 | 5.3.1 |
G2 | Social engineering and phishing (both boards; pharming IGCSE only) | 1.4.1 | 5.3.1 |
G3 | Brute-force attacks (both boards) | 1.4.1, 1.4.2 | 5.3.1, 5.3.2 |
G4 | Denial of service: DoS and DDoS (both boards) | 1.4.1 | 5.3.1 |
G5 | Data interception (both boards; theft GCSE only; hacking IGCSE only) | 1.4.1, 1.4.2 | 5.3.1 |
G6 | SQL injection (GCSE only) | 1.4.1, 1.4.2 | not on syllabus |
G7 | Firewalls, anti-malware and updates (both boards; automated updates IGCSE only) | 1.4.2 | 5.3.2 |
G8 | Access levels and passwords (both boards; biometrics and two-step verification IGCSE only) | 1.4.2 | 5.3.2 |
G9 | Penetration testing, physical security and encryption (GCSE only) | 1.4.2 | not on syllabus (encryption is 2.3, in D6) |
G10 | Staying safe online: SSL, proxy servers, privacy settings, checking links and messages (IGCSE only) | not on specification | 5.3.2 |
G1: What is malware and what is it used for?
Both boards. Malware is malicious software: software written to damage or disrupt a computer system, or to gain unauthorised access to it. It usually gets onto a system through email attachments, infected downloads and links, removable media such as USB memory sticks, or software that has not been updated.
Its purpose can be to delete or corrupt data, steal data such as passwords and bank details, extort money, or take control of the device. Malware often runs without the user noticing, because it can hide inside a program that seems to work normally.
GCSE only: OCR J277 asks how malware is used and its purpose, but does not name the types. Knowing them still helps you describe what malware does.
IGCSE only: Cambridge 0478 names six types of malware, and you must be able to describe each one:
Virus: attaches itself to a host file or program, and copies itself when that file is run or shared.
Worm: a standalone program that copies itself across a network with no user action, using up bandwidth.
Trojan horse: disguised as genuine software; once installed, it runs hidden harmful code.
Spyware: secretly monitors what the user does, such as the keys pressed, and sends the data to a third party.
Adware: shows unwanted adverts and may redirect web searches; it can slow the device, and some adware also contains spyware.
Ransomware: encrypts the user's files and demands payment before they can be decrypted.
Worked example: how is the malware used, and what is its purpose? (both boards)
Step 1: an employee at a printing firm installs a free photo tool from an unfamiliar website. It works, but it also records every key the employee types. Used: hidden in a download. Purpose: steal log-in details. (IGCSE only: a Trojan horse carrying spyware.)
Step 2: every file on a garden centre's server is suddenly locked, and a message demands payment to unlock them. Purpose: extort money. (IGCSE only: ransomware.)
Step 3: a program spreads from one computer to every other computer on an office network on its own, and the network slows down. Purpose: disrupt the system. (IGCSE only: a worm, because it needs no host file and no user action.)
Practise G1: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G2: What are social engineering, phishing and pharming?
Both boards. Social engineering is manipulating people into giving away confidential information, such as passwords, or access to a system. It exploits trust, fear and urgency rather than a technical weakness. Common forms are phone calls pretending to be from a bank or IT support, shoulder surfing (watching someone type a password), and leaving infected USB drives for someone to plug in.
Phishing is a form of social engineering. The attacker sends a fake email or text message that appears to come from a trusted source, such as a bank. It tries to get the user to click a link to a fake website, open an infected attachment, or reply with their details. The purpose is to steal log-in, bank and personal details for fraud or identity theft, or to install malware.
GCSE only: OCR J277 describes people as the "weak point" in a system. A system can be fully updated and protected by security software, and still be broken into because a person was tricked into handing over a password.
IGCSE only: Pharming is malicious code installed on the user's device or on a DNS server that redirects the user to a fake website, even when they type the correct web address. The fake website looks genuine, and the aim is to collect the log-in or bank details the user types in. The difference: phishing needs the user to respond to a message; pharming needs no message at all.
Worked example: spot the phishing message (both boards)
A customer receives a text: "Larchmoor Savings: a payment of £950 is leaving your account NOW. Tap here within 30 minutes to cancel it."
Step 1: look for urgency and fear: "NOW", "within 30 minutes" and a large payment push the user to act before thinking.
Step 2: ask what it wants: a tap on a link, which leads to a fake website that asks for log-in or card details. The aim is to steal those details.
Step 3 (IGCSE only): if the same customer typed the bank's correct web address and still landed on a fake site, with no message at all, that would be pharming, not phishing.
Practise G2: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G3: What is a brute-force attack?
Both boards. A brute-force attack uses trial and error to find a password. Software tries one password after another, often common passwords and dictionary words first, then every possible combination, until one works. Because it is automated, a huge number of guesses can be made very quickly.
The purpose is to gain unauthorised access to an account or system, so the attacker can steal, change or delete data or plant malware. Short, simple passwords fall quickly. Each extra character multiplies the number of possible passwords, so brute force is limited by long passwords with a mix of character types and by locking the account after a set number of failed attempts (more in G8).
Worked example: why length and lockouts matter (both boards)
Step 1: a 4-digit PIN has 10 choices for each digit: 10 × 10 × 10 × 10 = 10,000 possible PINs. A 6-digit PIN has 10⁶ = 1,000,000: two more digits give 100 times as many.
Step 2: an 8-character password using upper and lowercase letters and digits has 62 choices per character: 62⁸ = 218,340,105,584,896 possible passwords. At 10 million guesses a second, trying them all takes about 253 days.
Step 3: now lock the PIN after 5 wrong attempts. The attacker gets 5 guesses out of 10,000: a 1 in 2,000 chance. A lockout stops the attacker making enough guesses.
Practise G3: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G4: What is a denial of service (DoS) or DDoS attack?
Both boards. A denial of service (DoS) attack floods a server, website or network with more requests than it can handle. The server is overwhelmed, so the service slows down or crashes, and genuine users cannot access it.
A distributed denial of service (DDoS) attack sends the requests from many devices at once. The attacker first spreads malware to many computers. Each infected computer becomes a bot, and together they form a botnet that the attacker controls; the owners usually do not know. On the attacker's instruction, the bots all send requests to the target at the same time. A DDoS is harder to stop, because the traffic comes from many different IP addresses, so blocking one source does not end the attack.
The purpose is to disrupt an organisation: lost sales, damage to its reputation, extortion (demanding money to stop), protest or revenge. A DoS attack usually does not steal data; the aim is to make a service unavailable.
GCSE only: OCR J277 uses the term denial of service attack. IGCSE only: Cambridge 0478 uses DDoS, and asks you to describe the process with the botnet.

Worked example: why one computer is not enough (both boards)
A ticket website's server can handle 2,000 requests per second.
Step 1: one attacking computer sends 500 requests a second. The server copes, and the company can block that one IP address.
Step 2: a botnet of 10,000 bots each sends 5 requests a second: 10,000 × 5 = 50,000 requests per second, which is 50,000 ÷ 2,000 = 25 times what the server can handle. Genuine users cannot get through.
Step 3: blocking one bot removes only 5 of the 50,000 requests (0.01%). That is why a DDoS is harder to stop than an attack from one computer.
Practise G4: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G5: What are data interception, theft and hacking?
Both boards. Data interception is capturing data while it is being transmitted across a network. With packet sniffing, software or hardware captures the packets on a network so the attacker can examine their contents. Wireless networks are easier targets, because anyone within range can pick up the signal. Interception often goes unnoticed: the data still reaches the receiver, so the sender may never know it was copied.
The purpose is to steal passwords, personal and bank details for fraud, identity theft, blackmail or to sell. Interception is limited by encryption: intercepted data cannot be understood without the key (see D6). Encryption does not stop the data being intercepted.
GCSE only: OCR J277 says data interception and theft. Data can also be stolen without any network: a laptop or USB drive is taken, or an insider copies files they should not. Physical security and encryption limit this (G9).
IGCSE only: Hacking is gaining unauthorised access to a computer system without the owner's permission. A hacker may aim to steal, delete, change or corrupt data, install malware, or use the system to launch further attacks. It is limited by firewalls, strong authentication and access levels (G7 and G8).
Worked example: a laptop on a train's free Wi-Fi (both boards)
Step 1 (both boards): a sales manager logs in to a work account over a train's free Wi-Fi. Someone in the same carriage with packet-sniffing software can capture the packets sent over the wireless network.
Step 2 (both boards): if the website uses HTTPS, the captured data is encrypted: it was intercepted, but cannot be understood without the key. On a site without encryption, the password could be understood.
Step 3 (GCSE only): the manager leaves the laptop on the seat and it is taken: that is data theft. Encrypting the laptop's storage means the thief cannot understand the files. (IGCSE only: if someone later logs in to the firm's server with the stolen details, without permission, that is hacking.)
Practise G5: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G6: What is SQL injection?
GCSE only. OCR J277 asks for the concept of SQL injection. Many websites use SQL to look up data in a database, for example to check a log-in or run a search. In an SQL injection attack, the attacker types SQL code into an input box on a website, such as a log-in form or a search box, instead of normal data.
If the program does not validate the input, the typed code becomes part of the website's own SQL query, and the database runs it. The purpose is to bypass a log-in or to view, steal, change or delete data, such as customer records. The weakness is in the program, not the user: poor input validation.
SQL injection is limited by input validation and sanitisation (checking input before it is used, and rejecting anything that is not in the expected form), by giving the program's database account only the access level it needs, and by penetration testing to find the weakness first. You never need to write attack code in the exam.
Worked example: what goes wrong, and how to fix it (GCSE only)
Step 1: a members' website builds an SQL query from the username and password that are typed in. If the database finds a matching record, the member is logged in.
Step 2: the program puts the typed text straight into the query. An attacker types SQL code instead of a password, and the code changes the condition in the query so it no longer checks the password properly. The database returns a record, and the attacker is logged in without the password.
Step 3: the fixes: validate the input so code is rejected and never becomes part of the query; give the program's database account read-only access to only the tables it needs, to limit the damage; and penetration test the form before it goes live.
Practise G6: OCR questions · OCR mark scheme
G7: How do firewalls, anti-malware and updates prevent attacks?
Both boards. For every prevention method, learn what it limits and how it limits it.
Firewall: hardware or software that monitors the traffic coming into and going out of a network, usually between the network and the internet. It checks the traffic against a set of rules and blocks anything that breaks them, for example traffic from a blocked IP address, to a blocked port or from a known harmful website. It limits hacking and unauthorised access, malware connecting in or sending data out, and some denial of service traffic.
Anti-malware software: scans files, downloads and memory, comparing them with a database of known malware. It quarantines or deletes any malware it finds, scanning in real time and on a schedule. It must be updated regularly with new definitions, or it cannot detect new malware.
A firewall only sees network traffic. Malware that arrives on a USB memory stick never passes through it, so you need anti-malware as well.
IGCSE only: Cambridge 0478 names anti-virus and anti-spyware as types of anti-malware. It also names automating software updates: updates contain patches that fix security weaknesses (bugs) attackers could exploit, and setting them to install automatically, as soon as they are released, means the system does not rely on users remembering. OCR J277 does not list software updates as a named method.

Worked example: which method stops it? (both boards)
Step 1: traffic arrives from an IP address the firm has seen attacking it before. The firewall rule blocks that address, so it never reaches the network.
Step 2: a staff member plugs in a USB stick with an infected file. The firewall cannot see it; anti-malware scans the file, matches it to known malware and quarantines it.
Step 3: a new type of malware appears this week. Anti-malware that has not been updated has no record of it and will miss it, which is why it downloads new definitions regularly.
Practise G7: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G8: How do access levels and passwords keep data safe?
Both boards. Authentication is confirming who a user is before giving access. The usual way is a username and password.
User access levels: different users get different permissions, such as read-only, read/write or administrator. Each user can only see, change or delete what their job needs. If an attacker logs in with someone's account, they are limited to that user's access.
Passwords: a strong password is long, uses a mix of upper and lowercase letters, digits and symbols, is not a word or personal detail (such as a pet's name or a birth year), and is not reused. It limits brute-force attacks, because there are far more combinations to try, especially with an account lockout after a set number of failed attempts. Never share a password, even with someone who says they are from IT support.
IGCSE only: Cambridge 0478 names three forms of authentication: username and password, biometrics and two-step verification.
Biometrics: a unique physical feature, such as a fingerprint, face, iris or voice, is scanned and compared with data stored earlier. It cannot be forgotten, guessed or easily shared, but scanners cost money and can wrongly reject a genuine user.
Two-step verification: after entering the password, the user is sent a one-time code to a registered phone or email address, and must enter it. A stolen password alone is not enough to log in.
Worked example: limiting the damage of a stolen log-in (both boards)
A library service gives library assistants read-only access to member records, and managers read/write access.
Step 1: an attacker gets an assistant's username and password through phishing. Because of access levels, the attacker can view records but cannot change or delete them, and cannot reach anything the assistant cannot.
Step 2: the assistant's password was "Biscuit2001", their dog's name and a year: easy to guess. A strong password that is long and random would have been far harder to crack.
Step 3 (IGCSE only): with two-step verification, the stolen password is not enough: the attacker would also need the one-time code sent to the assistant's phone.
Practise G8: OCR questions · OCR mark scheme · Cambridge questions · Cambridge mark scheme
G9: What are penetration testing, physical security and encryption?
GCSE only. OCR J277 lists three more prevention methods.
Penetration testing: an organisation gives authorised testers permission to carry out simulated attacks on its systems, such as brute-force or SQL injection attempts, to find weaknesses before real attackers do. The weaknesses are reported and fixed. Penetration testing does not stop attacks by itself; it removes vulnerabilities.
Physical security: stops unauthorised physical access to devices and servers, using locks, keycards, biometric doors, CCTV, alarms and security guards. It limits the theft of devices and storage media, and people getting direct access to servers to steal or damage data.
Encryption: data is scrambled using a key, so intercepted or stolen data cannot be understood without the key. It limits the impact of interception and theft; it does not stop the data being taken. (More in D6.)
Cambridge 0478 does not list penetration testing or physical security; IGCSE students learn encryption in D6 (0478 2.3).
Worked example: choose the prevention method (GCSE only)
Step 1: anyone in a shared building could walk into the room where the servers are kept. Physical security: a keycard lock on the door, so only authorised staff get in.
Step 2: a backup drive of customer records is carried between two offices and could be lost or stolen. Encryption: if the drive is taken, the thief cannot understand the data without the key.
Step 3: a new online booking page is about to go live. Penetration testing: authorised testers try to break in first, so the weaknesses they find can be fixed before launch.
Practise G9: OCR questions · OCR mark scheme
G10: How do SSL, proxy servers and privacy settings keep you safe online?
IGCSE only. Cambridge 0478 names these solutions as well.
SSL (secure socket layer): a security protocol that encrypts the data sent between a web browser and a web server. It is shown by https:// and a padlock, and protects log-in and payment details if they are intercepted. (Websites now use TLS, the newer version of SSL; the syllabus uses the name SSL.)
Proxy server: sits between the user's device and the internet, so requests and responses pass through it. It hides the user's IP address from websites, filters traffic and blocks harmful or unsuitable websites, and can take the force of an attack such as a DDoS instead of the network behind it.
Privacy settings: control who can see a user's personal data, for example on social media. Less personal data on show means less for attackers to use to guess passwords or write convincing phishing messages.
Checking the URL attached to a link: hover over a link to see the real address before clicking; look for misspelt or unusual domain names and http:// instead of https://.
Checking the spelling and tone of communications: spelling mistakes, a generic greeting, urgency or threats suggest a phishing message.
Worked example: how SSL sets up a secure connection (IGCSE only)
Step 1: the web browser asks the web server to identify itself.
Step 2: the web server sends a copy of its SSL certificate, and the browser checks that the certificate is authentic.
Step 3: the browser tells the server that communication can begin, the server acknowledges, and the SSL-encrypted session starts. Data intercepted from now on cannot be understood without the key.
Practise G10: Cambridge questions · Cambridge mark scheme
Common exam mistakes in security
Writing that encryption stops data being intercepted or stolen. It can still be taken; it cannot be understood without the key.
Writing that a firewall stops all malware. It checks network traffic; malware on a USB stick never passes through it. That is what anti-malware is for.
Writing "more secure" or "safer" on its own. Say which threat the method limits and how.
Saying a denial of service attack steals data. It usually aims to make a service unavailable.
Mixing up brute force (software tries password after password) and social engineering (a person is tricked into giving the password away).
Forgetting that anti-malware must be updated, or it cannot detect new malware.
(GCSE) Saying penetration testing stops attacks. It finds weaknesses so they can be fixed.
(GCSE) Calling SQL injection a virus. It is code typed into an input box that the database runs because the input was not validated.
(IGCSE) Mixing up phishing (a fake message the user responds to) and pharming (redirected to a fake website even when the correct address is typed).
(IGCSE) Mixing up a virus (needs a host file and is spread when it is run) and a worm (standalone, spreads across a network on its own).
Quick recap
G1: malware is software made to damage, disrupt or gain unauthorised access; it spreads through attachments, downloads, USB drives and unpatched software; virus, worm, Trojan horse, spyware, adware and ransomware IGCSE only.
G2: social engineering manipulates people; phishing uses fake messages to steal details; people as the "weak point" GCSE only; pharming redirects to a fake website IGCSE only.
G3: brute force tries password after password until one works; limited by long, complex passwords and account lockout.
G4: DoS floods a server so genuine users cannot reach it; DDoS uses a botnet of many devices and is harder to block.
G5: interception captures data in transit, limited by encryption; data theft GCSE only; hacking (unauthorised access) IGCSE only.
G6: (GCSE only) SQL injection: code typed into an input box is run by the database because the input was not validated.
G7: a firewall checks traffic against rules; anti-malware scans against known malware and must be updated; anti-virus, anti-spyware and automated updates IGCSE only.
G8: access levels limit what each user can do; strong passwords and lockouts limit brute force; biometrics and two-step verification IGCSE only.
G9: (GCSE only) penetration testing finds weaknesses; physical security stops physical access; encryption makes stolen data meaningless.
G10: (IGCSE only) SSL encrypts browser-server data; a proxy server hides IP addresses and filters traffic; privacy settings, URL checks and spelling and tone checks.
Download the whole module
Frequently asked questions
Which parts of security are on the Cambridge IGCSE 0478 syllabus?
G1 to G5, G7, G8 and G10. SQL injection (G6), and penetration testing and physical security (G9), are on OCR J277 only. G10 (SSL, proxy servers, privacy settings and checking links and messages) is on Cambridge 0478 only.
What is the difference between a virus, a worm and a Trojan horse?
A virus attaches itself to a host file and spreads when that file is run or shared. A worm is a standalone program that copies itself across a network with no user action. A Trojan horse is disguised as genuine software and runs hidden harmful code once it is installed.
What is the difference between phishing and pharming?
Phishing uses a fake email or message that appears to come from a trusted source, to trick the user into clicking a link or giving their details. Pharming uses malicious code on the user's device or a DNS server to send the user to a fake website, even when they type the correct web address.
What is the difference between a DoS and a DDoS attack?
Both flood a server with more requests than it can handle, so genuine users cannot access it. A DoS attack comes from one source; a DDoS attack comes from many devices at once, usually a botnet of malware-infected computers, so it is much harder to block.
What is SQL injection in GCSE Computer Science?
SQL injection is when an attacker types SQL code into an input box on a website, such as a log-in form. If the input is not validated, the code becomes part of the website's database query and is run, which can bypass the log-in or expose, change or delete data.
Does a firewall stop all attacks?
No. A firewall checks the traffic between a network and the internet against a set of rules and blocks traffic that breaks them. It cannot stop malware on a USB memory stick or a person being tricked into giving away a password, so it is used together with anti-malware, strong passwords and access levels.
Previous module: The internet revision notes.
Related: Encryption (D6) in the data transmission notes · HTTPS (E9) in the networks notes.
More help: browse the GCSE Computer Science revision hub.