Home › Guides › Malware explained: viruses, trojans, worms, spyware and more
GUIDE · MALWARE

Malware explained: viruses, trojans, worms, spyware and what to do about them

Malware is the broad name for any software built to cause harm. The different types behave differently, but they get in the same few ways, and the same few habits keep most of them out.

Published October 13, 2026 · Written and maintained by the cyberhygiene.tools team

The quick version

  1. Malware is any software designed to harm, spy on or take control of a device.
  2. Most malware needs you to let it in: a bad attachment, a fake download, a “fix” you were told to run.
  3. Keep your system and apps updated, and install software only from official sources.
  4. If you think you are infected, disconnect, scan with trusted security software and change your passwords from a clean device.
  5. Keep a backup that is not connected to your computer. It is the way out of the worst cases.

In this guide

  • What malware is
  • The main types
  • How malware gets in
  • Warning signs of an infection
  • If you think you are infected
  • How to stay protected
  • Frequently asked questions
  • Sources

What malware is

“Malware” is short for malicious software. It covers any program written to damage a device, steal information, spy on the person using it or give someone else control. The word is a catch-all, and the individual types, such as viruses, worms and trojans, are different ways of delivering the harm.

What malware does varies widely. It can slow a device, show unwanted adverts, collect browsing habits, steal passwords and bank details, lock your files for ransom, wipe data, or quietly use your device to attack other people. Often the first sign is that something is just slightly off: a slower computer, a changed browser home page, or an account that behaves oddly.

The main types

These are the types you will hear about most. A single piece of malware can belong to more than one group.

How malware gets in

Nearly all malware relies on one of a handful of routes:

  1. Email and messages. A malicious attachment or a link to a booby-trapped page. Try our phishing checker and link safety checker before you open anything unexpected.
  2. Fake or risky downloads. Pirated software, “cracked” games, free tools from unofficial sites and fake update prompts.
  3. Fake fixes. A page that tells you to paste a command or install something to “prove you are human” or to repair an error. See our ClickFix explainer.
  4. Unpatched software. Known security holes that were never updated, particularly in browsers, operating systems and internet-facing devices.
  5. Malicious adverts and websites. Pages and ads that try to push a download or exploit a flaw.
  6. Infected removable drives. A USB drive can carry malware onto a computer. Our articles on Stuxnet and Agent.btz show how serious this can get.
  7. Malicious apps from outside the official app stores.

Warning signs of an infection

None of these proves infection on its own, and many have ordinary causes. A cluster of them, or a sudden change, is a good reason to check.

If you think you are infected

  1. Disconnect from the internet. Turn off Wi-Fi or unplug the network cable to stop data leaving or the malware spreading.
  2. Do not enter passwords on the infected device. If it carries a keylogger or spyware, anything you type could be captured.
  3. Run a full scan with reputable security software. Windows has a built-in scanner (Microsoft Defender, including an offline scan option). On Macs and phones, use the system’s own security tools or a well-known security app.
  4. Remove what it finds, and remove any programs or browser extensions you did not install.
  5. Update everything. Install all pending updates for your operating system and apps.
  6. Change your passwords from a different, clean device. Start with email, then banking, then everything else. Turn on two-factor authentication.
  7. Consider a clean reinstall if the infection is serious or you suspect a rootkit. Wipe the device and restore from a backup you trust. This is where an offline backup earns its place; see our backup guide.
  8. Watch your accounts over the following weeks for unexpected activity, and use our first 24 hours checklist if money or identity details were involved.

How to stay protected

What this means for you
  • Most malware depends on you letting it in. A moment of doubt before you click, download or paste is the cheapest defence there is.
  • Updates, backups and two-factor sign-in cover most of the rest.

Sources

Published October 13, 2026. We check every claim against the sources above and say clearly when something is advice rather than fact. This guide is general information, not legal or financial advice. Dollar amounts are in US dollars, as reported.


Frequently asked questions

What is the difference between a virus and a worm?

A virus attaches itself to files and spreads when someone runs them. A worm spreads by itself across networks without anyone clicking anything, usually by exploiting a software flaw.

Do Macs and phones get malware?

Yes. They are targeted less often than Windows, but they are not immune. Stick to official app stores, keep devices updated and be careful with links and attachments.

Is antivirus enough?

It helps, but it is only one layer. Updates, careful clicking, two-factor sign-in and offline backups matter just as much.

Can malware be removed without wiping the device?

Often yes for common types, using a trusted scanner. For serious infections, especially rootkits, a clean reinstall from a known good backup is the safest way.