IB Computer Science · A2 · Networks
A2.4 Network security
Describe common threats to network security, explain firewalls and encryption, identify ways to protect data and outline why authentication matters.
1/6Malware and phishing exploit both software and people
- Malware and phishing exploit both software and people
- Attacks can also block services or capture data
- A firewall filters traffic using a set of rules
- Encryption makes intercepted data unreadable without the key
- Several measures work together to protect network data
- Authentication proves who is asking for access
- Check your recall
- Practice: 10 questions
Part 1 of 6: Malware and phishing exploit both software and people
A network is only useful while its data stays safe and available. Several threats put that at risk. Malware is software designed to harm a system or steal data. Viruses, worms and ransomware are types of malware. Ransomware locks files until a payment is made.
Not every attack targets software. Phishing tricks a person into giving away information, usually through a message that looks genuine. A fake email asking you to confirm your password is a typical case.
Key terms · tap one for its definition
malware
Malware is software designed to damage a system, disrupt its operation or steal data without the owner’s permission.
phishing
Phishing is an attack that uses deceptive messages to trick people into revealing sensitive information or performing harmful actions.
Part 2 of 6: Attacks can also block services or capture data
Other attacks aim at the network itself. In a denial-of-service attack, an attacker floods a system with requests so genuine users cannot reach it. If the requests come from many devices, the attack is called distributed. Websites and servers are common targets.
Data can also be stolen while it travels. Interception means capturing data as it crosses the network. Unprotected wireless traffic is easier to intercept than data on a cable, because radio signals spread through the air.
A third threat is unauthorised access. Here a person without permission uses an account or system, often through weak or stolen passwords.
Key terms · tap one for its definition
denial-of-service attack
A denial-of-service attack is an attempt to make a system or network unavailable by overwhelming it with requests.
interception
Interception is the capture of data in transit by someone who is not its intended recipient.
unauthorised access
Unauthorised access is the use of a system, account or data by someone who has not been given permission.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: B · Worked explanation
Part 3 of 6: A firewall filters traffic using a set of rules
To block unwanted traffic, many networks place a barrier at their edge. A firewall inspects the packets entering and leaving a network. It allows or blocks each one according to rules. These rules may use addresses or protocols.
A firewall can be a dedicated device or software on a computer. One rule could block all traffic from a known malicious address. Another could allow web traffic but refuse file transfers.
Key term
firewall
A firewall is a device or program that filters network traffic according to a set of rules, allowing or blocking each packet.
Part 4 of 6: Encryption makes intercepted data unreadable without the key
A firewall cannot help if data is captured in transit. Encryption solves this by scrambling readable data, called plaintext, into unreadable ciphertext. It uses a set of steps together with an encryption key, a secret value that controls them. Without the matching key, intercepted ciphertext is of little use to an attacker.
Worked example
A simple shift cipher
- Shift C three places: D, E, F. So C becomes F.
- Shift A three places: B, C, D. So A becomes D.
- Shift T three places: U, V, W. So T becomes W.
Answer: The ciphertext is FDW. Shifting each letter back by 3 decrypts it.
The shift above is only an illustration. Real encryption uses far stronger methods, but the idea is the same: the key controls both locking and unlocking. Encryption also protects data stored on a device, not only data in transit.
Key terms · tap one for its definition
encryption
Encryption is the process of converting plaintext into ciphertext using an algorithm and a key, so that only authorised parties can read it.
encryption key
An encryption key is a secret value that controls how an encryption method scrambles and unscrambles data.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: D · Worked explanation
Part 5 of 6: Several measures work together to protect network data
No single tool protects a network. Security comes from layers, each covering a different weakness. If one layer fails, another can still limit the damage.
- Access rights limit what each user may read, change or delete
- software updates close known weaknesses
- antivirus software detects and removes malware
- a backup keeps a separate copy for recovery
- staff training reduces mistakes such as falling for phishing
Together these measures reduce the risk, but none removes it completely. Layering them means one failure does not expose everything. Regular review keeps each layer up to date.
Key terms · tap one for its definition
access rights
Access rights are the permissions that define which resources each user may read, change or delete.
backup
A backup is a separate copy of data, kept so that it can be restored after loss or damage.
Part 6 of 6: Authentication proves who is asking for access
Access rights only work if the system knows who the user is. Authentication is the process of checking a user’s identity before granting access. It also lets a system record who did what. A password is the most common method, but it can be guessed, stolen or reused.
Stronger systems ask for more than one proof. Multi-factor authentication combines different kinds of evidence, drawn from these three groups.
- something you know, such as a password or PIN
- something you have, such as a phone or security token
- something you are, such as a fingerprint or face scan
Key terms · tap one for its definition
authentication
Authentication is the process of verifying that a user is who they claim to be before access is granted.
multi-factor authentication
Multi-factor authentication is a login process that requires evidence from two or more different kinds, such as knowledge, possession or a physical trait.
Check your recall[15 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.Describe[4 marks]
Describe two common threats to network security.
Show mark schemeHide mark scheme
Model answer
Malware is software designed to harm a system or steal data, such as ransomware that locks files. Phishing uses deceptive messages to trick people into revealing information.
- 1 mark for naming a first threat, such as malware or phishing
- 1 mark for describing how the first threat works
- 1 mark for naming a second, different threat
- 1 mark for describing how the second threat works
- 2.Explain[3 marks]
Explain how a firewall helps to protect a network.
Show mark schemeHide mark scheme
Model answer
A firewall inspects the packets entering and leaving the network. It allows or blocks each packet according to rules. Blocking unwanted or malicious traffic keeps attackers out.
- 1 mark for stating that it inspects packets entering and leaving the network
- 1 mark for stating that it allows or blocks them according to rules
- 1 mark for linking blocking to keeping out unwanted or malicious traffic
- 3.Explain[3 marks]
Explain how encryption protects data that is intercepted.
Show mark schemeHide mark scheme
Model answer
Encryption converts plaintext into ciphertext. Only someone with the correct key can decrypt it. An interceptor without the key therefore cannot read the data.
- 1 mark for stating that encryption converts plaintext into ciphertext
- 1 mark for stating that decryption needs the correct key
- 1 mark for concluding that an interceptor without the key cannot read the data
- 4.Outline[2 marks]
Outline two measures, other than a firewall or encryption, that protect data on a network.
Show mark schemeHide mark scheme
Model answer
Regular backups allow data to be restored after loss. Access rights limit what each user can read, change or delete.
- 1 mark for outlining one valid measure, such as backups, software updates, antivirus or access rights
- 1 mark for outlining a second, different valid measure
- 5.Justify[3 marks]
Justify why a bank uses multi-factor authentication instead of passwords alone.
Show mark schemeHide mark scheme
Model answer
A password can be guessed, stolen or reused. Multi-factor authentication adds a different kind of evidence, such as a code from a phone. A stolen password alone then does not give access.
- 1 mark for stating that passwords can be guessed, stolen or reused
- 1 mark for stating that a second, different kind of evidence is also required
- 1 mark for concluding that a stolen password alone does not give access

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the 2 quick checks in the note above.
EasyIdentify[1 mark]
Show answer and explanation
Answer: A · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: C · Worked explanation
MediumIdentify[1 mark]
Show answer and explanation
Answer: A · Worked explanation
Medium[1 mark]
Show answer and explanation
Answer: D · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: A · Worked explanation
Hard[2 marks]
Show answer and explanation
Answer: C · Worked explanation