- Foundation
- About 13 min
- 5 practice questions
Defences: firewalls, antivirus, encryption and updates
Explain how firewalls, antivirus, encryption, software updates and backups protect a system.
If something looks wrong, please tell us.
Good security uses layers. If one layer fails, another still helps. These are the main layers you must know.
Main protections
| Defence | What it does |
|---|---|
| Firewall | Filters network traffic, blocking connections that break its rules |
| Antivirus | Scans for and removes known malware |
| Updates / patches | Fix weaknesses found in software |
| Backup | A separate copy of data for recovery |
| Encryption | Scrambles data so only someone with the key can read it |
| Two-step verification | Needs a second proof such as an OTP besides the password |
Encryption
Readable data is plaintext; the scrambled form is ciphertext. In symmetric encryption the same key locks and unlocks. In asymmetric encryption there are two keys, a public key to lock and a private key to unlock. A simple old example is the Caesar cipher, where each letter moves a fixed number of places in the alphabet.
Worked examples
Example 1. Encrypt CAT with a Caesar shift of 3. C moves to F, A to D and T to W, giving FDW.
Example 2. Decrypt KHOOR with a shift of 3. Move each letter back 3: K to H, H to E, O to L, O to L, R to O, giving HELLO.
Example 3. A site address begins with https and shows a padlock. What does that mean? The connection between you and the site is encrypted, though it does not prove the site itself is trustworthy.
Layers: firewall, antivirus, updates, backups, encryption, two-step verification.
Key takeaways
- Use several layers of protection.
- Encryption protects data from being read without the key.
- Updates and backups are simple but powerful defences.
Check your understanding
-
1. Which defence filters network traffic and blocks connections that break its rules?
- Antivirus
- Firewall
- Backup
- Ciphertext
Show answer
Answer: B. A firewall filters network traffic by rules; antivirus scans for malware.
-
2. In symmetric encryption
- A public key locks and a private key unlocks
- The same key locks and unlocks the data
- No key is used at all
- The data is copied to a second disk
Show answer
Answer: B. Symmetric encryption uses one key both ways; two keys (public and private) is asymmetric encryption.
-
3. Encrypt BAD with a Caesar shift of 3 (each letter moves 3 places forward).
- YXA
- CBE
- EDH
- EDG
Show answer
Answer: D. B moves to E, A to D and D to G, giving EDG.
-
4. A website address begins with https and shows a padlock. What does this tell you?
- The connection between you and the site is encrypted
- The site is guaranteed to be trustworthy
- The site contains no malware
- The page will load faster
Show answer
Answer: A. https means the connection is encrypted; it does not prove the site itself can be trusted.
-
5. What do software updates (patches) do?
- Make a separate copy of your data
- Scramble data so only a key holder can read it
- Fix weaknesses found in the software
- Filter incoming network traffic
Show answer
Answer: C. Patches fix known weaknesses; the other options describe backup, encryption and a firewall.
Sign in to keep track of the lessons you finish.