By the end of this lesson you will be able to
- Explain why defences are layered and why no single tool is enough.
- Check that updates, antivirus and the firewall are on, using Ubuntu or Windows 11.
- Describe what an antivirus programme and a firewall each do and do not do.
- Explain least privilege and use a standard account for everyday work.
- Download software safely and say why a backup is the last line of defence.
Good security is rarely one clever tool. It is a handful of ordinary habits that overlap, so that if one fails another catches the problem. In this lesson you will check the protection already built into your laptop, learn what each part really does, and set up the habits that stop the large majority of everyday attacks.
Defence in layers
A castle has a moat, a wall, a gate, guards and a keep. No single layer is perfect, but an attacker must get through all of them. Computer security works the same way. The layers you control are: updates that close flaws, an antivirus that spots known bad files, a firewall that controls traffic, a limited account that limits damage, careful downloading and, last of all, backups that let you recover from whatever got through.
No single layer is enough
Read this figure as text
A stack of six layers from careful habits down to backups, protecting your data.
Six layers from top to bottom. Careful habits: you slow down and do not click or install unknown things. Updates: flaws are fixed as soon as they are known. Antivirus: known bad files are spotted and blocked. Firewall: unwanted connections from the network are blocked. Limited account: even if something runs, it has few rights. Backups: if everything else fails, you restore your files. The label at the top reads: no single layer is enough.
Updates: the cheapest defence
When researchers find a flaw in software, the maker publishes a fix called a security patch, usually inside an ordinary update. Once the fix is public, criminals study it to learn what the flaw was and attack computers that have not applied it. So the days after an update appears are the most dangerous time to be out of date. Installing updates is the single most effective thing most people can do.
Check updates, antivirus and firewall
Menu names can differ slightly between releases. If you do not see exactly the same words, look for the nearest one.
On Ubuntu 24.04
Step 1: Open Software Updater
Press the Super key (the one with the Windows logo), type
Software Updaterand open it.You should see: A window checks for updates, then says that the software is up to date or lists updates to install.
Step 2: Install any updates offered
Click Install Now and enter your own login password if asked. Do this only on your own laptop.
You should see: A progress bar runs. You may be asked to restart afterwards.
Step 3: Check automatic security updates
In Software Updater choose Settings, or open Software & Updates and the Updates tab. Look at Automatically check for updates and the security updates setting.
You should see: Security updates are set to download and install automatically, which is the default on a new Ubuntu installation.
Step 4: Note what is not there
Open Settings and look through the list.
You should see: Ubuntu does not ship a full antivirus window, and its firewall (called UFW) is installed but switched off by default, because a fresh Ubuntu laptop does not offer network services to the outside world. A later module on the terminal shows how to check it.
On Windows 11
Step 1: Open Windows Update
Open Settings, then choose Windows Update in the left list and click Check for updates.
You should see: Windows says You're up to date or begins downloading updates.
Step 2: Open Windows Security
Press Start, type
Windows Securityand open it.You should see: A window shows areas such as Virus & threat protection, Firewall & network protection and App & browser control, each with a green tick when all is well.
Step 3: Check virus protection
Click Virus & threat protection.
You should see: You see Current threats and the date of the last scan. Microsoft Defender Antivirus is built in and on unless another security product replaced it.
Step 4: Check the firewall
Go back and click Firewall & network protection.
You should see: Domain, private and public networks are listed. The one you are on is marked as active, with the firewall on.
What antivirus and firewalls actually do
An antivirus programme compares files with a list of known bad patterns and also watches for suspicious behaviour, such as a programme suddenly locking many files. It is good at known threats and weaker against brand new ones. It does not protect you from giving your password to a fake website, because no bad file is involved.
A firewall controls which network connections are allowed in and out of your computer, like a doorman who checks who may enter. It blocks unrequested connections from outside. It does not look inside the files you willingly download.
- Scans files and downloads
- Spots known malware and odd behaviour
- Isolates what it finds
Cannot stop you typing a password into a fake page.
- Controls connections in and out
- Blocks unrequested outside traffic
- Can limit which programmes go online
Cannot judge a file you chose to download.
Read this figure as text
Two columns comparing what an antivirus does with what a firewall does, and what each cannot do.
Antivirus: looks at files and behaviour on your computer, spots known malware and some suspicious activity, quarantines (isolates) what it finds. It cannot stop you giving a password to a fake website, and may miss very new malware. Firewall: controls network connections in and out, blocks unrequested connections from outside, can block programmes from contacting the internet. It cannot check a file you chose to download, and cannot tell if a website is honest.
Least privilege: do daily work with a limited account
Least privilege means giving a person or programme only the rights it needs and no more. On a computer, an administrator account can change anything, including installing software for everyone. A standard account can use programmes and save files but cannot make deep changes without a password.
If you browse the web as an administrator and a malicious file runs, it can do as much damage as you can. If you use a standard account, the damage is usually limited to your own files. Ubuntu already works this way: your daily programmes run without full rights and ask for your password for system changes. On Windows 11, the account created during setup is often an administrator, so some people create a second administrator account for installs and use a standard one for daily work.
- Malware inherits full rights
- Can change system settings
- Fewer chances to say no
Bigger damage.
- Malware inherits limited rights
- Mostly harms your own files
- System changes ask for a password
Smaller damage, and a moment to think.
Read this figure as text
Two columns comparing what happens when malware runs under an administrator account and under a standard account.
Administrator for everything: malware that runs inherits full rights, so it can change system settings and install itself for every user. A prompt may not even appear. Standard account for daily work: malware that runs inherits only your limited rights, so it usually harms your own files only and cannot change the system without a password prompt, which gives you a chance to say no. Recommended: use the standard account every day, and use the administrator account only to install or change things you trust.
Download safely
Most unwanted software enters through downloads. Use the safe routes in this order: the system's own store or updater (App Center on Ubuntu, Microsoft Store on Windows), then the maker's official website that you reached by typing the address or from a search result you checked. Avoid download sites that surround a download button with several others, “cracked” paid software and “free” versions of films or games. When you install, read each screen; optional extras are a common way for adware to ride along.
- Do you really need this software?
- YesIs it in your official store (App Center, Microsoft Store)?
- YesDo thisSafe route: install from the store.
- NoIs it on the maker's own site, reached by an address you checked?
- YesIs it a paid product offered free, or too good to be true?
- YesDo thisDo not install it.
- NoDo thisInstall, reading every screen.
- NoDo thisDo not install it.
- YesIs it a paid product offered free, or too good to be true?
- NoDo thisDo not install it.
- YesIs it in your official store (App Center, Microsoft Store)?
Read this figure as text
A yes or no decision tree that ends in either install it or do not install it.
Start: do you need this software? If no, do not install it. If yes, is it available in your system's official store (App Center or Microsoft Store)? If yes, install it from there. If no, is it from the maker's official website, reached by an address you typed or checked? If no, do not install it. If yes, is it free but normally paid for, or does it promise something too good to be true? If yes, do not install it. If no, download and install it, reading each screen.
Backups: the last line of defence
Some attacks will get through whatever you do, and hardware also fails and gets lost. A backup is a separate copy of your important files that an attack cannot reach. Keep at least one copy off the computer, and if it is on a drive, disconnect that drive after copying so ransomware cannot reach it. The details of planning and restoring backups are in the backup lessons; here, remember that a backup you have never tested is only a hope.
Common mistakes
✖ Instead of: Postponing updates for weeks because the restart is inconvenient.
✔ Do this: Restart at a time that suits you, but do it the same day or the next. Set a regular time, such as the end of the evening.
✖ Instead of: Turning off the firewall or antivirus “just for a minute” to install something.
✔ Do this: A programme that needs your protection off is a red flag. Do not install it unless you can prove it is genuine.
✖ Instead of: Installing a second antivirus because the first “did not find anything”.
✔ Do this: Two products can conflict and slow the computer. Keep one, and keep it updated.
✖ Instead of: Using the administrator account for everything.
✔ Do this: Use a standard account for daily tasks and use the administrator rights only for installs you chose.
If something goes wrong
- Windows Security shows a yellow or red warning.
- Click the item with the warning and follow the button it offers, such as turning protection on or running an update. If a different security product is installed, the page tells you which one is active.
- Software Updater or Windows Update fails or sticks.
- Check you are online and have free space, restart the computer and try again. If it keeps failing, search the exact error message on the official support site.
- I do not know whether my account is an administrator.
- On Ubuntu open Settings, then System, then Users and read the account type. On Windows open Settings, then Accounts, then Your info; the account type is shown under your name.
Key terms
- Security patch
- A small update that fixes a weakness attackers could use to break into your computer.
- Antivirus
- Software that scans for known harmful programs and tries to stop or remove them.
- Firewall
- A security feature that blocks unwanted network connections to or from your computer.
- Least privilege
- Giving a person or programme only the access it needs, and no more.
- Administrator
- A user account allowed to change important settings and install software for the whole computer.
- Backup
- A separate copy of your files kept so you can get them back if the originals are lost or damaged.
Practise it for real
Reading is not the same as being able to do it. Complete these on your own computer, then tick only what you have actually done. These ticks are your own honest record: nothing checks them for you.
Do a ten-minute security check-up
On your own laptop, open the update settings for your system (Software Updater on Ubuntu, Settings then Windows Update on Windows 11) and check for updates. On Windows also open Windows Security and look at the virus and firewall pages. Write down what you found: is the system up to date, is protection on, and which account type do you use every day?
Challenge: choose the safe route
Imagine you need free software to edit photos. Without looking at the lesson, write the order of places you would look, and the three checks you would do before installing. Then find one real example of a download page with several confusing buttons in a search result, without clicking any button, and write why you would avoid it.
Knowledge check
7 questions. You need 80% to pass. Mistakes here are part of learning, and you can retry as often as you like.
Summary
- Security is layered: habits, updates, antivirus, firewall, limited account and backups.
- Updates close the flaws criminals use, so install them promptly.
- Antivirus checks files; a firewall controls connections; neither stops you handing over a password.
- Use a standard account for daily work so a mistake has a smaller effect.
- Install software from the official store or the maker's own site, and keep tested backups.
Checklist: can you do these?
Marking a lesson as read does not prove you can do it. Skills count as demonstrated when you pass the quiz (not yet) and complete the practical tasks (not yet).
Related lessons
References and further reading
Official sources for details that can change between versions.
- Stay protected with Windows Security (Microsoft Support)
- Ubuntu security: updates and patching (Canonical)
- Top tips for staying secure online (National Cyber Security Centre (UK))