Skip to the worksheet
Revision Library
Choose a subject

Network Security - Worksheets, Questions and Revision

14 original exam-style questions - 7 pages of questions with a full mark scheme - free printable PDF.

Grades 1-9

This topic is chapter 6 of GCSE Computer Science Topic Workbook 1 and chapter 6 of GCSE Computer Science 10-Minute Tests.

Revision Library
revisionlibrary.co.uk
GCSE · Computer Science

1.6 Network Security

OCR J277 · Calculators not allowed · about 70 minutes
Total Marks
Name: _______________________________    Date: ____ / ____ / ______
Answer ALL questions. Show all your working.
1
Explain the difference between phishing and pharming as methods of attacking a network user.
(Total for Question 1 is 3 marks)
2
State three separate offences created by the Computer Misuse Act (1990).
(Total for Question 2 is 3 marks)
3
A retailer's website becomes unavailable to customers after being targeted by a denial-of-service (DoS) attack.
(a)Describe what happens during a denial-of-service attack.(2)
(b)State one negative effect that a successful denial-of-service attack could have on the retailer's business.(1)
(Total for Question 3 is 3 marks)
4
A cafe offers customers a wireless network.
(a)State one reason why an unencrypted (open) wireless network is a greater security risk than a wired network.(1)
(b)State the name of a protocol that could be used to encrypt traffic on the cafe's wireless network, and give one reason why using it is preferable to leaving the network open.(2)
(Total for Question 4 is 3 marks)
5
Every device on a network is identified, in part, by its IP address and MAC address.
(a)One octet of an IPv4 address has the denary value 182. Convert 182 to an 8-bit binary number.(2)
(b)Part of a device's MAC address is written in hexadecimal as 2F. Convert 2F to an 8-bit binary number.(2)
(c)Convert 2F (hexadecimal) to a denary number.(1)
(Total for Question 5 is 5 marks)
6
State three different physical security measures that an organisation could use to protect the server room containing its network hardware. For each measure, justify why it helps to keep the servers secure.
(Total for Question 6 is 6 marks)
7
A secondary school's network is regularly targeted by malware, often arriving as attachments in phishing emails sent to staff and students.

Discuss the effectiveness of anti-malware software and staff/student training as methods of protecting the school's network against malware threats. In your answer you should consider the strengths and weaknesses of each method, and reach a justified conclusion about which is likely to be more effective.
(Total for Question 7 is 6 marks)
8
Write an algorithm, using pseudocode, that could be used to control access to an account, as follows:
- the correct password is already stored in a variable called realPassword
- the user is asked to enter a password
- the user is allowed up to 3 attempts in total
- if the user enters the correct password within 3 attempts, the algorithm should output "Access granted" and stop asking for a password
- if the user has still not entered the correct password after 3 attempts, the algorithm should output "Account locked"

You may use any valid pseudocode. Marks will be awarded for correct logic; minor syntax errors will not be penalised.
(Total for Question 8 is 6 marks)
9
A company director states: "As long as we encrypt all the data stored on our network, our network will be secure."

Evaluate this statement.
(Total for Question 9 is 6 marks)
10
A company issues staff with a PIN to unlock the office door keypad.
(a)The PIN is exactly 4 digits long, and each digit can be any digit from 0 to 9 (digits may repeat). Calculate the total number of different PINs that are possible.(2)
(b)The company is considering changing to a password made of exactly 4 characters, where each character can be any of the 26 lowercase letters, 26 uppercase letters or 10 digits (62 characters in total, repetition allowed). Write down the calculation, without evaluating it, that would give the total number of different passwords possible.(1)
(c)Using your answers to parts (a) and (b), explain why changing to the password system in part (b) would make the office door system more resistant to a brute-force attack.(2)
(Total for Question 10 is 5 marks)
11
A large organisation employs ethical hackers to carry out penetration testing on its network.
(a)State the purpose of penetration testing.(2)
(b)Describe the difference between black-box and white-box penetration testing.(2)
(Total for Question 11 is 4 marks)
12
Explain how a firewall helps to protect a school's internal network from threats on the internet.
(Total for Question 12 is 3 marks)
13
The pseudocode below is intended to check whether a password is "Strong" (at least 8 characters long and containing at least one digit) or "Weak". It uses the OCR Exam Reference Language string method substring(start, numChars), which returns numChars characters from the string, starting at position start (the first character in a string is at position 0), and the property length, which gives the number of characters in a string.

