MadeByZack
Sign in
Back

1.4.2 Identifying and preventing vulnerabilities · Paper 1

Defences: keeping systems safe

Each section has pictures and things to try, then its key points and key words. Exam practice is at the end of the page.

You need to know

  • How to limit the threats in 1.4.1
  • For each method: what it prevents, and how
  • Penetration testing, anti-malware, firewalls, user access levels, passwords, encryption and physical security

You don't need to know

  • OCR doesn't rule anything out here.

The seven defences at a glance

Penetration testingExperts attack your own system to find weak spots before criminals do.Helps against: all attacks
Anti-malwareScans files, finds known malware, and removes or quarantines it.Helps against: malware
FirewallChecks data going in and out of a network and blocks anything its rules don't allow.Helps against: hackers, malware, DoS
User access levelsEach user can only see and change what they need to.Helps against: insiders, limits damage
PasswordsLong, strong passwords, and locking the account after several wrong tries.Helps against: brute-force
EncryptionScrambles data so it can't be read without the key.Helps against: data interception
Physical securityLocks, ID cards, CCTV and alarms on server rooms.Helps against: theft of hardware

Penetration testing

A company pays trusted experts to attack its own system, with permission, to find weak spots before criminals do. They then report what they found so it can be fixed.

Outside attacker test

Pretends to be a hacker on the internet with no inside knowledge. Can they get in?

Inside attacker test

Pretends to be a member of staff with a normal login. Can they reach data they shouldn't?

Exam tip: Penetration testing doesn't stop attacks by itself. It finds the weaknesses so the right defences can be added.

Try it

Is each one an outside attacker test or an inside attacker test?

  • Tries to break into the company website from home
  • Logs in as a receptionist and tries to open the pay records
  • Tries to guess staff passwords on the login page, with no account of their own
  • Uses a normal staff account to try to install software

Key points

Penetration testing

  • Penetration testing is an authorised, simulated attack on a system.
  • Experts try to break in, just as a criminal would.
  • The aim is to find weaknesses before real attackers do, so they can be fixed.
  • Tests can simulate an outsider (no inside knowledge) or an insider (an employee).

Key words

Say what each one means, then tap to check.

Anti-malware and firewalls

Anti-malware software

  • Scans files and downloads, and checks programs as they run
  • Compares them with a database of known malware
  • Quarantines (isolates) or deletes anything it finds

It must be updated often, or it won't know about new malware.

Firewall

  • Sits between a network and the internet
  • Checks every packet coming in and going out against a set of rules
  • Blocks anything the rules don't allow, e.g. unknown connections or certain ports

Can be hardware (built into a router) or software on a computer.

Try it

The school firewall's rules: allow web pages and email, block everything else coming in from unknown computers. Allow or block?

  • A student loading a BBC news page
  • An unknown computer trying to connect to the school server
  • Email arriving for a teacher
  • Thousands of odd requests from a botnet

Key points

Anti-malware software

Before this: 1.4.1Malware

  • Anti-malware software scans files for known malware.
  • If it finds something, it removes or quarantines it.
  • It can scan in real time as files are downloaded or opened.
  • It must be updated regularly so it knows about new threats.

Firewalls

  • A firewall monitors data coming into and going out of a network.
  • It blocks anything that doesn't match its security rules.
  • It can stop hackers getting in, and stop malware sending data out.
  • Firewalls can be hardware (a box on the network) or software (on a computer).

Key words

Say what each one means, then tap to check.

User access levels

Each user is given only the access they need. This limits the damage if an account is hacked, or if a member of staff is careless or dishonest. Access can be none, read only, or read and write.

StudentTeacherNetwork manager
Their own workRead and writeRead and writeRead and write
Class marksNoneRead and writeRead only
Install softwareNoNoYes

Try it

Should a student be able to do this?

  • Save files in their own folder
  • Change the marks in the class spreadsheet
  • Install a game on a school computer
  • Open another student's folder

