Clastify logo
Subjects
Features
Review
HOT
Tutoring

A2.4: Network security

Master IB Computer Science A2.4: Network security with notes created by examiners and strictly aligned with the syllabus.

This content can't be printed from the browser. Use Export PDF with Pro for an offline copy.

IB Syllabus Requirements for Network security

A2.4.1

How effectively firewalls protect networks

A2.4.2

Common network vulnerabilities

HL

A2.4.3

Network security countermeasures

HL

A2.4.4

Encryption and digital certificates

A2.4.1

HOW EFFECTIVELY FIREWALLS PROTECT NETWORKS

A firewall can reduce unwanted network access. How well it works depends on its rules, how it is configured and where it sits in the network. To discuss its effectiveness, weigh what it can control against what it cannot detect or prevent.

Inspecting and filtering traffic

A firewall inspects network traffic and permits or blocks it according to configured rules. This security system can filter incoming traffic entering a network as well as outgoing traffic leaving it.

Rules can use the source address, destination address, port number and protocol. Some firewalls inspect application traffic in greater detail too.

Filtering approachHow it worksMain consequence
WhitelistPermits explicitly approved addresses or services; denies other trafficRestricts access tightly, but legitimate new services need approval
BlacklistBlocks explicitly prohibited addresses or servicesAllows flexible access, but a previously unknown unwanted source may pass
RulesSet conditions for permitting or denying trafficProtection depends on choosing suitable conditions and maintaining them
For example, a workshop network might allow incoming connections to its public booking service but deny direct incoming access to staff computers. Its outgoing rules could allow approved services while blocking connections to prohibited destinations. In the figure, traffic is inspected in both directions before it is permitted or denied.

Strengths and limitations

StrengthLimitation or condition
Rejects connections that do not meet the rulesA harmful request can pass if it satisfies those rules
Restricts which services are reachableServices that must remain accessible still need their own protection
Applies consistent controls at a network boundaryTraffic that does not pass through that boundary is not controlled there
Can record permitted and blocked activityRecords need monitoring; they do not stop an incident themselves
Can restrict outgoing traffic as well as incoming trafficOverly permissive rules weaken protection; overly restrictive rules disrupt legitimate work

A permitted message isn't automatically safe: a firewall cannot establish that every message it allows is harmless. Encrypted content may also be unavailable for inspection unless the firewall has an appropriate inspection arrangement. Simply installing a firewall is therefore not enough. Effective protection requires maintained rules and additional safeguards.

Network address translation

Network address translation (NAT) replaces address information in packets as they pass between networks. In a typical private network, it lets internal devices share a public IP address while using private addresses internally.

NAT reduces the direct exposure of internal addresses. With typical address-and-port translation, an unsolicited incoming connection has no matching translation entry. It cannot simply reach an internal device unless a mapping has been configured. NAT is not a substitute for a firewall, though. Hiding an address does not prove that allowed traffic is safe, and configured mappings can expose internal services.

Key terms: firewall, incoming traffic, outgoing traffic, whitelist, blacklist, rules, network address translation (NAT).

A2.4.2

COMMON NETWORK VULNERABILITIES

HL

For each vulnerability or attack, describe the weakness or method involved and the harm it can cause. The terms aren't all the same kind of thing: some describe weaknesses, others describe attack techniques. Malware is harmful software.

Disruption, interception and deception

TermWhat happensPossible consequence
Distributed denial of service (DDoS)Many devices send traffic or requests towards a target at the same time, overwhelming its available resourcesLegitimate users cannot access the service
Insecure network protocolsCommunication rules offer inadequate protection, such as sending sensitive information without encryptionAn observer may read or alter the exposed information
MalwareMalicious software runs on a device and performs unwanted actionsData may be stolen, damaged or made inaccessible; the device may be used to attack others
Man-in-the-middle (MitM) attackAn attacker places themselves between communicating parties to intercept or potentially alter their exchangeConfidentiality and integrity may be lost; each party may believe it is communicating directly with the other
Phishing attackA deceptive message or website poses as a trusted source to persuade someone to reveal information or take an unsafe actionCredentials may be stolen or harmful software installed
DDoS targets availability. A MitM attack, by contrast, targets a communication exchange. The figure compares many attacking devices overwhelming one service with an attacker intercepting communication between a client and a server.

