Lesson 6 of 13
Malware, demystified
Explain the main things malicious software does, and how it usually gets in.
01 · Learn · the idea
The word “malware” sounds like something from a lab — exotic, engineered, beyond ordinary understanding. It is not. Malware is just a program. The only thing that makes it “mal” is its purpose: it runs on your machine doing something against your interest instead of for it. A photo app shows you photos. An infostealer copies your passwords. Same kind of thing — code running on your computer — pointed at a different goal. The real mystery is not how the program works. It is how it got there. And the dull answer, almost every time, is that you let it in with a click.
It rides in on a click
In the films, malware breaks down a wall. In real life, you open the door for it.
This follows straight from the last two items. Attackers rarely smash through firewalls; they log in as someone allowed. Malware arrives the same quiet way — carried in by a person who runs it. An attachment that looks like an invoice. A fake “update” pop-up. A download promising a free version of paid software. A link that opens something it shouldn’t. A pirated app with a hidden passenger.
In each case, no defence was overpowered. A human was persuaded to run a file. That is why the first defence against malware is the same as the defence against phishing: don’t run things you don’t trust. The technical entrance is rarely the entrance. You are.
Sort it by what it wants, not what it’s called
The names are endless and they change every year. Trying to memorise strains is a waste. The useful move is to sort malware by its goal — what it is trying to take or do. There are roughly four families, and once you can name the goal, you can name the defence.
1. Steal. The program quietly copies your data and sends it out — saved passwords, card numbers, files, whatever it can read. The trade calls this an infostealer or spyware. Nothing on your screen changes. You feel fine. Meanwhile your secrets are walking out the door. In the language of item 1, this breaks confidentiality — keep it secret.
2. Ransom. The program scrambles your files so you can’t open them, then demands payment for the key to unscramble them. This is ransomware. Your data is still there; it has just been locked away from you and turned to gibberish. That breaks availability (you can’t reach it) and integrity (it’s been altered). Ransom is the loud one — it wants you to know it’s there, because the whole business model is making you pay.
3. Spy. The program watches. A keylogger records every key you press — passwords, messages, card numbers as you type them. Other forms quietly capture your screen. This is confidentiality again, but live: not stealing a stored file, but watching you create the secret in real time.
4. Hijack. The program doesn’t want your data at all. It wants your machine’s power. It quietly uses your computer to send spam, to mine cryptocurrency, or to join a botnet — a network of thousands of hijacked machines an attacker controls at once, to flood a target with traffic. You become both the victim and an unwitting tool. The sign is often just a machine that runs hot and slow for no reason you can see.
The defence is matched to the goal
Once you sort by goal, the defences stop being a vague pile of advice and line up neatly.
- Keep software updated. Some malware spreads, once inside, by slipping through known holes in out-of-date programs. Patching closes those holes. (We give the patch race its own item shortly — it matters that much.)
- Run only trusted programs. This is the entry defence. It stops most of all four families before they ever start, because all four need you to run them first.
- Keep separate backups. This is the one that actually beats ransom. If your files are scrambled but you hold a clean copy somewhere the malware can’t reach, the ransom has no power. You restore and move on. A backup on a drive that is always connected can be scrambled too — separate is the word that matters.
- Use a second factor. If a stealer copies your password, a second factor — the “something you have” from earlier — means that stolen password isn’t enough on its own. We give two-factor its own item.
No single one of these is the answer. Antivirus helps too, but it is one layer that catches known threats, not a wall. Security here, as everywhere in this course, is layered.
A worked example: one click, two goals
Walk one infection through, start to finish.
A worker gets an email with an attachment named like an invoice. It looks routine. They open it. Nothing dramatic happens — maybe a document flickers open and closes. The file has quietly installed a program.
Over the next few days, that program does the first job: steal. It finds the passwords saved in the worker’s browser and sends them out. No alarm. The worker notices nothing.
Then it does the second job. One night it runs through the shared drive and scrambles every file, leaving a note: pay, or the files stay gibberish. The office grinds to a halt.
Trace it back. The entry was a single click on an attachment. The goals were steal first, then ransom. And the one thing that would have undone the whole disaster was boring and cheap: a separate backup the malware couldn’t reach, plus the worker not running the file. Not a cleverer firewall. A clean copy and a moment’s hesitation.
On the whole
Malware is not magic, and it is not rare genius. It is a program with a goal, almost always let through the front door by a person who trusted the wrong file. Sort it by what it wants — steal, ransom, spy, hijack — and the fog clears: each goal has a matching defence, and most of those defences are unglamorous habits, not products.
You are inside this, not above it. The machine in your pocket runs programs all day, and the line between the ones that serve you and the ones that don’t is mostly the line of what you chose to run. That is a humbling amount of power to hold by reflex — and the reason the calm question, do I trust this enough to run it?, protects you more than any single tool ever will.
02 · Try · the lab
03 · Check · quick quiz
1. Your files have all been scrambled into gibberish and a note demands payment to get them back. Which goal-family is this, and what defence actually beats it?
- It's a stealer; antivirus removes it and restores the files
- It's ransom; a separate backup the malware can't reach makes the threat powerless
- It's a keylogger; changing your password fixes it
- It's a hijack; a faster computer solves it
Answer
It's ransom; a separate backup the malware can't reach makes the threat powerless — Scrambling files and demanding payment is ransomware — it breaks availability and integrity. The defence that truly beats it is a clean backup kept separate: if you can restore your own copy, paying the ransom becomes pointless.
2. A program quietly copies your saved passwords and sends them out, while everything on screen looks perfectly normal. Which goal is this serving?
- Ransom — it wants you to pay
- Hijack — it wants your machine's power
- Steal — it's copying secrets without changing anything
- Nothing — if the screen looks normal, nothing is wrong
Answer
Steal — it's copying secrets without changing anything — Quietly copying data and sending it out is the 'steal' goal (an infostealer). It breaks confidentiality — keep it secret. Nothing changes on screen precisely because the harm is a secret leaving, not damage you can see.
3. A company is hit by malware. How did it most likely get onto their machines in the first place?
- Someone ran it — an attachment, fake update, or download a person opened
- It broke through the firewall by force
- It cracked the encryption to get inside
- It appeared on its own with no human involved
Answer
Someone ran it — an attachment, fake update, or download a person opened — Almost all malware rides in on a click — a file a person was persuaded to run. Walls are rarely smashed; the human is the entrance. That's why 'don't run things you don't trust' is the first defence.