Key points

User access levels

  • User access levels control what each user can see and do.
  • e.g. students can read files, teachers can edit them, the network manager can change everything.
  • Users only get the access they need for their job.
  • This reduces damage from mistakes, insider attacks or a stolen account.

Key words

Say what each one means, then tap to check.

Passwords

Strong passwords make brute-force and dictionary attacks take far too long to work.

  • Long: at least 8 characters, and longer is much better
  • A mix of capitals, lower case, numbers and symbols
  • Not a real word, name or date of birth
  • Different for every account, and changed if leaked

Extra protection

Lock after failed triese.g. 3 wrong passwords locks the account, which stops brute-force.
Two-factor authenticationA code sent to your phone as well, so a stolen password isn't enough.
CAPTCHAChecks a real person is logging in, not software.

Try the password strength tester in 1.4.1 Brute-force attacks.

Key points

Strong passwords

Before this: 1.4.1Brute-force attacks

  • Strong passwords are long and use a mix of upper case, lower case, numbers and symbols.
  • They shouldn't be real words or personal details like pets' names.
  • Use a different password for each account.
  • Systems can lock an account after several wrong attempts, and force regular changes.
  • Two-factor authentication adds a second check, such as a code sent to your phone.

Key words

Say what each one means, then tap to check.

Encryption

Encryption scrambles data using a key, so it can't be understood if it is intercepted or stolen. Only someone with the right key can decrypt it back to the original.

  • Plain text: the readable original
  • Cipher text: the scrambled version an attacker sees

Try it

A very simple cipher, just to show the idea of a key. Real encryption is far harder to break.

Key points

Encryption

Taught in more depth on: 1.3.2Wired, wireless and the rules for sending data

  • Encryption scrambles data using a key, so it can't be understood if intercepted.
  • Only someone with the correct key can decrypt it back to the original.
  • Used on wireless networks, HTTPS websites, messaging apps and to protect files on devices.
  • Encryption doesn't stop data being intercepted. It stops it being understood.

Key words

Say what each one means, then tap to check.

Physical security

Stops people getting to the hardware, so they can't steal or damage it or plug in a USB stick.

LocksLocked server rooms and cabinets
Swipe cards and biometricsOnly staff with a card or fingerprint get in
CCTV and alarmsDeter thieves and record what happens
Security staffCheck who comes into the building

Try it

Is each defence physical or software?

  • A locked server room
  • A firewall
  • A fingerprint scanner on the office door
  • Anti-malware
  • CCTV cameras
  • Encryption

Key points

Physical security

  • Physical security protects the actual hardware from theft, damage or unauthorised access.
  • Examples: locked server rooms, ID card or keypad entry, CCTV, alarms, security guards.
  • Also: locking computers to desks, and keeping backups in a separate building.
  • It stops attackers getting physical access to plug in devices or steal data.

Key words

Say what each one means, then tap to check.

Match the attack to the defence

  • MalwareAnti-malware, firewall
  • Social engineeringTrain staff to spot it
  • Brute-forceStrong passwords, lock after failed tries
  • Denial of serviceFirewall
  • Data interceptionEncryption
  • SQL injectionValidate input, access levels

Key points

Matching attacks to defences

Before this: 1.4.1Malware1.4.1Social engineering and phishing1.4.1Brute-force attacks1.4.1Denial of service attacks1.4.1Data interception and theft1.4.1SQL injection

  • Malware anti-malware software, firewalls, not opening unknown attachments.
  • Social engineering / phishing staff training.
  • Brute-force strong passwords, account lockout.
  • Denial of service firewalls.
  • Data interception encryption.
  • SQL injection input validation, user access levels.
  • Many threats penetration testing to find weaknesses first.

Also useful: Encryption

Exam practice

15 questions in the style of the OCR exam, 36 marks in total. Try each one, then check the mark scheme.

Penetration testing

Question 1[2 marks]
Describe the purpose of penetration testing.
Hint

