Privacy note: We capture your IP address to provide customised and focused services. See our Privacy Policy.

Cybersecurity Essentials — Alpha School

Lesson 17: Malware and Ransomware: How They Spread and How to Respond

Malware is software written to harm, and it comes in many forms, but the way it spreads and the way you stop it follow patterns that are worth learning, because the same few defences block most of it. A virus attaches itself to a file and spreads when the file is shared. A worm spreads on its own, from computer to computer, without anyone running anything. A Trojan pretends to be something useful, such as a free game or a document, and does its harm once it is opened. Spyware watches what you do and sends the information to someone else. And ransomware locks your files and demands payment for the key. This lesson explains how each one reaches you, what the signs are, and what to do when you suspect an infection, because a calm, correct response limits the damage.

How malware reaches you

Malware almost always arrives through a human action, which is why the habits from earlier lessons matter so much. The most common route is an attachment or a link in a phishing message, which is why you should never open an unexpected attachment, even from someone you know, without checking first. The second is a download from an untrustworthy source, such as a “free” version of paid software, which often carries a hidden extra. The third is an unpatched program: attackers scan the internet for computers running old software with known flaws, and they break in without any help from the user at all, which is why updates matter. And the fourth is a USB stick or a shared drive, which is why you should not plug in a device you found or were given by a stranger. In each case, the malware needs a way in, and closing those ways is the defence.

Ransomware: the attack that locks your files

Ransomware deserves its own attention, because it has become the most damaging attack on schools, hospitals and small businesses. Once it runs, it encrypts your files, documents, photos, schoolwork, with a key only the attacker holds, and then it demands payment, usually in cryptocurrency, for the key, often with a deadline and a threat to publish the files if you do not pay. Paying is a bad idea for three reasons: there is no guarantee you will get the key, the money funds more attacks, and paying marks you as someone who pays, which invites a second attack. The defence is preparation: keep backups that are not connected to your computer, such as an external drive you unplug after backing up, or a cloud backup, and keep your software updated, because ransomware usually enters through a known flaw or a phishing message. With a good backup, ransomware is an inconvenience; without one, it can be a catastrophe.

Signs of infection and what to do

The signs of malware are often ordinary-looking: a computer that suddenly runs slowly, programs that crash, a browser that shows adverts it never showed before, new toolbars or extensions you did not install, or files you cannot open. Any one of these can have an innocent cause, but several together, especially after opening an attachment or downloading something, should make you suspicious. If you suspect an infection, do not keep using the computer as normal: disconnect it from the network, so the malware cannot spread or send data, and do not log into important accounts from it, because a keylogger may be recording what you type. Then run a scan with reputable security software, and if the problem persists, or if ransomware is involved, ask an adult, a teacher or your school's IT support for help, because they will have a process for this, and trying to fix it alone can make it worse.

Prevention: the habits that block most malware

Most malware is blocked by a short list of habits you already know. Keep your operating system, your browser and your apps updated, and turn on automatic updates where you can. Use reputable security software and keep it updated, and do not disable it to install something. Download software only from the official site or your device's app store. Do not open unexpected attachments, and do not plug in unknown USB devices. And keep backups, regularly, on a drive you disconnect afterwards, because a backup is the one defence that works even when everything else fails. None of these habits is difficult, and together they block the great majority of malware, which is why security professionals repeat them so often: the basics work, and the people who follow them rarely need the advanced defences at all.

Key Terms

Malware
Software written to harm, including viruses, worms, Trojans, spyware and ransomware.
Virus
Malware that attaches itself to a file and spreads when the file is shared.
Worm
Malware that spreads from computer to computer on its own, without anyone running anything.
Trojan
Malware that pretends to be something useful, such as a free game, and harms once opened.
Ransomware
Malware that encrypts your files and demands payment for the key to unlock them.
Keylogger
Malware that records what you type, such as passwords, and sends it to an attacker.
Backup
A copy of your files kept somewhere safe, so you can recover if the originals are lost or locked.

Discussion Questions

  1. Why is paying a ransomware demand a bad idea, even if the files are important?
  2. A friend gives you a USB stick with a game on it. What would you do, and why?
  3. Why do updates matter for stopping malware, even if you never open suspicious attachments?

Practice Questions

  1. What is the difference between a virus and a worm?
  2. Why is a backup the best defence against ransomware?
  3. Name two ways malware commonly reaches a computer.
  4. What should you do first if you suspect an infection?
  5. Why should you not disable security software to install something?
Show answers
  1. A virus needs a file to be shared or run to spread; a worm spreads on its own from computer to computer. Both are malware, but the worm needs no help from the user.
  2. Because it lets you recover your files without paying. With a recent backup kept apart from your computer, locked files are an inconvenience, not a catastrophe.
  3. Any two, such as a phishing attachment, a download from an untrustworthy source, an unpatched program, or an unknown USB stick. Each one needs a way in, and closing those ways is the defence.
  4. Disconnect the computer from the network. That stops the malware spreading or sending data, and then you should scan it and ask for help.
  5. Because the software is protecting you from exactly that kind of risk. A program that asks you to turn off your protection is itself suspicious.
Keep reading to complete this lesson