Cyber basics · Lesson 5 of 6

Malware, updates & backups

What viruses, ransomware, spyware and infostealers are, how malware gets onto devices, and the simple habits that stop it: updates, backups and smart installs.

⏱ 16 min🎯 Beginner🧪 Hands-on✅ 4-question quiz🎬 Video✓ Completed

By the end, you’ll be able to…

  • Describe the main types of malware in plain words
  • Explain the most common ways malware gets onto a device
  • Set up the defences that matter most: updates, safe installs and 3-2-1 backups

Key words

Malware
Malicious software: any program built to harm, spy on or take over a device.
Ransomware
Malware that locks or encrypts your files and demands payment.
Infostealer
Malware that grabs saved passwords, browser cookies and crypto wallets, then sends them to an attacker.
Trojan
Malware disguised as something useful, like a free game, a mod or a ‘cracked’ app.
Patch
An update that fixes a bug, often a security vulnerability.
3-2-1 backup
3 copies of your data, on 2 different kinds of storage, with 1 kept somewhere else.

See all 127 words in the glossary →

Malware is just software with bad intentions

There’s nothing magic about malware. It’s a program, written by a person, that does something you didn’t agree to. The names describe what it does or how it spreads:

  • Virus: attaches itself to other files and spreads when they’re shared. (People often say “virus” for all malware.)
  • Worm: spreads by itself across a network, often through an unpatched vulnerability.
  • Trojan: pretends to be something you want: a free game, a mod, a “cracked” app, a fake update.
  • Ransomware: encrypts your files and demands payment. Paying doesn’t guarantee you get them back.
  • Spyware and infostealers: quietly collect passwords, browser cookies, messages or crypto wallets. Stolen login cookies can let an attacker into your accounts without even needing your password.
  • Adware and PUPs (potentially unwanted programs): flood you with ads or change your browser settings. Less dangerous, but still unwanted.

How malware gets in

  1. Baitfree game, mod, crack, fake update
  2. You download itor open an attachment
  3. It runsoften asking for extra permissions
  4. It digs instarts with the computer, hides
  5. It phones homesends data, waits for orders
The most common path: a person is tricked into running it. Unpatched software is the second big door.

Notice the human step in the middle. Most malware needs you to run it. That’s good news, because your habits are a strong defence.

The big doors are:

  • Downloads from unofficial places: cracked software, “free” paid games, random mod sites and YouTube-comment links are favourite hiding spots for infostealers.
  • Email and chat attachments: invoices, “photos”, ZIP files from people you don’t know (or from friends whose accounts were hacked).
  • Unpatched software: an old browser, OS or plugin with a known vulnerability.
  • Fake updates and pop-ups: “Your Flash Player is out of date!” on a random website. Real updates come from the app or the OS itself.

Defence in depth: layers, not one magic tool

  1. Youpause before installing, opening or clicking
  2. UpdatesOS, browser and apps patched automatically
  3. Built-in protectionMicrosoft Defender, macOS Gatekeeper/XProtect, Google Play Protect
  4. Least privilegeeveryday account isn’t an administrator
  5. Backupsif everything else fails, you can still recover
No single layer is perfect. Together they stop the vast majority of everyday attacks.

You don’t need to buy a fancy antivirus to be well protected. The protection built into Windows, macOS, Android and iOS is solid, as long as it’s switched on and your device is up to date.

Updates: the boring superpower

When a vulnerability is fixed, attackers can study the fix to work out what was broken. After that, they hunt for devices that haven’t updated yet. So:

  • Turn on automatic updates for your OS, browser and apps.
  • Restart when asked. Many updates only take effect after a restart.
  • Replace devices that no longer get security updates, like very old phones or routers.

Backups: the ransomware antidote

If ransomware hits, or your laptop dies, or you drop your phone in a lake, a backup turns a disaster into an inconvenience. The classic rule is 3-2-1:

  1. 3 copiesthe original + 2 backups
  2. 2 kinds of storagee.g. laptop + external drive
  3. 1 off-sitecloud, or a drive at a relative’s
Keep at least one backup disconnected or versioned, so ransomware can’t encrypt it too.

And test it! A backup you’ve never restored from is a hope, not a backup.

Think you’re infected?

  1. Disconnect from the internet (turn off Wi-Fi) to stop data leaving.
  2. Run a full scan with your built-in protection.
  3. From a different, clean device, change your important passwords (email first) and sign out of other sessions. Infostealers often grab saved logins.
  4. If you’re not sure it’s clean, back up your personal files and reinstall the operating system. Ask an adult or your IT team for help: it’s what they’re there for.
Curious about how malware works?

Malware analysts study samples in isolated lab machines with no access to real networks. As a beginner, stick to reading reports and using the hash lookups lesson. Never download real malware “to see what happens”.

🤔 Something not clicking?

🧪 Hands-on

Practice

Is each situation probably safe, or suspicious? Sort them, then read why.

🎬 Watch

Video: The Internet: Cybersecurity & Crime

Cyber basicsThe Internet: Cybersecurity & CrimeCode.org · Watch on YouTube

Video by Code.org, hosted on YouTube. It loads only when you press play.

✅ Check yourself

Quick quiz

Every answer comes with an explanation, right or wrong. Your best score is saved in this browser.

Q1. Ransomware has encrypted a laptop. What makes recovery easiest?
Q2. Which download is most likely to hide an infostealer?
Q3. Why do attackers target devices that haven’t been updated?
Q4. Which is a correct 3-2-1 backup?

What’s next

Up nextPrivacy & your digital footprint →What apps and websites learn about you, how oversharing helps scammers, and a practical privacy check-up for your accounts, phone and browser.⏱ 14 min