Who does the attacking, are they allowed to, and what happens to what they find?

Describe means say what it is like or what happens. Make each point a separate fact.

2 marks: make 2 separate points.

Show mark scheme
  • Experts carry out an authorised / simulated attack…
  • …to find vulnerabilities so they can be fixed.

Don't accept: "It stops hackers". It finds the weak spots; other defences then stop the attacks.

1 mark for each point.

Anti-malware and firewalls

Question 2[2 marks]
Explain why anti-malware software must be updated regularly.
Hint

Anti-malware compares files with a list of known malware. What happens when brand new malware appears?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • New malware is created all the time…
  • …updates let it recognise / detect the new threats.

Don't accept: "To make it run faster". Updates add details of new malware so it can be spotted.

1 mark for each point.

Question 3[2 marks]
Describe what anti-malware software does when it finds malware.
Hint

It can do one of two things: get rid of it, or lock it away.

Describe means say what it is like or what happens. Make each point a separate fact.

2 marks: make 2 separate points.

Show mark scheme
  • It removes / deletes the malware…
  • …or quarantines it so it can't run.

Max 2

Question 4[2 marks]
Describe how a firewall protects a network.
Hint

Which way does the data travel, and what does the firewall compare it with?

Describe means say what it is like or what happens. Make each point a separate fact.

2 marks: make 2 separate points.

Show mark scheme
  • Checks incoming and outgoing data / traffic…
  • …against rules, and blocks anything unauthorised.

Don't accept: "It removes viruses". That is what anti-malware does.

1 mark for each point.

User access levels

Question 5[2 marks]
Explain why a school gives students and teachers different access levels.
Hint

What could go wrong if every student could change anything on the network?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • Students should only see / change what they need…
  • …e.g. they can't change grades, protecting data.

1 mark for each point.

Question 6[2 marks]
Describe two types of access a user could be given to a file.
Hint

Think of the access table: none, read only, or read and write.

Describe means say what it is like or what happens. Make each point a separate fact.

2 marks: make 2 separate points.

Show mark scheme
  • Read only: the user can open and view the file but not change it.
  • Read and write: the user can view and change the file.
  • No access: the user can't open the file at all.
  • Full control: the user can also delete the file or change who can use it.

1 mark for each type of access described, up to 2.

Passwords

Question 7[3 marks]
Give three rules for creating a strong password.
Hint

Think of the password tester: length, types of character, and what to avoid.

Give means give a short, clear answer. You don't need to explain it.

3 marks: make 3 separate points.

Show mark scheme
  • At least 8 / 12+ characters.
  • Mix of upper and lower case.
  • Include numbers and symbols.
  • Not a dictionary word / personal information.

Also accept: Use a passphrase of several random words.

Don't accept: "Make it hard to guess" with no rule.

1 mark each, max 3

Physical security

Question 8[2 marks]
Give two methods of physical security for a server room.
Hint

How would you stop someone simply walking into the server room?

Give means give a short, clear answer. You don't need to explain it.

2 marks: make 2 separate points.

Show mark scheme
  • Locked doors / keypad / swipe card.
  • CCTV.
  • Alarms.
  • Security guards.
  • Biometric locks.

Don't accept: Passwords, firewalls or encryption. These are not physical security.

1 mark each, max 2

Match the attack to the defence

Question 9[4 marks]
For each threat, describe a suitable method of prevention.
  1. Phishing
  2. Data interception
Hint

For each threat, name the defence, then say how it stops that threat.

Describe means say what it is like or what happens. Make each point a separate fact.

4 marks: make 4 separate points.

Show mark scheme
  • a) Staff training…
  • …so users recognise fake emails and don't give away details.
  • b) Encryption…
  • …so intercepted data can't be understood.

Also accept: a) Spam / email filters, so phishing emails are blocked.

Also accept: b) Use HTTPS or a VPN, which encrypts the data.

