A-level Computer Science revision · Exchanging data

Network security

The idea

Threats include malware (viruses, worms, trojans), phishing, DDoS attacks, SQL injection and hacking. Protections include firewalls (filtering traffic by rules), proxy servers (hiding internal addresses and filtering content), encryption, strong passwords, anti-malware and keeping software updated.

  1. Name the threat and how it works.
  2. Match a protection to it.
  3. SQL injection: validate and sanitise inputs.

Watch out A worm spreads by itself across networks; a virus needs to attach to a host file.

See it worked

Worked example

How does a firewall protect a network?

  1. It inspects incoming and outgoing traffic.
  2. It blocks packets that break its rules, such as blocked ports.
  3. Unauthorised access is prevented.

Answer It filters traffic using rules, blocking unauthorised access

Your turn

Question 11 mark

Which threat sends huge numbers of requests to overwhelm a server?

Choose one
Question 21 mark

Which malware disguises itself as legitimate software?

Choose one
Question 32 marks

Explain how to prevent SQL injection.

Write your answer, then see a model answer
  1. Name the method.
  2. Explain how it works.

Answer Validate and sanitise all user input and use parameterised queries, so input is treated as data rather than as SQL commands.

A-level Computer Science Pro, OCR H446

A-level Computer Science Pro

£119 once

Price rises to £199 on 1 January. Save £80 by joining before then.

At least 12 months of access

By paying you agree to our Terms and get access straight away, which ends your 14-day cancellation right.

No VAT is charged.

Independent practice for OCR A-level Computer Science (H446), not endorsed by OCR.

Privacy · Terms