Attacks through application input

SQL injection occurs when a system treats untrusted input as part of a database command rather than only as data. An attacker may change the intended operation to expose, modify or delete records.

With Cross-site scripting (XSS), a web page includes attacker-supplied script that another user's browser then executes. This can allow actions or access to information within that user's web session.

The key difference is where the injected instructions execute. SQL injection changes database operations; XSS causes script to run in a browser. The figure shows the different destinations for malicious input.

Weaknesses that leave systems exposed

TermWeakness or attack mechanism
Unpatched softwareKnown flaws remain because available fixes have not been installed; attackers can exploit those flaws
Weak authenticationIdentity checks are easy to defeat, for example through guessable passwords or unchanged default credentials
Zero-day exploitAn attack uses a software vulnerability before a fix is available, so defenders have no applicable patch at that time

Don't use unpatched software and zero-day exploits interchangeably. With unpatched software, an available fix has not been applied. A zero-day exploit uses a flaw for which no fix is yet available.

Key terms: distributed denial of service (DDoS), insecure network protocols, malware, man-in-the-middle (MitM), phishing, SQL injection, cross-site scripting (XSS), unpatched software, weak authentication, zero-day exploits.

A2.4.3

NETWORK SECURITY COUNTERMEASURES

HL

When describing a countermeasure, explain what it does and which risk it reduces. Controls protect different points in a system. Effective security therefore combines them instead of relying on a single measure.

Protecting applications, traffic and services

CountermeasureHow it provides protection
Content security policiesTell browsers which sources a site permits for scripts and other content, reducing opportunities for unauthorized script execution and XSS
DDoS mitigation toolsFilter detected attack traffic or distribute the load, allowing legitimate requests to keep reaching a service
Email filtering solutionsCheck messages, links and attachments, then block or flag suspected phishing, malicious content and unwanted email
Encrypted protocolsProtect data in transit so intercepted traffic is not readily readable; suitable protocols also support integrity and authentication
Input validation: filteringRejects or removes input that contains prohibited content or patterns
Input validation: whitelistingAccepts input only if it matches explicitly permitted types, formats, lengths or values
Update softwareInstall security fixes that remove known vulnerabilities from applications, operating systems and network devices
Virtual private networks (VPNs)Protect traffic between the tunnel's endpoints by creating an encrypted tunnel across an untrusted network

On a booking form, whitelisting could require a quantity to be a whole number within an allowed range. Filtering might instead reject prohibited characters. Validation reduces unsafe input; it doesn't guarantee that every possible attack has been excluded.

A VPN protects the tunnel, not everything its user does afterwards. DDoS protection and email filtering have limits too: they reduce risk but may miss attacks or block legitimate activity.

Controlling access and proving server identity

CountermeasureHow it provides protection
Complex password policiesSet suitable length and complexity requirements so passwords are harder to guess or crack
Multifactor authentication (MFA)Requires evidence from different factor categories, such as something known and something possessed; a stolen password alone is therefore insufficient
Secure socket layer (SSL) certificateThe legacy term for a certificate that authenticates a server in an SSL connection; SSL itself is obsolete and should not be used
Transport layer security (TLS) certificateBinds a server identity to a public key so a client can check that identity when establishing a TLS connection

Two passwords still count as something known, not two different authentication factors. Pairing a password with a code from a separately held device combines different factors.

A certificate does not itself encrypt all traffic. Its role is to support authentication while the connection is established; TLS then provides protected communication. Modern certificates are often marketed as “SSL certificates” even when they are used with TLS.

Detection versus prevention

An intrusion detection system (IDS) watches activity for signs of intrusion and produces alerts. An intrusion prevention system (IPS) can also act automatically—for example, by dropping suspicious traffic.

The figure contrasts monitoring and alerting with active blocking. Either system can misclassify traffic. A missed attack leaves a threat undetected; an incorrect block can disrupt legitimate use.

Wireless access controls

Wireless measures may include media access controllers (MAC), whitelists and blacklists. For device filtering, wireless access controls commonly use MAC addresses. A whitelist permits listed devices; a blacklist denies them. These are examples, not the only wireless security measures.

An attacker can copy an allowed device's address, which limits MAC-address filtering. The filter controls admission but does not encrypt wireless traffic.

