Aula 4 de 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.
Por enquanto esta página está em inglês.
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.
| Family | How it spreads | Key controls |
|---|---|---|
| Virus | Attached to a file or program a person runs | Limit macros and unsigned code, user awareness |
| Worm | By itself, across the network, via vulnerabilities | Patching, segmentation, fewer exposed services |
| Trojan | Installed by the victim, disguised as something useful | Trusted sources, Gatekeeper, outbound monitoring |
| Ransomware | Phishing, stolen access, unpatched systems | Offline 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.
Para lembrar
- 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.
Teste seus conhecimentos
1. Which family spreads across networks without anyone clicking anything?
- Virus
- Worm — Certo.
- Trojan
- Adware
Worms self-replicate, usually by exploiting a vulnerable network service, with no user action needed.
2. A “free” video converter from an unofficial site quietly uploads your browser passwords. What is it?
- A worm
- A trojan — Certo.
- 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. Which control most directly reduces the spread of worms?
- Stronger screen savers
- Prompt patching and not exposing unnecessary services — Certo.
- Longer passwords only
- Deleting browser history
Worms exploit vulnerabilities in reachable services. Patching them and reducing exposure removes their path.
Praticar com o FireAI
Coloque esta lição em prática no seu próprio Mac.
- Find apps with known security flaws — Close known holes before anyone uses them: update the one app that needs it.
- Threat lists (opt-in) — Check your traffic against public threat data without sending it anywhere.
- Investigate a connection — Decide with the facts in front of you, not a vague warning.
- The Threats page: what looks wrong, and why — See the handful of connections worth your attention, instead of scrolling through thousands.
Fontes
- NIST CSRC Glossary: Virus
- NIST CSRC Glossary: Worm
- NIST CSRC Glossary: Trojan horse
- MITRE ATT&CK T1210: Exploitation of Remote Services
- MITRE ATT&CK T1204: User Execution
- CISA: #StopRansomware Guide
- Apple Platform Security: Protecting against malware
Coloque em prática no seu Mac
Teste todos os recursos grátis por 17 dias, sem cartão.