Track progress, take quizzes and save notes on this lesson.

Free forever · no card needed

Start free
Intermediate

Internet Security

4.9.3.2 Internet security

Aligned to the AQA 7517 specification

Level
Intermediate
Reading time
6 min
Published
13 June 2026
Updated
1 July 2026
On this page
  1. 1.Firewalls
  2. 2.Symmetric Encryption
  3. 3.Asymmetric Encryption and Key Exchange
  4. 4.Digital Certificates
  5. 5.Digital Signatures
  6. 6.Malware: Viruses, Worms, and Trojans
  7. 7.Common Exam Mistakes

Key takeaways

  • In symmetric encryption the same key encrypts and decrypts; its fundamental weakness is the key distribution problem of sharing the key securely before communicating.
  • In asymmetric encryption each party has a public key (shared openly) and a private key (kept secret); a message encrypted with the public key can only be decrypted with the corresponding private key.
  • Asymmetric encryption is typically used to securely exchange a symmetric key, which then encrypts the bulk of the communication because symmetric is faster; this hybrid approach is how HTTPS works.
  • A digital signature encrypts the hash of a message with the sender's private key, proving authenticity and integrity; it does not encrypt the message itself and provides no confidentiality.
  • A digital certificate binds a public key to an entity and is signed by a trusted Certificate Authority, letting a browser verify the public key genuinely belongs to the server and not an attacker.

Firewalls

A firewall monitors and controls network traffic according to security rules. It acts as a barrier between a trusted internal network and untrusted external networks (the Internet).

Packet filtering

Examines each packet's header (source/destination IP, source/destination port, protocol). Allows or blocks packets based on a rule set.

  • Example rule: block all incoming TCP packets to port 22 (SSH) from external IPs
  • Fast and efficient; cannot inspect payload content
  • Stateless — each packet is evaluated independently

Proxy server (application-layer firewall)

Acts as an intermediary: the client connects to the proxy, which makes the request on the client's behalf.

  • Hides the internal network (client IP is not exposed to external servers)
  • Can cache responses, filter content, and log requests
  • Slower than packet filtering due to full connection handling

Stateful inspection

Tracks the state of active connections. A packet is only allowed if it belongs to an established, legitimate connection.

  • Maintains a state table of current connections (source/dest IP, port, protocol, connection state)
  • Detects attacks that exploit connection state (e.g. unsolicited replies to non-existent requests)
  • More intelligent and secure than simple packet filtering

Symmetric Encryption

In symmetric encryption, the same key is used for both encryption and decryption.

Advantages: fast; computationally efficient for large amounts of data.

Key distribution problem: how do the two parties share the key securely before they can communicate? If the key is intercepted during transmission, all future communication is compromised. This is the fundamental weakness of symmetric encryption.

Examples: AES (Advanced Encryption Standard).

Asymmetric Encryption and Key Exchange

In asymmetric encryption (public-key cryptography), each party has a key pair: a public key (shared openly) and a private key (kept secret).

Core property: a message encrypted with the public key can only be decrypted with the corresponding private key, and vice versa.

How asymmetric encryption solves the key distribution problem:

  1. Bob publishes his public key openly
  2. Alice encrypts a message (or a symmetric session key) with Bob's public key
  3. Only Bob — with his private key — can decrypt it

Key exchange: asymmetric encryption is typically used to securely exchange a symmetric key. The symmetric key then encrypts the bulk of the communication (because symmetric is faster). This hybrid approach is how HTTPS works.

Digital Certificates

A digital certificate is an electronic document that binds a public key to an entity (a person, organisation, or server). It is signed by a trusted Certificate Authority (CA).

Contents of a certificate:

  • Subject's public key
  • Subject's identity (domain name, organisation)
  • Issuing CA's identity
  • Validity period
  • CA's digital signature (authenticates the certificate)

Purpose: when you connect to https://bank.com, your browser checks the server's certificate to verify that the public key you receive genuinely belongs to bank.com (not an attacker). Without certificates, a man-in-the-middle attacker could substitute their own public key.

Certificate chain: certificates are validated up a chain of trust: the CA's certificate is signed by a root CA, which is pre-trusted by your browser/OS.

Worth saving these ideas?

Turn what you've read into instant revision cards. Free to get started.

Make flashcards

Digital Signatures

A digital signature proves:

  1. Authenticity — the message came from the claimed sender
  2. Integrity — the message has not been altered in transit

How digital signing works:

Sender:

  1. Computes hash = H(message)
  2. Encrypts the hash with their private key, producing the signature
  3. Transmits message + signature