Regular testing and employee training

Regular security testing checks whether controls work in practice and whether changes have introduced weaknesses. Findings should lead to corrective action, followed by further testing. Passing an earlier test does not establish permanent security.

Employee training helps staff recognize phishing and handle credentials safely. It also helps them follow security procedures and report suspicious activity promptly. Threats and working practices change, so staff need refresher training.

The figure links regular security testing to corrective action and further testing, alongside employee training and prompt reporting. Technical controls and informed people support one another.

Key terms: content security policies, complex password policies, DDoS mitigation tools, email filtering solutions, encrypted protocols, input validation, filtering, whitelisting, IDS, IPS, MFA, SSL certificate, TLS certificate, update software, VPNs, regular security testing, employee training, MAC, whitelists, blacklists.

A2.4.4

ENCRYPTION AND DIGITAL CERTIFICATES

Describe how encryption uses an algorithm and a key to transform data, then distinguish how symmetric and asymmetric systems use keys. Digital certificates add identity checking. Encryption alone does not establish who is at the other end of a connection.

From plaintext to ciphertext

Encryption uses an algorithm and an encryption key to turn readable data, called plaintext, into an unreadable form, called ciphertext. Decryption recovers the plaintext using the appropriate key.

In the figure, plaintext passes through encryption to become ciphertext. Decryption turns it back into plaintext. An interceptor may obtain the ciphertext, but recovering its meaning without the required key should not be practical.

Symmetric and asymmetric cryptography

FeatureSymmetric cryptographyAsymmetric cryptography
KeysUses the same secret key for encryption and decryptionUses a mathematically related public-key and private-key pair
SharingBoth communicating parties need the shared secretThe public key can be distributed; the private key must remain secret
Encrypting a confidential messageSender encrypts with the shared key; receiver decrypts with that keySender encrypts with the recipient's public key; recipient decrypts with the corresponding private key
Practical strengthEfficient for protecting large amounts of dataSupports communication without first sharing one secret key
Main difficultyDistributing and protecting the shared keyEstablishing whose public key it is and protecting the private key; operations are generally more computationally demanding

Suppose a sender encrypts a message using the recipient's public key. An observer who has that public key still cannot use it to decrypt the message. The recipient needs the corresponding private key.

Public and private keys also support digital signatures. A private key creates a signature; the public key checks it. Signing is a different operation from encrypting a confidential message to a recipient.

Digital certificates and secure connections

A digital certificate is an electronic document that binds an identity to a public key and carries its issuer's digital signature. A client can use it to check whether a presented public key belongs to the intended server.

Certificates normally include the server identity and public key, along with the issuer and validity period. A certificate authority issues and signs them. The client must be able to establish trust in that issuer.

The figure shows a simplified sequence for setting up a secure connection between a client and a server:
  1. The server presents its digital certificate to the client.
  2. The client checks the issuer's signature and the validity period, then checks whether the server identity matches the intended destination. It also checks that the certificate has not been revoked.
  3. If the checks succeed, the connection setup uses asymmetric cryptography to authenticate the server and establish shared session keys.
  4. Symmetric encryption protects the subsequent application data efficiently.

The certificate supports trust in the server's identity. It does not prove that all content supplied by that server is safe. If certificate checks fail, the connection should not be treated as authenticated.

Encryption key management

Encryption key management covers how cryptographic keys are created and distributed, stored and replaced, and withdrawn throughout their use. Even strong encryption can fail if its keys are exposed or lost.

  • Generate keys securely so that attackers cannot predict them.
  • Use only protected methods to distribute shared secret keys; verify who owns public keys.
  • Restrict access to private keys and shared secret keys, including any backups.
  • Replace keys periodically and whenever compromise is suspected.
  • Revoke affected certificates and withdraw compromised keys so they are no longer trusted.
  • Keep authorized recovery access where necessary, then securely destroy keys that are no longer needed.

With a stolen secret key, an attacker may be able to read protected information or impersonate its owner. Losing a decryption key may leave legitimate data permanently inaccessible. Key management must protect both confidentiality and authorized access.

Key terms: encryption, decryption, plaintext, ciphertext, symmetric cryptography, asymmetric cryptography, public key, private key, digital certificate, certificate authority, encryption key management.

Were those notes helpful?

A2.3 Data transmissions