Back to the topic

The mark scheme starts on a new page, so you can print pages one and two for a student and keep the last page yourself. Everything prints in black on white whichever theme you are using.

GCSE Computer Science · 1.4

Network Security: Threats and Prevention

Section A: 10 multiple choice questions, 10 marks. Section B: 5 written questions, 19 marks. Total 29 marks.

Name

Class

Date

Mark  / 29

Section A

Circle the letter of the correct answer. One mark each.

  1. 1What is the key difference between a virus and a worm?1
    1. AA worm only affects servers
    2. BThere is no difference
    3. CA worm spreads by itself across a network, a virus needs a host file and user action
    4. DA virus spreads by itself, a worm needs a host file
  2. 2A user receives an email claiming to be from their bank asking them to confirm their password. This is an example of:1
    1. APhishing
    2. BA denial of service attack
    3. CA brute force attack
    4. DSQL injection
  3. 3Which prevention method is most effective against a brute force attack?1
    1. AUsing a wired connection
    2. BLimiting the number of login attempts and using long strong passwords
    3. CEncrypting the hard disk
    4. DInstalling a firewall
  4. 4What does encryption achieve?1
    1. APasswords can never be guessed
    2. BMalware cannot be installed
    3. CData cannot be intercepted at all
    4. DIntercepted data cannot be understood without the key
  5. 5A website allows users to type into a search box which is passed straight into a database query. Which attack does this enable?1
    1. AA worm
    2. BDenial of service
    3. CShouldering
    4. DSQL injection
  6. 6What is the purpose of penetration testing?1
    1. ATo restrict which files a user can open
    2. BTo find weaknesses in a system before real attackers do
    3. CTo encrypt data in transit
    4. DTo remove all malware from a network
  7. 7How do user access levels improve security?1
    1. AUsers can only access what their role requires, limiting the damage from a compromised account
    2. BThey prevent phishing emails from arriving
    3. CThey encrypt every file on the network
    4. DThey block all incoming network traffic
  8. 8A DDoS attack differs from a DoS attack because:1
    1. AIt encrypts the victim's files
    2. BIt uses many compromised machines at once, making it harder to block
    3. CIt only targets wireless networks
    4. DIt requires physical access to the server
  9. 9Which measure best protects against staff being tricked into revealing passwords?1
    1. ASwitching to fibre optic cable
    2. BIncreasing the server's bandwidth
    3. CA more powerful firewall
    4. DRegular staff training and awareness of social engineering
  10. 10What does a firewall do?1
    1. AEncrypts data before transmission
    2. BBacks up files automatically
    3. CInspects incoming and outgoing traffic and blocks anything not meeting its rules
    4. DScans files for known malware signatures

Section B

Answer in the space provided. The number of marks tells you how many separate points to make.

  1. 1DescribeDescribe what is meant by social engineering and give one example.3
  2. 2ExplainExplain the difference between a computer virus and a worm.3
  3. 3ExplainA company's website has a login form. Explain how an SQL injection attack could be carried out against it and describe how the company could prevent this.4
  4. 4DescribeA school network has been affected by malware. Describe three measures the school could take to reduce the risk of this happening again.6
  5. 5ExplainExplain why encryption is used when data is transmitted over a public wireless network.3

Mark scheme

Section A

1C2A3B4D5D6B7A8B9D10C

Section B

1 Describe what is meant by social engineering and give one example. 3

One mark for each of the following, to a maximum of 3.

  • Manipulating or tricking people rather than attacking the technology
  • The aim is to obtain confidential information or access
  • Gives a valid example such as phishing, blagging or shouldering

Model answer. Social engineering is the practice of manipulating people rather than attacking a system's technology, in order to obtain confidential information such as passwords or to persuade someone to grant access they should not. It works because human trust and helpfulness can be exploited in ways that technical defences cannot prevent. One example is phishing, in which an attacker sends an email that appears to come from a legitimate organisation such as a bank, containing a link to a convincing fake login page, so that the victim enters their username and password and hands them directly to the attacker.

2 Explain the difference between a computer virus and a worm. 3

One mark for each of the following, to a maximum of 3.

  • A virus attaches itself to a host file or program
  • A virus requires a user action such as opening the file in order to spread
  • A worm replicates and spreads across a network on its own without user action

Model answer. A virus is malware that attaches itself to a host file or program, and it only spreads when a user carries out an action such as opening that file, running the program or sharing it with somebody else. A worm, by contrast, is self replicating and spreads itself across a network without needing any user action or host file at all, which means it can move between machines far faster and infect a whole network in a very short time.

3 A company's website has a login form. Explain how an SQL injection attack could be carried out against it and describe how the company could prevent this. 4

One mark for each of the following, to a maximum of 4.

  • The attacker enters SQL code into an input field instead of normal data
  • If the input is not checked it is passed into the database query and executed
  • This could allow the attacker to bypass the login or read, change or delete data
  • Prevention: validate and sanitise all user input, or use parameterised queries

Model answer. An SQL injection attack is carried out by typing SQL code into an input field on the login form rather than a normal username or password. If the website builds its database query by inserting that text directly and does not check what has been entered, the attacker's code becomes part of the query and is executed by the database. For example, entering a fragment that makes the condition always evaluate to true could allow the attacker to log in as any user without knowing a password, and further injected statements could read, modify or delete the contents of the customer table. The company can prevent this by validating and sanitising all user input so that characters and keywords used in SQL are rejected or escaped, and more reliably by using parameterised queries, which keep the user's data strictly separate from the SQL code so that it can never be executed as an instruction.

4 A school network has been affected by malware. Describe three measures the school could take to reduce the risk of this happening again. 6

One mark for each of the following, to a maximum of 6.

  • Install anti malware software
  • Keep it updated so new threats are recognised
  • Use a firewall to filter network traffic
  • Apply user access levels so students cannot install software
  • Train staff and students to recognise suspicious emails and attachments
  • Keep operating systems and applications patched

Model answer. First, the school should install anti malware software on every machine and configure it to update automatically. Anti malware compares files against a database of known malware signatures and monitors for suspicious behaviour, quarantining anything it detects, but new malware appears constantly so the signature database must be kept current or recent threats will pass straight through. Second, the school should use a firewall between its network and the internet. A firewall inspects all incoming and outgoing traffic and blocks anything that does not meet its rules, which prevents malware from communicating with external servers and stops many infections reaching the network in the first place. Third, the school should set user access levels so that students and most staff cannot install software or alter system files. This means that even if a user is tricked into running something malicious, the malware inherits only that account's restricted permissions and cannot spread across the whole system. Alongside these, training staff and students to recognise suspicious emails and attachments addresses the human route that most infections actually take, and keeping operating systems and applications patched closes the software vulnerabilities that malware exploits.

5 Explain why encryption is used when data is transmitted over a public wireless network. 3

One mark for each of the following, to a maximum of 3.

  • Data on a wireless network travels through the air and can be intercepted
  • Encryption scrambles the data using a key so it is unreadable
  • Without the key an attacker who intercepts the data cannot understand it

Model answer. On a public wireless network the data travels through the air as radio waves, and anyone within range with the right software can capture that traffic without the sender being aware, which is known as packet sniffing. Encryption protects against this by scrambling the data using a key before it is transmitted, so that what is actually broadcast is meaningless. Encryption does not prevent the data from being intercepted, but an attacker who captures it has only unreadable ciphertext, and without the decryption key they cannot recover the original information such as passwords or bank details.