Scribe logoScribeNotes & practice
Sign inStart free
  1. Notes
  2. ›IB Computer Science
  3. ›A2 Networks
  4. ›A2.4 Network security

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.

  • 5 min read
  • 6 parts
  • 10 questions
  • Draft
Start a Quick 5 on this topic→Jump to the 10 questions
1/6Malware and phishing exploit both software and people
  1. 1Malware and phishing exploit both software and people
  2. 2Attacks can also block services or capture data
  3. 3A firewall filters traffic using a set of rules
  4. 4Encryption makes intercepted data unreadable without the key
  5. 5Several measures work together to protect network data
  6. 6Authentication proves who is asking for access
  7. Check your recall
  8. Practice: 10 questions
1

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.

Common mistake

Phishing is not a virus. It relies on a person making a mistake, so antivirus software alone cannot stop it.

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

2

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.

Part 2 done

Quick check

One question on the part you just read

Easy

Identify the term for software designed to harm a system or steal data.
Show answer and explanation

Answer: B · Worked explanation

Malware is software designed to harm a system or steal data. Phishing tricks people with deceptive messages rather than using harmful software, so it is the tempting wrong answer. A firewall filters traffic, and encryption scrambles data. Both are protections, not threats.
3

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.

Exam tip

A firewall controls traffic. It does not encrypt data, check who a user is, or remove malware that is already inside.

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

4

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.

Figure 1. Anyone who intercepts the data between the two stages sees only unreadable ciphertext.

Worked example

A simple shift cipher

Encrypt the word CAT by shifting each letter 3 places forward in the alphabet. The key is 3.
  1. 1
    Shift C three places: D, E, F. So C becomes F.
  2. 2
    Shift A three places: B, C, D. So A becomes D.
  3. 3
    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.

Go deeperSymmetric and asymmetric encryption

Symmetric encryption uses the same key to encrypt and decrypt. Both sides must therefore share the key safely.

Asymmetric encryption uses a public key to encrypt and a different private key to decrypt. Secure web connections often combine both kinds.

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.

Part 4 done

Quick check

One question on the part you just read

Easy

State the main purpose of a firewall.
Show answer and explanation

Answer: D · Worked explanation

A firewall inspects network traffic and allows or blocks it using rules. Converting plaintext into ciphertext is encryption, which is the tempting wrong answer. Keeping a spare copy of data is a backup. Checking a fingerprint is a form of authentication, not of traffic filtering.
5

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

6

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

Exam tip

Multi-factor means different kinds of evidence. Two passwords are still one kind and do not count.

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.

Note read

Check your recall[15 marks]

5 written questions. Answer each one in your head or on paper, then open the mark scheme.

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

3.

Easy·Identify[1 mark]

Identify an example of multi-factor authentication.
Show answer and explanation

Answer: A · Worked explanation

A password is something you know, and a code sent to a phone relies on something you have, so these are two different kinds of evidence. A second password or a longer PIN is the same kind again. A long password is still a single piece of evidence.
4.

Medium·Identify[1 mark]

Staff receive an email that appears to come from the IT team. It asks them to enter their passwords on a linked page. Identify the threat.
Show answer and explanation

Answer: C · Worked explanation

The email uses a deceptive message to trick people into revealing information, which is phishing. A denial-of-service attack floods a system with requests. Interception captures data in transit. Unauthorised access may follow phishing, but the email itself is the deception.
5.

Medium·Determine[2 marks]

Determine the ciphertext when the word BAD is encrypted with a forward shift of 3.
Show answer and explanation

Answer: C · Worked explanation

Shift each letter three places forward: B becomes E, A becomes D, and D becomes G, giving EDG. The text YXA shifts each letter three places backward. The text CBE shifts only one place. The text EDF miscounts the last letter by one place.
6.

Medium·Identify[1 mark]

A website becomes unreachable after receiving a huge number of requests from many devices at once. Identify the threat.
Show answer and explanation

Answer: A · Worked explanation

Overwhelming a system with requests so that genuine users cannot reach it is a denial-of-service attack. Phishing tricks people into giving information. Interception captures data in transit. Malware is harmful software, which is not what a flood of requests describes.
7.

Medium[1 mark]

A firm suffers a ransomware infection that locks its files. Which measure best helps it recover the files?
Show answer and explanation

Answer: D · Worked explanation

A recent backup is a separate copy that can be restored after files are locked or lost. A firewall rule filters traffic but cannot restore locked files. Encryption in transit protects data on the move. Multi-factor authentication checks identity at login. None of these brings back lost files.
8.

Hard·Determine[2 marks]

A message encrypted with a forward shift of 5 reads MJQQT. Determine the plaintext.
Show answer and explanation

Answer: B · Worked explanation

Decrypting means shifting each letter back by 5: M becomes H, J becomes E, Q becomes L, Q becomes L, and T becomes O, giving HELLO. The text ROVVY shifts forward by 5, which encrypts again. The text LIPPS shifts back only 1. The text GDKKN shifts back 6.
9.

Hard[2 marks]

Which statement about network protection is correct?
Show answer and explanation

Answer: A · Worked explanation

A firewall filters traffic by rules, but it cannot control what a user chooses to open. Encryption protects data in transit and does not stop a flood of requests. Multi-factor authentication checks identity at login, not email delivery. A backup helps recovery but does not prevent infection.
10.

Hard[2 marks]

A company wants to stop an outsider who has stolen an employee’s password from logging in. Which single measure is the most direct?
Show answer and explanation

Answer: C · Worked explanation

Multi-factor authentication asks for a second kind of evidence, so a stolen password alone is not enough to log in. Encrypting data in transit protects traffic but does not check identity at login. Antivirus software removes malware. Backups restore lost data but do not stop the login.

Keep going

Next topicA3.1 Database fundamentalsPrevious topicA2.3 Data transmission

More in A2 · Networks

  1. A2.1Network fundamentalsNotes · 10 questions
  2. A2.2Network architectureNotes · 10 questions
  3. A2.3Data transmissionNotes · 10 questions
  4. A2.4Network securityNotes · 10 questions

All IB Computer Science topics →

Draft: written by Scribe and checked automatically, not yet by a subject reviewer.

Practice questions are original, written by Scribe and checked automatically for correctness.

Topic codes follow the official numbering. Not endorsed by IB Diploma Programme or any exam board.

On this page

0/6 read

  1. 1Malware and phishing exploit both software and people
  2. 2Attacks can also block services or capture data
  3. 3A firewall filters traffic using a set of rules
  4. 4Encryption makes intercepted data unreadable without the key
  5. 5Several measures work together to protect network data
  6. 6Authentication proves who is asking for access
  7. Check your recall
  8. Practice: 10 questions
All coursesScribeHow it worksPricingPrivacyTerms

Notes and questions are written by Scribe in our own words. Topic codes follow the official course numbering so you can find your place. Not produced or endorsed by the IB, College Board, AQA, OCR, Pearson Edexcel or any exam board.

© 2026 Scribe