Cybersecurity Geniuses

Learn / Threats explained

Malware types explained

Viruses, worms, trojans, spyware, infostealers, adware, rootkits and botnets. What each one does, how it spreads and the warning signs on your own devices.

3 min read · Updated October 2026

Malware types explained
Image: Brain-virus.jpg by Avinash Meetoo - avinash@noulakaz.net - http://www.noulakaz.net/ - Avinashm a..., CC BY 2.5, via Wikimedia Commons

Malware in one sentence

Malware (malicious software) is any program written to harm you, spy on you or use your device without permission. The labels below describe how a piece of malware spreads or what it does, and a single modern sample often fits several of them at once.

The main families

TypeHow it spreadsWhat it does
VirusAttaches to files or programs; spreads when they are shared and openedCorrupts or deletes data, or carries another payload
WormSpreads by itself across networks, using unpatched flawsCan infect thousands of machines in hours
TrojanDisguised as something useful: a free tool, game cheat, cracked appOpens a back door for the attacker
SpywareBundled apps, malicious links, or someone with physical accessRecords activity, location, messages
InfostealerFake downloads, malicious ads, pirated softwareGrabs saved passwords, browser cookies, crypto wallets
KeyloggerUsually part of a trojan or spywareRecords everything you type
RansomwarePhishing, stolen remote-access loginsEncrypts or steals files for extortion, see ransomware
AdwareFree software bundles, browser extensionsFloods you with ads, redirects searches
RootkitInstalled by other malware with admin rightsHides malware deep inside the system
Botnet agentWorms, weak passwords on smart devicesJoins your device to a remote-controlled network used for spam or attacks
CryptojackerMalicious sites, infected serversUses your processor to mine cryptocurrency

Infostealers: the quiet threat of the 2020s

Infostealers deserve special attention. They do not lock your screen or demand money. They run for a few seconds, copy every password saved in your browser plus your session cookies, and send them to the attacker. Session cookies can let a criminal open your accounts without needing your password or your two-factor code. Stolen logs are sold in bulk on criminal markets and are a common starting point for account takeovers and company breaches.

The usual infection route is a download you chose yourself: a "free" version of paid software, a game mod, a fake browser update or a search ad pointing to a look-alike site.

Warning signs

  • Your device suddenly becomes slow, hot or noisy when idle.
  • New toolbars, extensions or a changed search engine you did not choose.
  • Pop-ups on websites that never used to show them, or system notifications from unknown sites.
  • Friends receive messages from you that you did not send.
  • Password-reset emails you did not request, or logins from unfamiliar places.
  • Security software has been turned off and will not turn back on.

None of these prove infection, but several together are worth acting on.

How to stay clean

  1. Keep everything updated. Most worms and many exploits use flaws that already have fixes. See software updates.
  2. Install software only from official sources: the vendor's website, the Microsoft Store, the App Store or Google Play.
  3. Never run cracked software, keygens or game cheats. They are the single biggest source of infostealers.
  4. Keep built-in protection on: Microsoft Defender on Windows, XProtect on Mac, Google Play Protect on Android. See built-in antivirus.
  5. Use a password manager instead of saving passwords in the browser on shared or high-risk computers, and use passkeys where available.
  6. Do not use an administrator account for everyday work on Windows.

If you think you are infected

Disconnect from the internet, run a full scan with your built-in antivirus, and consider a second-opinion scanner. Then, from a different, clean device, change your important passwords and sign out of all sessions for email, banking and social media, because stolen cookies keep working until you do. If the problem keeps coming back, back up your personal files and reset the device to factory settings.

Keep learning

THREATRansomwareThreatRansomwareMalware that locks or steals your files and demands payment. How modern ransomware gangs operate, why backups are your best defense, and what to do if it hits.TOOLBOXBuilt-inantivirus isenough for mostToolboxBuilt-in antivirus is enough for most peopleWhat Microsoft Defender, Apple XProtect and Google Play Protect do, how to check they are on, and the specific situations where a paid security suite is worth the money.HOW-TOSoftware updatesand patchingHow-toSoftware updates and patchingWhy that annoying update button is one of the best security tools you own, what zero-days and end-of-life mean, and how to make updates automatic everywhere.