Overview

Malware is software intentionally designed to harm a system, steal information, disrupt services, or give an attacker unauthorized access. Recognizing the category a piece of malware falls into (rather than just its name) is what actually helps in detection work later.

Key concepts

  • Self-replicating: virus, worm
  • Disguise & extortion: trojan, ransomware
  • Surveillance: spyware, keylogger, adware
  • Stealth & control: rootkit, bot, botnet

How it works

Self-replicating malware

These spread on their own, but differ in how.

TypeHow it spreads
VirusAttaches to a legitimate file or program and spreads when that file is opened or run. The most common form of infection.
WormCopies itself and spreads across networks on its own, without needing a host file — generally more complex to write than a virus.

Disguise & extortion

TypeWhat it does
TrojanAppears to be legitimate software but performs harmful actions once installed.
RansomwareEncrypts files or locks a system, then demands payment to restore access.

Surveillance malware

These focus on quietly collecting information rather than causing visible damage.

TypeWhat it collects
SpywareSecretly collects information about a user or device.
KeyloggerRecords keystrokes specifically to steal passwords and other sensitive input.
AdwareDisplays unwanted ads and may also track user activity.

Stealth & remote control

These are about an attacker maintaining hidden, long-term access.

TypeWhat it does
RootkitHides itself within a system and gives an attacker privileged access.
BotA single infected device that can be remotely controlled by an attacker.
BotnetA group of bots controlled together, often used for large-scale attacks like DDoS.