Cyber Security
The threats you must be able to describe, each with what the attacker does and what they want, and the solutions that help keep data safe from them.
WATCH IT EXPLAINED
EXPLORE IT IN 3D
The office under attack
A school IT office at night — and someone with a laptop at the cafe outside. Crack, sniff, flood, phish and trick your way through seven attacks, then stop each one the way the exam wants it explained.
How this topic is examined
For a threat, say what the attacker does and wants; for a solution, say how it keeps data safe.
Every threat question wants two things:
- the process: what the attacker does
- the aim: what the attacker wants
Exam:Every solution question wants the solution and how it keeps the data safe.
This table is the map for the rest of this lecture. It pairs each threat with its aim and with solutions that help against it.
| Threat | Aim | Solutions |
|---|---|---|
| brute-force | get into an account | long password, lockout, two-step |
| data interception | steal data on the move | encryption, SSL |
| DDoS | stop a service | proxy server, firewall |
| hacking | get into a system | firewall, access levels |
| malware | damage, spy, extort | anti-malware, automatic updates |
| phishing | your details, via a link you click | check spelling, tone and the link's URL |
| pharming | your details, via a redirect | anti-malware, heed the certificate warning, check for HTTPS |
| social engineering | you, breaking the rules | training |
Brute-force attack
A brute-force attack tries password after password, so long, mixed passwords and account lockouts slow it down.
A brute-force attack uses trial and error to find a password. Software tries one combination after another, until one works. It often tries a list of common passwords first. The aim is to get into an account or a system.
How to make a password harder to find:
- Make it longer. Each extra character multiplies the number of possible passwords, so a longer password takes far longer to find.
- Mix lower case, upper case, digits and symbols. This helps too.
Example:Eight lower-case letters give 208 827 064 576 passwords. At a billion guesses a second, all of them are tried in about 3.5 minutes.
A lockout helps as well. If the account locks after 3 wrong attempts, an online attacker gets only 3 guesses before it locks.
Proving who you are: authentication
Authentication proves you are who you say you are; a second proof stops a thief who has only your password.
Authentication is proving that you are who you say you are.
| Method | What it uses | Why it helps |
|---|---|---|
| username and password | something you know | the usual first check |
| biometrics | a physical feature of your body: a fingerprint, your face, your iris or your voice | it is unique to you and hard to copy |
| two-step verification | a second proof after the password, usually a one-time code sent to your phone or email | a stolen password on its own is not enough |
Example:In the figure, log in as yourself. Then log in as an attacker who has stolen your password.
Data interception, and SSL
Attackers can read data while it travels, so we encrypt it; SSL encrypts data between a browser and a server.
Data interception is stealing data by tapping into a wired or wireless link while the data travels. It can be done in two ways:
- A packet sniffer is software that reads the packets (small pieces of data) passing across a network.
- An attacker can also pick up the signals of a Wi-Fi network.
The aim is to steal data such as passwords and card numbers.
Remember:The defence is encryption (scrambling the data with a key). Intercepted data is meaningless without the key.
SSL (secure socket layer) is a security protocol that encrypts the data sent between a browser and a web server. First, the server proves who it is with its SSL certificate.
TLS is the newer version of SSL, and HTTPS uses it.
DDoS attack: proxy servers and firewalls
In a DDoS attack, many computers flood a server with requests, so real users cannot reach it.
A distributed denial of service (DDoS) attack floods a web server with so many requests that it cannot deal with them all. So genuine users cannot reach it. Imagine thousands of fake customers blocking a shop door.
- Distributed means the requests come from many computers at once.
- They are usually a botnet: computers infected with malware and controlled by the attacker, without their owners knowing.
- The aim is to stop the service.
Two defences:
| Defence | How it helps |
|---|---|
| proxy server | a go-between: it sits between the users and the web server, and every request passes through it; it can filter out attack traffic, hide the web server's address and keep copies of popular pages |
| firewall | it can block traffic from the attacking addresses |
Hacking and firewalls
Hacking is getting into a system without permission; a firewall checks all traffic against rules and blocks the rest.
Hacking is gaining unauthorised access (access without permission) to a computer system.
| Malicious hacking | Ethical hacking | |
|---|---|---|
| Permission | none | the owner's permission |
| Aim | to steal, change or delete data | to find weaknesses before criminals do |
A firewall is hardware or software that sits between a computer or network and the outside. It works like a guard at the school gate:
- It monitors the traffic going in and out.
- It checks it against a set of rules.
- It blocks anything that does not meet them.
- It can also log the attempts.
Example:In the figure the rules are checked in order, and the first rule that matches decides.
Access levels and privacy settings
Give each user only the access they need, and let users choose who can see their personal data.
Access levels give each user only the access they need. There are three levels:
- no access
- read only
- read and write
Example:A student can read the timetable but not change the marks. So someone who breaks into a student's account still cannot change them.
Privacy settings let users control who can see their personal data on social media and websites: their profile, posts, photos and phone number.
With the phone number set to Only me, a stranger looking at the profile cannot see it.
Malware: six kinds
Malware is harmful software, and its six kinds differ in how they spread and what they do.
Malware is malicious software (software made to do harm).
| Kind | What to know |
|---|---|
| virus | attaches itself to a file or program; copies itself only when that file is run; usually deletes or corrupts data |
| worm | a standalone program; copies itself across a network with no user action, using up bandwidth |
| Trojan horse | disguised as useful software; once the user installs it, it gives the attacker access or installs other malware; it does not copy itself |
| spyware | records what the user does, such as key presses, and sends it to the attacker |
| adware | floods the user with adverts |
| ransomware | encrypts the user's files and demands payment for the key |
Watch out:A virus needs its file to be run. A worm spreads by itself. A Trojan horse does not copy itself at all.
Anti-malware and automatic updates
Anti-malware finds known and suspicious programs, and automatic updates close the holes that malware uses.
Anti-malware, including anti-virus and anti-spyware, protects in two ways:
- It scans files and compares them with a database of known malware.
- It can also watch for suspicious behaviour. This is called heuristic checking.
An infected file is quarantined (locked away) or deleted.
Watch out:The database must be kept up to date, or new malware is missed.
Automating software updates means that updates install themselves. Many updates are security patches that close the weaknesses malware uses. So a user who forgets to update is still protected.
Phishing: check the spelling, the tone and the link
Phishing tricks you into clicking a link to a fake website, so check the message and the real link first.
Phishing is sending emails or messages that look legitimate (real), with a link or an attachment. The link leads to a fake website that asks for personal details. The aim is to steal those details for fraud or identity theft.
Remember:It only works if the user clicks.
Two checks help:
- Check the spelling and tone of the message. Look for spelling mistakes, a greeting such as "Dear customer", urgency or threats.
- Check the URL attached to the link. Hover over it, or press and hold it, to see the real address. Then read its domain name from the right.
Example:In mybank.mn.secure-login.com, read from the right: the real domain is secure-login.com, not your bank.
Pharming
Pharming sends you to a fake website even when you type the correct address yourself.
Pharming is malicious code that redirects the user to a fake website, even when they type the correct URL. The code is installed on the user's computer or on a DNS server (a server that turns domain names into IP addresses).
Watch out:The user does nothing wrong, and the address bar can show the right name.
The aim is to steal the details typed into the fake site. Two defences:
- Anti-malware can find and remove the redirecting code.
- A fake server cannot get a genuine certificate for the real domain name, so the browser warns. Heed the certificate warning, and check for HTTPS.
Remember:Phishing needs you to click a link. Pharming works even when you type the address yourself.
Social engineering
Social engineering tricks people, not computers, into breaking security rules.
Social engineering attacks the person, not the computer. The attacker manipulates people (tricks them) into breaking normal security procedures or giving away confidential information.
| Trick | Example |
|---|---|
| phone call | someone phones, pretending to be IT support: "What is your password?" |
| baiting | an infected USB stick is left on a desk, where someone will plug it in |
| scareware | a pop-up says the computer is infected: "Install this fix now." |
Remember:The defence is training. Never give your password to anyone. Check any request through a different channel (another way of contacting them).
Match each description to the threat it describes.
PICK ONE, THEN PICK ITS GROUP
- empty
- empty
- empty
- empty
- empty
KEY TERMS
CHECK YOURSELF
1.What is the difference between phishing and pharming?
2.Which malware ENCRYPTS your files and demands payment?
3.What does a firewall actually do?
4.An attacker has stolen your password. Two-step verification is switched on. What stops them logging in?
5.Which malware copies itself across a network with no user action?
6.In a DDoS attack, what does distributed mean?
7.Why must anti-malware software be kept up to date?