Network Security - Worksheets, Questions and Revision
14 original exam-style questions - 7 pages of questions with a full mark scheme - free printable PDF.
Network Security revision guideMore GCSE Computer Science practiceMock exams
This topic is chapter 6 of GCSE Computer Science Topic Workbook 1 and chapter 6 of GCSE Computer Science 10-Minute Tests.
1.6 Network Security
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.
- 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.
Evaluate this statement.
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") print("Weak")Explain why using several different security measures together is more effective than relying on a single measure.
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:
i currentChar hasDigit count 0 C FALSE 1 1 o FALSE 2 2 d FALSE 3 3 3 TRUE 4 - (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.