password = "Cod3"
length = password.length
hasDigit = FALSE
count = 0
for i = 0 to length - 1
currentChar = password.substring(i, 1)
if currentChar ≥ "0" AND currentChar ≤ "9" then
hasDigit = TRUE
endif
count = count + 1
next i
if length ≥ 8 AND hasDigit == TRUE then
  print("Strong")
else
  print("Weak")
endif
(a)Complete a trace table to show the values of currentChar, hasDigit and count for each pass of the loop, when password is set to "Cod3".(4)
(b)State the output produced when this algorithm is run with password set to "Cod3".(1)
(Total for Question 13 is 5 marks)
14
A network manager says: "Relying on just one security measure, such as a firewall, is not enough to keep a network secure. We need several different, overlapping measures working together." This approach is often called a 'layered' or 'defence in depth' approach.

Explain why using several different security measures together is more effective than relying on a single measure.
(Total for Question 14 is 4 marks)
Mark scheme · 1.6 Network Security

Question 1

  • Phishing involves sending fraudulent/fake communications (e.g. emails or texts) that appear to be from a legitimate source, to trick the user into revealing information or clicking a link (1)B1
  • Pharming redirects a user from a genuine website to a fake one (e.g. by altering DNS records or a hosts file) (1)B1
  • Pharming does not rely on the user being tricked into clicking anything and can happen without any deliberate action by the user, whereas phishing relies on deceiving the user into acting (1)B1
  • Answer: Phishing = fraudulent messages trick the user into acting; pharming = malicious redirection to a fake website, often without any action needed from the user.

Question 2

  • Any one of: unauthorised access to computer materialB1
  • Any one of: unauthorised access with intent to commit or facilitate a further offenceB1
  • Any one of: unauthorised modification of computer material; or unauthorised acts with intent to impair (or reckless as to impairing) the operation of a computerB1
  • Answer: Any three of: unauthorised access to data; unauthorised access with intent to commit a further offence; unauthorised modification of data; unauthorised acts impairing the operation of a computer.

Question 3

  • (a) An attacker floods a server/network with a very large number of (useless/fake) requests or traffic (1)B1
  • (a) This overwhelms the server's resources/bandwidth so it cannot respond to genuine/legitimate users (1)B1
  • (a) Answer: An attacker overwhelms a server with excessive traffic/requests so it cannot process genuine requests, taking the service offline for legitimate users.
  • (b) Any sensible effect, e.g. loss of sales/revenue while the site is down; damage to the company's reputation; customers unable to place orders; cost of restoring the serviceB1
  • (b) Answer: Loss of sales/revenue because customers cannot access the website to make purchases (or other valid effect).

Question 4

  • (a) Any nearby device can intercept/eavesdrop on the wireless signal without needing physical access to the cabling, because data travels through the air and can be picked up by anyone in rangeB1
  • (a) Answer: Data sent over an open wireless network can be intercepted by any device within range, without needing physical access to network cables.
  • (b) WPA (or WPA2 or WPA3) namedB1
  • (b) Encrypts data sent over the wireless network so it cannot easily be read/understood if intercepted by an attackerB1
  • (b) Answer: WPA2 (or WPA3); it encrypts wireless traffic so intercepted data cannot easily be read by an attacker.

Question 5

  • (a) Correct method shown, e.g. 128+32+16+4+2 = 182 or place-value table attemptedM1
  • (a) 10110110 caoA1
  • (a) Answer: 10110110
  • (b) 2 -> 0010 and F -> 1111 (nibbles identified/attempted)M1
  • (b) 00101111 caoA1
  • (b) Answer: 00101111
  • (c) 47 cao (ft from (b) if binary answer evaluated consistently)B1
  • (c) Answer: 47

Question 6

  • Measure 1, e.g. keycard/biometric access lock on the server room doorB1
  • Justification 1, e.g. only authorised staff whose card/fingerprint is registered can enter, preventing unauthorised physical accessB1
  • Measure 2, e.g. CCTV cameras covering the server roomB1
  • Justification 2, e.g. records who enters/leaves and can deter, or help identify, anyone attempting unauthorised accessB1
  • Measure 3, e.g. security guards/visitor sign-in log at the building entrance, or locked server cabinets/cagesB1
  • Justification 3, e.g. ensures only checked/verified individuals can reach the area containing the server roomB1
  • Answer: Any three distinct physical security measures (e.g. keycard/biometric locks, CCTV, security guards, locked server cabinets, alarmed doors), each with a valid justification.