Receiver:

  1. Decrypts the signature with the sender's public key, giving the expected hash
  2. Independently computes actual hash = H(received message)
  3. If the expected hash equals the actual hash, the signature is valid

The private key is used to sign (not to encrypt the message itself); the public key is used to verify the signature.

Malware: Viruses, Worms, and Trojans

Malware is malicious software designed to damage, disrupt, or gain unauthorised access to systems.

TypeHow it spreadsKey characteristic
VirusInserts itself into other programs; spreads when infected program runsRequires a host program; spreads through user action (copying files, sharing media)
WormSelf-replicates across networks without a host programExploits network vulnerabilities; spreads automatically without user action
TrojanDisguises itself as legitimate softwareDoes not self-replicate; relies on user installing it

All three exploit software vulnerabilities — flaws in operating systems, applications, or network services that allow code to execute without authorisation.

Protection:

  • Keep software patched and updated (closes known vulnerabilities)
  • Use antivirus/antimalware software
  • Apply the principle of least privilege (limit what software can access)
  • Firewalls block malicious network traffic

Common Exam Mistakes

1. Confusing symmetric and asymmetric key usage

In symmetric encryption, the same key encrypts and decrypts. In asymmetric, the public key encrypts and the private key decrypts (for confidentiality) — or the private key signs and the public key verifies (for signatures). Swapping public and private key roles in an exam answer loses marks.

2. Stating digital signatures encrypt the message

A digital signature encrypts the hash of the message — not the message itself. The message travels in plaintext (or separately encrypted). The signature proves authenticity and integrity, not confidentiality.

3. Confusing viruses and worms

A virus needs a host program and spreads through human actions (sharing files). A worm spreads automatically across networks without a host. The distinction is self-replication over a network without user action.

4. Confusing proxy firewall and proxy server

All three firewall types (packet filtering, proxy, stateful inspection) provide different levels of protection. A proxy server is one firewall type that acts as a middleman — not all proxy servers are firewalls, but a proxy firewall uses the proxy mechanism for security purposes.

Key terms

Firewall
A device that monitors and controls network traffic according to security rules, acting as a barrier between a trusted internal network and untrusted external networks.
Packet filtering
A firewall technique that examines each packet's header and allows or blocks it based on a rule set; it is stateless and cannot inspect payload content.
Proxy server
An application-layer firewall that acts as an intermediary, making requests on the client's behalf to hide the internal network and optionally cache, filter, and log requests.
Stateful inspection
A firewall technique that tracks the state of active connections in a state table and only allows a packet if it belongs to an established, legitimate connection.
Symmetric encryption
Encryption in which the same key is used for both encryption and decryption; fast but subject to the key distribution problem.
Asymmetric encryption
Public-key cryptography in which each party has a public key shared openly and a private key kept secret, with each key able to decrypt what the other encrypted.
Key distribution problem
The challenge in symmetric encryption of sharing the key securely before communication; if intercepted in transit, all future communication is compromised.
Digital certificate
An electronic document that binds a public key to an entity and is signed by a trusted Certificate Authority.
Certificate Authority (CA)
A trusted body that signs digital certificates, validated up a chain of trust to a root CA pre-trusted by the browser or OS.
Digital signature
A value formed by encrypting the hash of a message with the sender's private key, proving the message's authenticity and integrity.
Malware
Malicious software designed to damage, disrupt, or gain unauthorised access to systems, exploiting software vulnerabilities.

Frequently asked questions

In symmetric encryption the same key is used to encrypt and decrypt, which is fast but creates the key distribution problem. In asymmetric encryption each party has a public key and a private key, where a message encrypted with the public key can only be decrypted with the matching private key.

No. A digital signature encrypts the hash of the message with the sender's private key, not the message itself. The message travels in plaintext or separately encrypted, and the signature proves authenticity and integrity rather than confidentiality.

A virus inserts itself into a host program and spreads through user action like copying files. A worm self-replicates across networks automatically without a host or user action. A Trojan disguises itself as legitimate software, does not self-replicate, and relies on the user installing it.

Generate revision on any topic you study

Type any topic you're studying and Aicademy generates a complete lesson, quiz, and flashcard set, personalised to your level.

Lessons on anything

Structured, level-matched lessons on any topic you study

Practice quizzes

Find out what you actually know before the exam does

Flashcard sets

Lock in key concepts with instant revision cards

Ask Aica

Stuck on something? Get a clear explanation, any time

Prev

The Internet and DNS

Next

TCP/IP and Application Layer Protocols

Related lessons

Top students don’t revise more. They revise what counts.

Start revising free

Free to start. No card needed.