Revision Notes
OxfordAQA A-Level Computer Science (9645): Cyber security – Revision Notes
Recall notes for OxfordAQA 9645 sub-topic 3.14.5: firewalls, symmetric and asymmetric encryption, key exchange, certificates, signatures and malware.
- Subject
- Computer Science
- Level
- A LEVEL
- Topic
- Topic 14 – Networking and cyber security
- Author
- Marlbridge Academic Team
- Updated
- Reviewed by
- Harris Khan (what this means)
Aligned to OxfordAQA A Level Computer Science (9645), 2024-onwards. Official specification .
Syllabus page (what it covers and how it is assessed): OxfordAQA A Level Computer Science.
Syllabus points this page covers
9645 (A Level)
- 3.14.5 Cyber security
This page covers 1 of the 5 subtopics in topic 14, Networking and cyber security.
Found an error? Report a correction.
Need help with this topic? Request a free trial class for A Level Computer Science (9645).
These notes condense sub-topic 3.14.5 Cyber security of OxfordAQA International AS and A-level Computer Science (9645), Version 1.1 (International A-level content in topic 3.14, examined in Unit 4). For worked examples, see the cyber security study guide, then practise with the cyber security practice questions.
What the specification requires
- Understand how a firewall works: packet filtering, proxy server, stateful inspection.
- Understand symmetric and asymmetric (private/public key) encryption and key exchange.
- Understand how digital certificates and digital signatures are obtained and used.
- Discuss worms, trojans and viruses and the vulnerabilities they exploit.
Key terms
| Term | Meaning |
|---|---|
| Firewall | Allows or blocks network traffic according to rules |
| Packet filtering | Judges each packet on its own using header details |
| Proxy server | An intermediary that makes requests on behalf of clients |
| Stateful inspection | Tracks connections and allows only packets that fit an established connection |
| Symmetric encryption | One shared secret key encrypts and decrypts |
| Asymmetric encryption | A public key and a private key form a pair |
| Key exchange | Securely agreeing a shared key |
| Digital signature | A hash encrypted with the sender’s private key |
| Digital certificate | Links a public key to an identity; signed by a certificate authority |
| Certificate authority (CA) | A trusted organisation that issues certificates |
Firewall techniques
| Technique | What it checks | Strength | Weakness |
|---|---|---|---|
| Packet filtering | Source and destination address, port, protocol, one packet at a time | Fast and simple | No knowledge of connections; spoofed packets may pass |
| Proxy server | Requests made on the client’s behalf; content can be inspected | Hides internal addresses; can block sites and cache | Adds delay; can be a bottleneck |
| Stateful inspection | A table of connections and their state | Blocks packets that do not belong to a known connection | Uses more memory and processing |
Symmetric and asymmetric encryption
| Symmetric | Asymmetric | |
|---|---|---|
| Keys | One shared secret key | Public key and private key |
| Speed | Fast | Slower |
| Main problem | Sharing the key safely | Slow for large data |
| Keys needed for n people to communicate privately | n(n − 1)/2 (45 for 10 people) | 2n (20 for 10 people) |
| Typical use | Encrypting bulk data | Key exchange, signatures, certificates |
- To send a secret to Sam: encrypt with Sam’s public key. Only Sam’s private key decrypts it.
- To sign: encrypt the hash with your private key. Anyone can check it with your public key.
Toy RSA reminder
p = 11, q = 13, so n = 143. Public exponent e = 7, private exponent d = 103 (7 × 103 = 721 = 6 × 120 + 1).
| Step | Calculation | Result |
|---|---|---|
| Encrypt 9 | 9^7 mod 143 | 48 |
| Decrypt 48 | 48^103 mod 143 | 9 |
| Encrypt 42 | 42^7 mod 143 | 81 |
| Sign hash 42 | 42^103 mod 143 | 3 |
| Verify signature 3 | 3^7 mod 143 | 42 |
These numbers are far too small to be secure.
Key exchange
- Hybrid method (HTTPS): use asymmetric encryption to exchange a symmetric key, then use that key for the data.
- Diffie-Hellman example: p = 23, g = 5. Alice sends 5^6 mod 23 = 8; Bob sends 5^15 mod 23 = 19. Each then computes the same shared key, 2.
Digital signatures
- Hash the message.
- Encrypt the hash with the sender’s private key (the signature).
- Receiver decrypts the signature with the sender’s public key.
- Receiver hashes the message and compares. A match shows the sender is genuine and the message is unchanged.
Digital certificates
- Contents: owner’s name or domain, public key, validity dates, CA’s signature.
- Obtaining: the owner sends the public key and proof of identity to a CA; the CA checks it, signs and returns the certificate.
- Using: a browser checks the CA’s signature, the expiry date and that the name matches, then uses the public key to start an encrypted session.
Malware
| Virus | Worm | Trojan | |
|---|---|---|---|
| Form | Attaches to a legitimate file | Standalone program | Disguised as legitimate software |
| Spreads | When infected file is run or shared | Copies itself across networks without user action | User installs it; does not self-replicate |
| Harm | Corrupts files, runs unwanted code | Uses bandwidth; carries payloads | Back door, data theft |
Vulnerabilities exploited: unpatched software (for example buffer overflows), users opening attachments or installing unknown software, open ports and unneeded services, weak passwords and over-generous permissions.
Protection: updates, anti-malware, firewall, backups, least privilege, user training.
Exam traps
- Signatures do not encrypt the message. They prove origin and integrity.
- Which key? Encrypt a secret with the receiver’s public key; sign with your own private key.
- Trojans do not replicate on their own; worms do.
- Packet filtering looks at one packet at a time; stateful inspection tracks connections.
- Symmetric is faster; asymmetric avoids the shared key problem.
- Certificates are signed by a CA; they are not self-proving.
- Describe the vulnerability as well as the malware.
Quick self-test
- Name the three firewall techniques in the specification.
- What does packet filtering examine?
- Why does a proxy server hide internal addresses?
- How many keys does symmetric encryption use?
- Which key do you use to encrypt a secret message for someone else?
- Which key signs a message?
- Why is key exchange needed?
- What does a certificate authority do?
- Name one item in a digital certificate.
- How does a worm differ from a virus?
- How does a trojan reach a computer?
- Give one vulnerability that malware exploits.
Answers
- Packet filtering, proxy server, stateful inspection.
- The header details of each packet: addresses, port and protocol.
- External servers see only the proxy’s address because the proxy makes the request.
- One shared secret key.
- The receiver’s public key.
- The sender’s private key.
- Symmetric encryption needs both sides to have the same key, and it must be shared securely.
- It checks an owner’s identity and signs a certificate that links a public key to that identity.
- Any one of: owner’s name or domain, public key, validity dates, the CA’s signature.
- A worm copies itself across networks without user action; a virus attaches to a file and needs it to be run or shared.
- The user is tricked into installing it, because it is disguised as legitimate software.
- Unpatched software (or weak passwords, or users opening attachments).
Official syllabus
OxfordAQA International AS and A-level Computer Science (9645) specification, Version 1.1, for International AS exams May/June 2025 onwards and International A-level exams May/June 2026 onwards: sub-topic 3.14.5 Cyber security.
Related resources
-
Study guides
OxfordAQA A-Level Computer Science (9645): The Internet
OxfordAQA 9645 sub-topic 3.14.3 in depth: Internet structure, packet switching, routers, packet contents, routing, URLs, domain names, the Domain Name System and registries.
Computer Science · OxfordAQA · A Level
Read guide -
Practice questions
OxfordAQA A-Level Computer Science (9645): The Internet – Practice Questions
Eleven original OxfordAQA 9645 questions on sub-topic 3.14.3 The Internet: packets, routers, TTL, URLs, domain names, DNS look-ups and Internet registries.
Computer Science · OxfordAQA · A Level
Try questions -
Revision notes
OxfordAQA A-Level Computer Science (9645): The Internet – Revision Notes
Recall notes for OxfordAQA 9645 sub-topic 3.14.3: Internet structure, packet switching, routers, packet parts, URLs, DNS look-up, registries and a self-test.
Computer Science · OxfordAQA · A Level
Revise topic
Get free revision emails (optional)
Occasional emails with practice questions, worked explanations and links to free resources for the qualification and subjects you choose. No spam, and you can unsubscribe from any email. The free tools on this site never need an email.