For each threat there is a defence. This lesson goes through the solutions that keep data safe, from access levels and anti-malware to firewalls, proxy servers and SSL, and says which threats each one helps against.
about 25 min1 simulation1 practice question
Lesson 3 of 3Show all lessonsHide
Try the code and the simulations beside the lesson.
Many locks, not one
A school keeps its exam papers safe in several ways at once. The papers are in a locked room, only some staff have a key, and visitors sign in at the front desk. No single lock stops every problem. Data is kept safe in the same way: with several solutions, each one aimed at certain threats.
Solutions that control who gets in
Access levels. Different users are given different rights. A student may only read the school timetable. A teacher may read and edit the marks of their own classes. Only an administrator may change the settings. So even if one account is misused, the damage it can do is limited.
Authentication checks that a user is who they say they are.
A username and password. The password should be strong: long, with capital and small letters, digits and symbols, and not used anywhere else.
Biometrics use a part of the body: a fingerprint, the face, the iris of the eye, or the voice. They cannot be forgotten, and they are hard to copy.
Two-step verification adds a second step after the password, such as a code sent to the user's phone or email. A stolen password alone is then not enough.
Solutions that guard the device and the network
Anti-malware, including anti-virus and anti-spyware. It scans files and compares them with a list of known malware. It also watches for programs that behave like malware. It removes or quarantines what it finds. Quarantine means moving a file to a safe place where it cannot run. The list of known malware must be kept up to date.
Automating software updates. Updates often fix security weaknesses that hackers and malware use. If updates install automatically, nobody forgets them.
Firewalls. A firewall can be hardware or software. It sits between a computer or network and the internet. It monitors the traffic going in and out and blocks any that does not meet a set of rules, for example traffic from an address on a blocked list.
Proxy servers. A proxy server stands between the user and the internet. Requests go to the proxy, which sends them on to the web server and passes back the reply. The web server sees only the proxy's IP address, not the user's. A proxy can filter traffic and block websites, and it can take the force of a DDoS attack in place of the web server behind it.
A row of boxes from left to right: the user's computer, a proxy server, a firewall and the internet, with a web server beyond it. Arrows show a request passing from the computer through the proxy server and the firewall to the web server. Labels: the proxy server sends requests on, hides the user's IP address and filters websites; the firewall checks traffic in and out against rules and blocks what breaks them.
Secure socket layer (SSL). SSL is a security protocol that encrypts the data sent between a browser and a web server. The web server proves who it is with a digital certificate. You saw it in HTTPS: the https in the URL and the padlock. Intercepted data cannot be understood.
Solutions that depend on the user
Checking the spelling and tone of communications. A phishing email often has spelling mistakes, a greeting such as "Dear customer", and an urgent or threatening tone: "Your account will close today." Real organisations rarely write like this.
Checking the URL attached to a link. Before clicking, look at where the link really goes, for example by hovering over it. A link whose text says one website but whose real address is another is a warning sign.
Privacy settings. These control who can see a person's information, for example on social media. Sharing less gives attackers less to use in social engineering.
Which solution for which threat?
Brute-force attack: strong passwords, locking an account after a few wrong tries, two-step verification.
Malware: anti-malware, automatic updates, a firewall.
Phishing: checking the spelling and tone, checking the URL of a link.
Pharming: checking the URL and the padlock, anti-malware to find the malicious code.
Social engineering: training people, privacy settings, never giving a password to anyone.
Practise with new numbers
Try it in Python
The program has two checks. The first tests whether a password is strong: at least 8 characters, with a capital letter, a small letter and a digit. The second finds the domain name of a link and compares it with the address shown. You wrote a similar URL program in the course on the internet and the web.
Common mistakes
Saying a firewall removes viruses. A firewall controls traffic. Anti-malware finds and removes malware.
Saying SSL hides the user's IP address. SSL encrypts the data. A proxy server hides the IP address.
Calling two-step verification two passwords. The second step is something else, such as a code sent to the user's phone.
Naming a solution without saying how it helps. Say what it does against the threat.
Remember these
Access levels give users only the rights they need. Authentication checks who a user is: password, biometrics, two-step verification.
Anti-malware scans for and removes malware. Automatic updates fix weaknesses.
A firewall monitors traffic and blocks what breaks its rules. A proxy server stands between the user and the internet, hides the user's IP address and filters traffic.
SSL encrypts data between a browser and a web server.
Check the spelling, tone and links of messages, and use privacy settings.
Check yourself
Try each one on your own first. If you are stuck, open a hint. Then check with Show the answer.
What does a firewall do?
Give one example of biometrics.
A code has 4 digits and the account locks after 5 tries. A lucky guess is one in how many?
Which solution hides a user's IP address from the web server?
Why do automatic software updates help to keep data safe?
Enroll free in Cyber Security: Threats and Defences
Every lesson is open to read. Enrolling also lets you:
Mark lessons done and carry on where you stopped.
Take the tests of this lesson and its course.
Count the course towards the certificate for its chapter.