Vai al contenuto
← Vulnerability and risk management

Lezione 4 di 4 · 7 min

Malicious software, in four families: viruses, worms, trojans and ransomware

Why these four matter in a risk program: how each one spreads, what it usually does, and which controls from this course reduce it. The Malware course goes deeper.

Per ora questa pagina è in inglese.

Malicious software is one of the threats that turns vulnerabilities into real losses. In a risk program you do not need to be a reverse engineer, but you do need to know how the main families spread and what they do, because that tells you which controls reduce their likelihood and impact. NIST’s glossary defines each family by how it spreads, and that is the most useful way to remember them.

Viruses: they need a host and a human

A virus attaches itself to another program or file and spreads when that host is run or shared, for example a document with a malicious macro opened by a user. NIST describes it as a program that replicates by infecting other programs, usually needing a person to take an action. Controls: limit who can run macros and unsigned code, keep security features like Gatekeeper on, and train people to be wary of unexpected attachments.

Worms: they spread on their own

A worm is self-replicating: it copies itself across networks without anyone clicking, usually by exploiting a vulnerability in a network service. Worms can spread worldwide in hours, which is why unpatched internet-facing systems are so dangerous. MITRE ATT&CK tracks this behaviour under “Exploitation of Remote Services” (T1210). Controls: patch management (previous lesson), network segmentation, and not exposing services to the internet that do not need to be.

Trojans: they arrive by invitation

A trojan pretends to be something useful, such as a cracked app, a fake update or a free tool, so that the victim installs it willingly. Once running, it may steal passwords and browser data, open a backdoor or download more tools. On the Mac, “infostealer” trojans are among the most common threats. Controls: install software only from trusted sources, keep Gatekeeper and notarization checks on, and watch which apps try to send data out.

Ransomware: it holds data hostage

Ransomware encrypts files and demands payment, and increasingly steals data first to threaten publication, a tactic CISA calls double extortion. It often arrives through phishing, stolen remote-access passwords or unpatched vulnerabilities, which means it sits at the end of a chain that the other controls in this course can break. Controls: offline backups, MFA on remote access, prompt patching, and watching for large or unusual uploads.

FamilyHow it spreadsKey controls
VirusAttached to a file or program a person runsLimit macros and unsigned code, user awareness
WormBy itself, across the network, via vulnerabilitiesPatching, segmentation, fewer exposed services
TrojanInstalled by the victim, disguised as something usefulTrusted sources, Gatekeeper, outbound monitoring
RansomwarePhishing, stolen access, unpatched systemsOffline backups, MFA, patching, exfiltration watch

Real attacks mix the families

These labels describe behaviours, and modern attacks combine them. A trojan disguised as a cracked app may install a backdoor, which later downloads ransomware; some ransomware adds worm-like spreading to reach every machine on a network. That is why the risk view in this course matters more than the name on the sample: each step in the chain, delivery, execution, spreading, contacting its operators and sending data out, is a place where a control can stop it. Mapping incidents to MITRE ATT&CK techniques such as User Execution (T1204) and Exploitation of Remote Services (T1210) helps you see which step your defences cover and where the gaps are.

Where a firewall fits, and where it doesn’t

Antivirus and endpoint security tools look at files and processes; a network firewall looks at connections. FireAI is the second kind: it does not scan files, but it controls which apps may connect and where, shows unexpected destinations on the world map, and can block addresses on threat lists. That matters because most malicious software needs the network, to download its next stage, report to its operators or send stolen data out. Layering both kinds of tools is the point.

For a deeper look at each family, rootkits, the people behind them and where stolen data ends up, take the “Malware and the hidden internet” course on FireAI University.

Da ricordare

  • Viruses need a host and a human action; worms spread by themselves through vulnerabilities.
  • Trojans are installed willingly because they look useful; infostealers are common on the Mac.
  • Ransomware now often steals data before encrypting it.
  • Each family maps to controls you already know: patching, backups, MFA, trusted sources, outbound monitoring.
  • File scanners and network firewalls cover different ground; use both.

Mettiti alla prova

  1. 1. Which family spreads across networks without anyone clicking anything?

    • Virus
    • Worm — Esatto.
    • Trojan
    • Adware

    Worms self-replicate, usually by exploiting a vulnerable network service, with no user action needed.

  2. 2. A “free” video converter from an unofficial site quietly uploads your browser passwords. What is it?

    • A worm
    • A trojan — Esatto.
    • A rootkit only
    • A firmware update

    It was installed willingly because it looked useful, the defining trait of a trojan; stealing passwords makes it an infostealer.

  3. 3. Which control most directly reduces the spread of worms?

    • Stronger screen savers
    • Prompt patching and not exposing unnecessary services — Esatto.
    • Longer passwords only
    • Deleting browser history

    Worms exploit vulnerabilities in reachable services. Patching them and reducing exposure removes their path.

Mettilo in pratica con FireAI

Metti in pratica questa lezione sul tuo Mac.

Fonti

Mettilo in pratica sul tuo Mac

Prova tutte le funzioni gratis per 17 giorni, senza carta.

Scarica per Mac Guide