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 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.
| Student | Teacher | Network manager | |
|---|---|---|---|
| Their own work | Read and write | Read and write | Read and write |
| Class marks | None | Read and write | Read only |
| Install software | No | No | Yes |
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
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.
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
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
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.
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
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
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.
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
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
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
- Phishing
- 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.
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
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.
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.
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.
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.
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.