Fundamentals

What is malware?

Viruses, ransomware, trojans: understanding the different families of malicious software.

1 Introduction

Malware is like a digital disease. Just as biological viruses infect the human body, malware infects computers, phones and networks. The word "malware" is short for "malicious software". It is an umbrella term for every program designed to cause harm: stealing data, locking systems, spying on users or taking control of machines. Today, most malware is not written for fun but by criminal groups looking for money.

8 types

Major malware families

1988

Morris worm, one of the first to spread across the internet

1 click

Is often all it takes to start an infection

2 How It Works

The family tree below shows the major malware families. Each branch represents a different type, with its own characteristics and method of attack. In practice, modern malware often combines several of them: a Trojan that installs spyware, then ransomware.

Malware
  • Virus

    Attaches to files

  • Worm

    Self-propagates

  • Trojan

    Disguises itself

  • Ransomware

    Encrypts & extorts

  • Spyware

    Spies silently

  • Infostealer

    Steals credentials

  • Adware

    Unwanted ads

  • Rootkit

    Hides deep in the system

Virus

Spreads by attaching itself to other files or programs. Like a biological virus, it needs a host to reproduce. The classic form has become rare, but the word is often used for all malware.

Worm

Spreads on its own across networks, without any human action, usually by exploiting an unpatched vulnerability. Can infect thousands of machines in hours.

Trojan

Disguises itself as legitimate software (a free game, an invoice, an "update") to trick the user. Once installed, it opens a backdoor or downloads other malware.

Ransomware

Encrypts your files and demands a ransom to unlock them, often after stealing a copy to threaten publication. The most feared type for businesses (see Ransomware).

Spyware

Silently monitors your activity: keystrokes, websites visited, screenshots. Its very common cousin, the infostealer, steals saved passwords and session cookies in seconds.

Adware

Displays unwanted advertisements. Less dangerous, but often bundled with spyware or malicious redirects.

Rootkit

Hides deep inside the operating system. Extremely hard to detect, it gives the attacker total and persistent access.

3 Detailed Analysis

How malware spreads

Email attachments and links

Still the main entry point. Since Microsoft started blocking macros in files downloaded from the internet by default (2022), attackers have turned to ZIP archives, disk images, shortcut (.lnk) files, HTML attachments and links to fake download pages. One click is often enough. See Recognizing a malicious file.

Fake updates and fake CAPTCHAs

A website tells you your browser is out of date, or asks you to "prove you are human" by pasting a command into the Run box or a terminal. That command installs the malware. A real site never asks you to do this.

Compromised websites and fake ads

Legitimate sites hacked to distribute malware, fake sites imitating well-known software, or sponsored search results pointing to a booby-trapped download.

Pirated software and cracks

Downloading "free" paid software, a crack or a game cheat is one of the most common ways to catch a Trojan or an infostealer.

Unpatched vulnerabilities

Worms and attackers exploit security flaws in systems that have not been updated. No click is needed: keeping devices up to date is the best defense.

USB drives and peripherals

Modern systems no longer run USB content automatically, but an unknown drive can contain booby-trapped files, or even pretend to be a keyboard and type commands by itself. This is how Stuxnet reached isolated networks.

Famous examples

WannaCry (2017)

Ransomware worm that infected more than 200,000 computers in about 150 countries within days, paralyzing hospitals, factories and administrations. It exploited a Windows flaw (EternalBlue) for which Microsoft had released a patch two months earlier.

Emotet (2014–)

Started as a banking Trojan and became a malware distribution platform, spreading by replying to real stolen email threads. Taken down by an international operation coordinated by Europol in January 2021, it resurfaced later that year: proof that a takedown is rarely final.

To learn how analysts group malware into families and track them over time, see Threat families.

Try it on mlab.sh

Submit a suspicious file to scan it against multiple detection engines. Get a detailed analysis report with verdicts, detection names and behavioral indicators.

Scan a file on mlab.sh

4 Red Flags

Computer suddenly slows down or overheats

If your machine becomes very slow or its fan runs constantly for no reason, malware may be using your resources (cryptocurrency mining, sending spam...).

Unknown programs launch at startup

Check from time to time which programs start automatically. An unknown or random-looking name is a sign of infection.

Unusual pop-ups and redirects

Ad windows appear even when your browser is closed, your home page or search engine has changed, or you are redirected to sites you did not ask for.

Antivirus mysteriously disabled

Some malware disables security software as a first priority. If your antivirus turns itself off, that is a serious warning sign.

Accounts used without you

Logins you did not make, messages sent in your name, password reset emails you did not request: an infostealer may have taken your passwords or session cookies. Change your passwords from another, clean device.

Files renamed or inaccessible

Files with strange extensions (.encrypted, .locked, .crypt) and a message asking you to pay? That is ransomware. Disconnect the machine from the network, do not pay (authorities advise against it), and check the No More Ransom project, which offers free decryption tools for some families.

Related Modules