Skip to topic
    ← Back to course topics

    Internet security — AQA A-Level Computer Science

    Internet security encompasses the protocols, technologies, and practices designed to safeguard data transmission and network infrastructure against unauthorised access and cyber threats. In AQA A-Level Computer Science, this centres on asymmetric and symmetric encryption, digital signatures, digital certificates, firewalls, and mitigating vulnerabilities like DDoS and malware.

    Internet security explained

    A digital certificate is a file that binds a public key to the identity of an organisation or person, and it is issued by a trusted certificate authority (CA).

    Read the full explanation

    To obtain one, the applicant generates a public and private key pair, then sends the public key and identity details in a certificate signing request to a CA. The CA checks the applicant's identity, then signs the certificate with its own private key so that anyone can verify it using the CA's public key. A digital signature is created by the sender hashing a message and encrypting that hash with their private key, and it is used to confirm the sender's identity and show the message has not been altered. The receiver decrypts the signature with the sender's public key, hashes the received message, and compares the two hashes. A match confirms authenticity and integrity; a mismatch shows tampering or a fake sender.

    Your focus

    1. Explain how digital certificates and digital signatures are obtained and used.

    Which command word is this?

    Set out the mathematical or logical reasons how or why a security mechanism works. Marks are awarded for detailed step-by-step links (e.g. hashing -> encrypting with private key -> comparing hashes).

    Internet security exam tips

    Topic Overview

    Internet security encompasses the theoretical principles, cryptographic protocols, and architectural mechanisms engineered to protect data in transit and networked devices from interception, tampering, and disruption. In AQA A-Level Computer Science, this area bridges computer networks and computational logic, requiring students to master the mathematical foundation of encryption, the role of trusted intermediaries, and multi-layered network defences.

    Understanding these security concepts is critical in an era dominated by cloud computing, ubiquitous web transactions, and pervasive cyber threats. Students examine not only how secure communication channels are established using hybrid cryptosystems and digital certificates, but also how vulnerabilities such as malware, social engineering, and distributed attacks compromise modern computing systems.

    Key Concepts
    • →Symmetric vs Asymmetric Encryption: Symmetric uses a single shared secret key for encryption and decryption; asymmetric utilizes mathematically linked public and private key pairs.
    • →Digital Signatures and Hashing: A digital signature is produced by encrypting a message hash with the sender's private key, guaranteeing message integrity, authenticity, and non-repudiation.
    • →Digital Certificates and CAs: Issued by trusted Certificate Authorities (CAs) to bind an entity's identity to their public key, containing the serial number, expiry date, public key, and CA digital signature.
    • →Network Firewalls: Inspect traffic across network perimeters via packet filtering (stateless checks on IP, port, protocol), stateful inspection (monitoring connection state/context), and application proxies.
    • →Cyber Threats: Classifications of threats including viruses, worms, trojans, phishing, pharming, and Distributed Denial of Service (DDoS) attacks.
    Marking Points
    • Describes the key pair being generated before a certificate is requested
    • States that a certificate authority verifies the applicant's identity before issuing the certificate
    • Explains that the CA signs the certificate with its private key
    • Explains that the sender creates a hash of the message and encrypts it with their private key to form the signature
    • Explains that the receiver decrypts the signature with the sender's public key and compares hashes to confirm integrity
    Examiner Tips
    • 💡Write the obtaining steps and usage steps as separate ordered sequences.
    • 💡Name which key is used at each stage: the applicant's private key, the CA's private key, and the sender's public key.
    • 💡Include the hash comparison as the final step of verification.
    • 💡Always state the ownership and type of key explicitly. Never simply write 'encrypt with the key' — write 'Alice encrypts using Bob's public key'.
    • 💡Remember the distinction between confidentiality and authenticity. Encrypting with a recipient's public key achieves confidentiality. Encrypting with a sender's private key achieves authentication/non-repudiation.
    • 💡When explaining how digital signatures verify integrity, make sure to detail both sides: generating the hash at the sender end, and generating and matching the hash at the recipient end.
    Common Mistakes
    • Confuses the signature's purpose with encryption of the whole message; the signature is a hash encrypted with the private key, and the message itself is not necessarily encrypted. Correct by stating which part is encrypted.
    • Says the receiver decrypts the signature with their own private key; the sender's public key is used. Correct by naming the matching key.
    • Describes the certificate as a copy of the private key; the certificate contains the public key and identity details. Correct by naming the public key.
    • Believing that public keys must be kept private: Public keys are intended for public distribution and can be freely published; only private keys must remain strictly confidential.
    • Assuming firewalls detect and remove malware: Firewalls monitor and control network traffic based on transmission rules and port access, but they generally do not scan file contents for viruses or malicious payloads; this is the role of anti-malware software.
    • Confusing viruses with worms: A virus requires a host file and human intervention (such as running an infected executable) to replicate, whereas a worm is a standalone self-replicating program that spreads across networks autonomously without user interaction.
    Revision Plan
    1. 1Day 1-2: Master cryptographic fundamentals — compare symmetric and asymmetric encryption, key exchange problems, and computational overheads.
    2. 2Day 3-4: Diagram and write out step-by-step procedures for digital signatures, hashing algorithms, and digital certificates issued by CAs.
    3. 3Day 5-6: Study network perimeter defences, comparing packet filtering, stateful inspection, and proxy servers.
    4. 4Day 7: Review cyber attack vectors (malware types, phishing, pharming, DoS/DDoS) and test knowledge with past AQA paper scenario questions.
    Exam Question Types
    • 📋Step-by-step sequence questions: Detail the precise chronological sequence of key usages in SSL/TLS handshakes, digital signature verification, or encrypted email transmission.
    • 📋Comparative analysis: Compare symmetric and asymmetric encryption in terms of speed, resource utilisation, key distribution, and typical practical use cases.
    • 📋Contextual security evaluation: 6 to 9 mark scenarios evaluating network vulnerability to DDoS, eavesdropping, or man-in-the-middle attacks and recommending technical solutions.
    Command Word Expectations (AQA)
    Explain

    Set out the mathematical or logical reasons how or why a security mechanism works. Marks are awarded for detailed step-by-step links (e.g. hashing -> encrypting with private key -> comparing hashes).

    Compare

    Identify specific technical similarities and differences between two security technologies (e.g. symmetric vs asymmetric encryption), structuring points around metrics like speed, key management, and security.

    Discuss

    Explore multiple perspectives on a security problem or mitigation strategy, examining trade-offs such as computational overhead, user convenience, and defence efficacy before providing a justified conclusion.

    How Students Lose Marks (Examiner Pitfalls)
    Pitfall: Confusing which keys are used for encryption vs digital signatures in asymmetric cryptography.
    ❌ Weak Answer (Loses Marks):The sender encrypts the digital signature with the recipient's public key so only they can read it.
    Example improved answer:To create a digital signature, the sender hashes the message and encrypts that hash digest with the sender's private key. The recipient decrypts the signature using the sender's public key and compares it to a newly generated hash of the received message to verify authenticity and integrity.
    Examiner Tip: Always state whose key is being used (sender or recipient) and whether it is the public or private key. For message confidentiality use the recipient's public key; for digital signatures/authentication use the sender's private key.
    Pitfall: Imprecisely explaining how packet filtering firewalls operate by omitting specific header checks.
    ❌ Weak Answer (Loses Marks):A firewall blocks bad packets and viruses from getting into the computer.
    Example improved answer:A packet-filtering firewall inspects incoming and outgoing packet headers against predefined rules. It filters packets based on source IP address, destination IP address, source port, destination port, and protocol type, dropping or accepting packets accordingly.
    Examiner Tip: Specify at least three exact header attributes (source IP, destination IP, port number, protocol) when describing packet inspection rather than using vague terms like 'dangerous traffic'.
    Step-by-Step Worked Solutions

    Question: Alice wants to send a confidential contract to Bob across an insecure network and ensure non-repudiation. Describe the step-by-step process of using asymmetric encryption, hashing, and digital signatures to achieve both confidentiality and integrity.

    1. 1.Step 1: Alice creates the contract and generates a fixed-length cryptographic hash digest of the document using a hashing algorithm (e.g. SHA-256).
    2. 2.Step 2: Alice encrypts the hash digest with her own private key to create the digital signature, providing authentication and non-repudiation.
    3. 3.Step 3: Alice appends the digital signature to the contract and encrypts both the contract and signature using Bob's public key to ensure confidentiality.
    4. 4.Step 4: Bob receives the cipher text and decrypts it using his own private key, revealing the plaintext contract and the digital signature.
    5. 5.Step 5: Bob decrypts the digital signature using Alice's public key to recover Alice's original hash digest.
    6. 6.Step 6: Bob hashes the decrypted contract independently using the same hashing algorithm and compares his calculated hash to the decrypted hash digest. If they match, integrity is confirmed and the sender's identity is verified.
    Final Answer: Confidentiality is achieved by encrypting the message with Bob's public key (only Bob's private key can decrypt it). Integrity and non-repudiation are achieved by signing the message hash with Alice's private key (verified with Alice's public key).

    Question: Explain how a Distributed Denial of Service (DDoS) attack operates and discuss why it is significantly harder to mitigate than a standard Denial of Service (DoS) attack.

    1. 1.Step 1: Define the mechanism of a DDoS attack. A malicious actor infects multiple internet-connected devices (often IoT devices or compromised hosts) with malware, creating a 'botnet' under the control of a command-and-control server.
    2. 2.Step 2: Explain the execution. The attacker commands the zombie devices in the botnet to simultaneously flood the target server with excessive requests (e.g. SYN floods or UDP floods), consuming bandwidth, memory, or CPU resources until the server crashes or becomes unresponsive to legitimate users.
    3. 3.Step 3: Contrast with DoS. In a standard DoS attack, traffic originates from a single IP address or host, which can be quickly detected and blocked using basic firewall IP filtering rules.
    4. 4.Step 4: Explain mitigation difficulty. In a DDoS attack, malicious traffic originates from thousands of geographically distributed and legitimate-looking IP addresses. Simple IP blacklisting is ineffective as it risks blocking genuine users, and the sheer volume of distributed traffic can overwhelm ISP-level upstream links before reaching local firewalls.
    Final Answer: A DDoS attack utilizes a botnet of compromised hosts to flood a target with distributed traffic. It is far harder to mitigate than a standard DoS because traffic comes from thousands of varied IP addresses, making blacklisting impractical and causing bandwidth saturation before edge firewalls can process rules.
    Active Recall Memory Test
    Which key does a sender use to encrypt a digital signature, and what does this prove to the recipient?
    Key Fact: The sender uses their own private key. This proves authenticity (the message genuinely came from the sender) and non-repudiation.
    What are three key pieces of information contained within a standard digital certificate?
    Key Fact: The certificate owner's public key, the owner's identity/domain details, the certificate expiration date, and the digital signature of the issuing Certificate Authority (CA).
    How does a proxy server protect an internal corporate network from external threats?
    Key Fact: It acts as an intermediary, breaking direct connections between internal clients and external web servers by intercepting requests, hiding internal IP addresses, filtering content, and caching frequent requests.
    What primary difference separates stateful inspection firewalls from simple packet-filtering firewalls?
    Key Fact: Simple packet filtering inspects packets in isolation against static rules, whereas stateful inspection tracks the state of active network connections and context across packets.
    Frequently Asked Questions
    Why can't we just use symmetric encryption for everything on the internet?
    Symmetric encryption requires both parties to share the same secret key beforehand. Transmitting this secret key across an insecure medium like the internet creates the 'key distribution problem', as eavesdroppers could intercept it and compromise all communications. Asymmetric encryption solves this by allowing key exchange over public channels without exposing private keys.
    What is the difference between phishing and pharming?
    Phishing relies on social engineering, tricking victims via deceptive emails or messages into clicking links and entering sensitive information on fraudulent websites. Pharming is an infrastructure-level technical attack that infects DNS servers or local host files to invisibly redirect genuine web traffic to a bogus website, even if the user correctly typed the authentic URL.
    How does a Certificate Authority (CA) prevent Man-in-the-Middle (MITM) attacks?
    Without a CA, an attacker could intercept public key exchanges and substitute their own public key. A CA prevents this by digitally signing a server's digital certificate containing its authentic public key. Web browsers come preloaded with trusted root CA public keys, enabling the client to verify the cryptographic signature on the certificate and ensure the server's public key belongs to the legitimate domain.
    Can a firewall protect a computer from a Trojan horse?
    Generally, no. A Trojan typically disguises itself as legitimate software and is willingly downloaded and executed by a user, communicating over permitted ports (like port 80 or 443). Unless the firewall has advanced application-layer deep packet inspection or outgoing rule blocks, it treats the traffic as standard web activity; antivirus software is needed to detect Trojan signatures and behavioural anomalies.
    What does 'non-repudiation' mean in the context of digital security?
    Non-repudiation is the assurance that the creator or sender of a message cannot successfully deny having created or sent it. Because a digital signature can only be created using the sender's unique private key, a verified signature serves as mathematical proof of authorship that cannot be refuted unless the private key was stolen or compromised.