Question 7

  • Level 1 Basic, undeveloped comments about anti-malware software and/or staff training are given, with little or no comparison. Little relevant technical terminology is used. No conclusion, or an unsupported conclusion.1-2
  • Level 2 Some relevant strengths and/or weaknesses of both methods are described, showing some understanding of how each works. Some comparison is attempted, but the discussion may be one-sided or lack detail in places. Relevant technical terminology is generally used correctly. A conclusion is given, with limited justification.3-4
  • Level 3 A well-balanced discussion clearly describes strengths and weaknesses of both anti-malware software and staff training, showing clear understanding of how each reduces the risk of malware infection and the limitations of each. Relevant technical terminology is used correctly throughout. A justified conclusion is reached that is well supported by the points made.5-6
  • Indicative content:
    • Anti-malware software can automatically scan files/emails/attachments and detect or quarantine known malware using a database of virus definitions/signatures
    • Anti-malware software needs to be regularly updated to recognise new malware; it may not detect brand new (zero-day) malware whose signature is not yet known
    • Anti-malware runs continuously/automatically without relying on staff remembering to act, so it protects against mistakes even when staff are careless
    • Staff/student training teaches users to recognise suspicious emails/attachments/links (e.g. unexpected sender, spelling mistakes, urgent requests) and not to open or click them
    • Training relies on human behaviour, which is not always reliable; a single tired, rushed or careless user can still open a malicious attachment even after training
    • Training does not stop malware that arrives through other routes (e.g. infected USB sticks, software vulnerabilities) that do not require a user to be tricked
    • The two methods are complementary: anti-malware provides a technical safety net, while training reduces the number of malicious emails opened in the first place
    • A justified conclusion might state that using both together is most effective, since anti-malware alone cannot stop all new threats and training alone cannot guarantee human error is eliminated

Question 8

  • Uses a loop (e.g. WHILE or FOR) that will not run more than 3 times in totalM1
  • Inputs a password from the user inside the loop, on each passM1
  • Compares the entered password to realPasswordM1
  • Correctly counts/tracks the number of incorrect attempts (e.g. increments a counter only when incorrect, or an equivalent valid method)M1
  • Stops asking for further passwords and outputs "Access granted" as soon as a correct password is entered (within the 3 attempts)M1
  • Outputs "Account locked" if, and only if, 3 incorrect attempts have been madeM1
  • Answer:
    realPassword <- "Sunfl0wer"
    attempts <- 0
    accessGranted <- FALSE
    WHILE attempts < 3 AND accessGranted = FALSE
      password <- INPUT("Enter password: ")
      IF password = realPassword THEN
        accessGranted <- TRUE
      ELSE
        attempts <- attempts + 1
      ENDIF
    ENDWHILE
    IF accessGranted = TRUE THEN
      OUTPUT "Access granted"
    ELSE
      OUTPUT "Account locked"
    ENDIF

Question 9

  • Level 1 A basic, one-sided response that only considers what encryption does, with little or no reference to other threats. Little or no use of relevant technical terms.1-2
  • Level 2 The response explains what encryption protects against, and identifies at least one other type of threat that encryption does not prevent, but the argument is not fully developed or the two sides are not clearly linked to a conclusion.3-4
  • Level 3 A well-developed evaluation clearly explains what encryption protects against and identifies several other categories of threat (e.g. malware, social engineering, physical access, poor access control) that encryption does not prevent, and reaches a clear, justified conclusion about whether the statement is correct. Technical terminology is used accurately throughout.5-6
  • Indicative content:
    • Encryption protects the confidentiality of data: if data is intercepted (e.g. during transmission) or a storage device is stolen, it cannot be read/understood without the correct key
    • Encryption does not stop malware (viruses, worms, trojans, ransomware) infecting the network and disrupting or destroying data/systems
    • Encryption does not stop social engineering attacks (phishing, blagging, shouldering, pharming) that trick a user into revealing a password or other information, which could then be used to access even encrypted data legitimately
    • Encryption does not stop a denial-of-service attack, which prevents legitimate users from accessing services regardless of whether the data is encrypted
    • Encryption does not control who is allowed to access which data on the network (this requires user access levels/permissions), or prevent unauthorised physical access to hardware
    • Encrypted data can still be deleted, corrupted or held to ransom, so encryption alone does not guarantee the availability or integrity of data, only its confidentiality
    • A justified conclusion should recognise that encryption is one useful, valid layer of protection (particularly for confidentiality) but is not sufficient on its own; a combination of measures (encryption, anti-malware, firewalls, access levels, training, physical security) is needed for a network to be considered secure

