IB Computer Science HL · Year 2 · Lesson 42

Network security + A2 Paper 1 synthesis

Discuss layered protection, map vulnerabilities to countermeasures and explain how encryption and certificates establish secure connections.

Paper 150 minutesA2.4.1–A2.4.4 · A2 cumulative
Targets

Security works in layers because each control has limits

2 / 12
  • discuss firewall effectiveness, including rules, whitelists/blacklists, strengths, limitations and NAT;
  • describe all required network vulnerabilities and countermeasures;
  • describe symmetric/asymmetric cryptography, public/private keys, digital certificates and key management;
  • complete a cumulative A2 Paper 1 checkpoint.
A2.4.1A2.4.2A2.4.3A2.4.4A2 cumulative
Learn + retrieve

Rapid Recall Deck

3 / 12

Attempt each card first. If a term is new, flip and study it, then answer it again without looking. Mark only secure recall as “Know it”.

A2.4.1 · Discuss

A discussion needs strengths, limitations and a judgement

4 / 12

Discuss firewall effectiveness

A company installs a hardware firewall and claims the internal network is now “secure”.

Inspection/filtering of incoming and outgoing traffic
Whitelists, blacklists and rules
Strengths
Limitations
NAT contribution
Overall judgement

A firewall can block or permit traffic according to rules/whitelists/blacklists, reducing exposure to unauthorized network connections and enforcing network policy. NAT can also reduce direct exposure of private internal addressing. However, allowed traffic may still carry malware, users can be phished, insiders/endpoints can be compromised, encrypted traffic may hide threats from limited inspection and zero-day/unpatched vulnerabilities can bypass assumptions. A firewall is therefore an important boundary control but must be combined with endpoint, authentication, monitoring, patching and user-security measures.

A2.4.2 · HL

Know the vulnerability by mechanism, not just acronym

5 / 12

Name the vulnerability from the mechanism

For each scenario, name the vulnerability and give a short phrase explaining the mechanism:
A. Thousands of compromised devices flood one service until legitimate users cannot reach it.
B. A legacy login protocol sends credentials without encryption.
C. A malicious attachment installs unwanted code on an employee laptop.
D. An attacker positions between a user and server and can intercept or alter traffic.
E. A fake message imitates the IT department and asks the user to enter a password on a fraudulent page.

  1. DDoS — distributed sources overwhelm service/network capacity.
  2. Insecure network protocol — sensitive data is exposed because the protocol does not protect the communication.
  3. Malware — malicious software compromises the endpoint.
  4. Man-in-the-middle (MitM) — the attacker intercepts and may alter traffic between parties.
  5. Phishing — deceptive communication tricks the user into revealing credentials or taking an unsafe action.

Diagnose the web/software vulnerability

For each scenario, name the vulnerability and state what makes it possible:
A. A search field changes the intended database query because raw user text is concatenated into SQL.
B. A comment containing attacker-controlled script runs in another user's browser.
C. A vendor released a security patch months ago, but the server never installed it.
D. Accounts use short reused passwords and no second authentication factor.
E. Attackers exploit a newly discovered flaw before an effective patch is available.

  1. SQL injection — unsafe input changes the intended database query.
  2. Cross-site scripting (XSS) — untrusted content is rendered/executed as script in another user's browser.
  3. Unpatched software — a known vulnerability remains exploitable because the fix was not applied.
  4. Weak authentication — easily compromised credentials and lack of additional factors make account takeover easier.
  5. Zero-day exploit — attackers use a vulnerability before an effective fix/defence is available.
A2.4.3 · HL

Countermeasures should be matched to threat mechanism

6 / 12
Countermeasure reference: content security policies (CSP); complex password policies and MFA; DDoS mitigation tools; email filtering; encrypted protocols; input validation/filtering/whitelisting; IDS/IPS; SSL/TLS certificates; software updates; VPNs; regular security testing; employee training; wireless MAC whitelists/blacklists. A real design normally combines controls—no single item is universal.

Choose countermeasures for five situations

Using the reference list, choose one or two especially relevant controls for each situation and explain why.
A. Employees receive credential-stealing emails.
B. A public web service is targeted by a traffic-flood attack.
C. A web application accepts untrusted form input and has not been security-tested recently.
D. A remote employee connects across public Wi-Fi to company systems.
E. A school wants an additional device-level restriction on which known wireless clients may join one network.

A–E — name the control(s).
Mechanism — explain how each selected control reduces the stated risk.
Layering — avoid claiming any one control makes the system completely secure.
  • A: email filtering can reduce malicious messages; employee training helps users recognize them; MFA and strong password policies reduce the damage of stolen credentials.
  • B: DDoS mitigation tools can absorb/filter attack traffic; IDS/IPS and firewall controls can contribute to detection/filtering depending on the deployment.
  • C: input validation/filtering/whitelisting reduces injection-style attacks; CSP can reduce XSS impact; regular security testing and software updates help find/remove known weaknesses.
  • D: a VPN and encrypted protocols protect traffic over the untrusted network; validated SSL/TLS certificates help authenticate secure services.
  • E: wireless MAC whitelists/blacklists can provide an additional device allow/deny layer, but MAC addresses can be spoofed and this should not replace stronger authentication/security controls.