Don't accept: b) "Firewall". A firewall doesn't stop intercepted data being read.

Example answer

a) Phishing: train staff to recognise fake emails, such as ones with spelling mistakes or links to strange websites, so they don't give away their passwords.

b) Data interception: encrypt the data, so if it is intercepted it can't be understood without the key.

For each threat: 1 mark for the method, 1 mark for how it helps.

Question 10[2 marks]
A company's website has been hit by SQL injection. Suggest how this could have been prevented.
Hint

What should the website do with everything typed into its forms before using it?

Suggest means use what you know to give a sensible idea for this situation.

2 marks: check every part before you finish.

Show mark scheme
  • Validate / sanitise all user input…
  • …so SQL code entered into forms isn't run.

Don't accept: Firewall or anti-malware. They don't check what is typed into a form.

1 mark for each point.

Mixed questions on the whole page

Question 11[2 marks]
An employee opens a phishing email and types their password into a fake website. Explain why the company's firewall did not stop this.
Hint

What does a firewall actually check? Did anything break in, or did a person give the password away?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • A firewall checks network traffic against rules and blocks unauthorised connections…
  • …but the employee chose to send the password, and it looked like normal web traffic, so the firewall allowed it.
  • Staff training is needed to stop this kind of attack.

1 mark for each point, up to 2.

Question 12[3 marks]
A doctor's surgery stores patient records. Describe how user access levels could be set up for a receptionist and a doctor.
Hint

What does each person actually need to see or change to do their job? Why limit it?

Describe means say what it is like or what happens. Make each point a separate fact.

3 marks: make 3 separate points.

Show mark scheme
  • Receptionist: can see contact details and appointments, but not medical notes (read only / no access to notes).
  • Doctor: can read and change the medical records of their patients (read and write).
  • So each person only sees what they need, protecting patient privacy / limiting damage if an account is hacked.

Don't accept: "The doctor gets full access to everything". The doctor only needs their patients' records.

Don't accept: Just "they get different levels" without saying what each person can do.

1 mark for each point.

Question 13[4 marks]
A company is worried about brute-force attacks. Describe two methods it could use to reduce the risk.
Hint

Pick two defences from the Passwords section. For each one, say how it slows down or stops the guessing.

Describe means say what it is like or what happens. Make each point a separate fact.

4 marks: make 4 separate points.

Show mark scheme
  • Strong password rules, e.g. long passwords with a mix of characters…
  • …so there are far more combinations to try.
  • Lock the account after a set number of failed attempts…
  • …so the software cannot keep guessing.
  • Two-factor authentication…
  • …so a guessed password on its own is not enough.

Also accept: A CAPTCHA, so an automated program can't keep trying passwords.

Don't accept: "Use a firewall" or "anti-malware". These don't stop someone guessing passwords.

Example answer

The company could make staff use long passwords with a mix of capitals, numbers and symbols, so there are far more combinations to try and a brute-force attack would take too long. It could also lock an account after 3 wrong attempts, so the software can't keep guessing.

For each method: 1 mark for the method, 1 mark for how it reduces the risk.

Question 14[2 marks]
A company asks a penetration tester to pretend to be a member of staff with a normal login. Explain why the company tests in this way, as well as from outside.
Hint

Do all attacks come from strangers on the internet? What could a dishonest or hacked staff account do?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • Some attacks come from inside, from staff or from stolen staff accounts…
  • …so the test shows what a normal login can reach that it shouldn't, and access levels can be fixed.

1 mark for each point.

Question 15[2 marks]
Explain the difference between plain text and cipher text.
Hint

Try the cipher wheel. Which one is the message you typed, and which one would an attacker see?

Explain means say what happens and why. Words like “because” and “so” help.

2 marks: aim for 2 things said, such as a point and then the reason for it.

Show mark scheme
  • Plain text is the original data, which can be read…
  • …cipher text is the scrambled version after encryption, which can't be understood without the key.

1 mark for each.