Question 10

  • (a) 104 oe (e.g. 10 x 10 x 10 x 10 seen)M1
  • (a) 10000 caoA1
  • (a) Answer: 10000
  • (b) 624 oeB1
  • (b) Answer: 624
  • (c) 624 gives a much larger number of possible combinations than 104, because a larger character set increases the number of possible combinations (ft from (a)/(b))B1
  • (c) An attacker trying every combination (brute force) would therefore need far more attempts/take far longer to find the correct password, making the attack much less likely to succeed in a practical timeB1
  • (c) Answer: 624 (14776336) is far greater than 104 (10000), so brute-forcing the password would take much longer, making the system more secure.

Question 11

  • (a) To deliberately/legally attempt to find weaknesses/vulnerabilities in a network (1)B1
  • (a) So that these vulnerabilities can be fixed before a real/malicious attacker can exploit them (1)B1
  • (a) Answer: To deliberately test a network to find security weaknesses so they can be fixed before a real attacker exploits them.
  • (b) In black-box testing the tester is given no prior knowledge of the network/system (e.g. no login details, network diagrams or source code) and must test as an outside attacker would (1)B1
  • (b) In white-box testing the tester is given full knowledge of the network/system (e.g. credentials, diagrams, source code) before testing (1)B1
  • (b) Answer: Black-box testing: tester has no prior knowledge of the system. White-box testing: tester is given full knowledge/access before testing.

Question 12

  • A firewall sits between the internal network and an external network (e.g. the internet), monitoring incoming and outgoing traffic/packets (1)B1
  • It checks traffic against a set of rules (e.g. allowed IP addresses, ports or protocols) (1)B1
  • It blocks (or flags) any traffic/packets that do not meet the rules, preventing unauthorised access to or from the network (1)B1
  • Answer: A firewall monitors traffic entering/leaving the network and blocks any traffic that does not meet its security rules, preventing unauthorised access.

Question 13

  • (a) i=0: currentChar = C, hasDigit = FALSE, count = 1B1
  • (a) i=1: currentChar = o, hasDigit = FALSE, count = 2B1
  • (a) i=2: currentChar = d, hasDigit = FALSE, count = 3B1
  • (a) i=3: currentChar = 3, hasDigit = TRUE, count = 4 (ft correct identification of a digit character)B1
  • (a) Answer:
    icurrentCharhasDigitcount
    0CFALSE1
    1oFALSE2
    2dFALSE3
    33TRUE4
  • (b) "Weak" ft from part (a) if length and hasDigit evaluated consistentlyB1
  • (b) Answer: Weak

Question 14

  • No single security measure can protect against every type of threat (e.g. a firewall controls network traffic but does not stop a user being tricked by phishing, or malware arriving on a USB stick) (1)B1
  • If one measure fails or is bypassed (e.g. an attacker gets past the firewall), other measures (e.g. anti-malware, access levels, encryption) can still stop or limit the attack (1)B1
  • Different measures target different stages/types of attack (e.g. prevention, detection and limiting damage), so combining them covers more of the possible ways a network could be attacked (1)B1
  • This reduces the overall risk/likelihood of a successful attack and/or reduces the impact if one layer is breached, compared with depending on a single measure (1)B1
  • Answer: No single measure covers every threat; combining measures means that if one is bypassed, others still provide protection, reducing the overall risk and impact of a successful attack.

Mark your answers

Check answers without an account. Some answers can be checked automatically; use the mark scheme to mark the rest.

Question 1

3 marks
Did your answer earn the marks?

Question 2

3 marks
Did your answer earn the marks?

Question 3

3 marks
Did your answer earn the marks?

Question 4

3 marks
Did your answer earn the marks?

Question 5

5 marks
Did your answer earn the marks?

Question 6

6 marks
Did your answer earn the marks?

Question 7

6 marks
Did your answer earn the marks?

Question 8

6 marks
Did your answer earn the marks?

Question 9

6 marks
Did your answer earn the marks?

Question 10

5 marks
Did your answer earn the marks?

Question 11

4 marks
Did your answer earn the marks?

Question 12

3 marks
Did your answer earn the marks?

Question 13

5 marks
Did your answer earn the marks?

Question 14

4 marks
Did your answer earn the marks?
Mark my answers

Keep going

Worksheets are written for Revision Library and come with a full mark scheme; a few English packs quote an out-of-copyright text, and name it on the page. Exam board names and specification codes say which qualification a pack suits: we are not affiliated with, endorsed by or approved by any exam board, and no past-paper question is reproduced here. Rights queries: hello@revisionlibrary.co.uk