A2.4.4

Encryption is only as trustworthy as its keys

7 / 12
Symmetric:
sender --[shared secret key]--> encrypted data --[same secret key]--> receiver

Asymmetric concept:
public key  → can be shared
private key → kept secret by its owner

Symmetric vs asymmetric

Describe one important difference and one reason secure systems often use both approaches.

Symmetric cryptography uses one shared secret key for encryption/decryption and is efficient for bulk data, but distributing the secret securely is difficult. Asymmetric cryptography uses public/private keys and can support authentication or secure exchange without first sharing one secret key. Many secure systems use asymmetric methods to authenticate/exchange key material, then symmetric encryption for efficient session data.

Key management

Why does strong encryption still fail if keys are badly managed?

If secret/private keys are stolen, weakly generated, exposed, never rotated or not revoked after compromise, attackers may decrypt traffic or impersonate legitimate parties. Security therefore depends on protecting the entire key lifecycle, not only the encryption algorithm.

Digital certificates

Confidentiality without authentication can still connect you to the wrong party

8 / 12

Digital certificate process

1. Server presents a digital certificate.
2. Certificate identifies the server and contains/binds its public key.
3. Client validates the certificate/trust chain and requested identity.
4. The authenticated public-key information supports establishment of a secure TLS connection.
5. Session traffic can then be protected with negotiated encryption keys.

Explain why the certificate matters in addition to encryption.

Encryption alone does not prove who is at the other endpoint. A validated certificate binds an identity to public-key information through a trusted certification process, helping the client detect impostor servers and establish an authenticated secure connection.

Paper 1 checkpoint

A2.1 + A2.2 retrieval

9 / 12

A2 cumulative checkpoint · Fundamentals + architecture

1. Describe one difference between LAN and VPN.

2. Describe the function of a router and a switch.

3. Name the four TCP/IP layers in order from application toward the local network.

4. Compare client-server and peer-to-peer for online banking.

5. Explain how VLAN segmentation can improve security.

  1. A LAN describes a local network scope; a VPN is a protected logical private connection over another network.
  2. A switch forwards local LAN traffic; a router forwards packets between IP networks.
  3. Application → transport → internet → network interface.
  4. Client-server gives central authoritative control/security/auditing suited to banking; peer-to-peer lacks that centralized service authority and is harder to govern consistently.
  5. VLANs separate device groups logically so access between them can be controlled, reducing exposure and containing local traffic.
Paper 1 checkpoint

A2.3 + A2.4 retrieval

10 / 12

A2 cumulative checkpoint · Transmission + security

1. Describe NAT.

2. Compare fibre and twisted pair using at least three required factors.

3. Explain packet switching.

4. Explain when dynamic routing is preferable to static routing.

5. Discuss one strength and one limitation of a firewall.

  1. NAT translates between private internal and public addressing, allowing many internal devices to share limited public address resources and facilitating internet communication.
  2. Fibre offers higher bandwidth/range and low interference/attenuation but usually costs more/is harder to install; twisted pair is cheaper/easier for local use but has lower range/bandwidth and more interference/attenuation limits.
  3. Data is split into packets with routing/control information; packets are forwarded independently through switches/routers and reassembled at the destination.
  4. Dynamic routing is preferable when a network is large/changing because routes can adapt automatically and scale, despite greater resource use/complexity and convergence time.
  5. Firewalls enforce traffic policy and block many unauthorized connections, but cannot stop all threats such as social engineering, compromised endpoints or attacks carried inside permitted traffic.
2027 Case Study

Use A2 terminology to structure research

11 / 12
2027 Case Study research checkpointA generative-image service may transfer prompts, images, model requests or stored assets across networks/cloud infrastructure. Treat this as a security-design research task rather than assuming one architecture.

Build a defensible security note

Visionary Studios may send prompts, generated images and stored assets across cloud/network infrastructure. Build a short security note that identifies two plausible A2 network risks, matches each to relevant countermeasures, explains where encryption/TLS/certificates help, and states one remaining limitation.

Identify two plausible network risks from the A2 vulnerability list.
Match each risk to one or more A2 countermeasures.
State where encryption/TLS/certificates would protect network communication.
State one limitation that still requires monitoring/testing/training or another control.

Example structure: network communications could face MitM or insecure-protocol risks, so encrypted protocols with TLS and validated digital certificates can protect confidentiality/authentication. Accounts could face phishing/weak-authentication risk, so MFA, email filtering and employee training help. DDoS mitigation and firewalls can protect availability/boundary access. These controls are not complete: software must still be updated/tested, endpoints monitored and users trained because allowed traffic or compromised accounts can bypass perimeter controls.

Homework

Finish the learning cycle

12 / 12

IA — main task

Continue IA Criterion E/final-submission work according to your schedule. Make evaluation evidence explicitly reference success criteria and feasible improvements.

Paper 1 — short practice

Redo only the A2 checkpoint areas you missed, then make a vulnerability → countermeasure table covering every required A2.4 item.

Checkpoint

Complete a short IA authenticity/progress check: explain one implementation decision, one test and one evaluation judgement in your own words.