The main families.
| Family | What it does | How it spreads |
|---|---|---|
| Virus | Inserts itself into a file or program and runs with it | When the infected file is opened or shared |
| Worm | Copies itself from one machine to the next on its own | Over the network, by exploiting a flaw, with no human action |
| Trojan horse | Poses as useful software and opens a way in for the attacker | Attachment, fake software, fake update |
| Ransomware | Encrypts files and demands a ransom, often after stealing data | After an intrusion, through stolen access or a flaw |
| Spyware, infostealer | Harvests credentials, session cookies, keystrokes | Attachment, pirated software, browser extension |
The families combine: a Trojan often installs a second program, which paves the way for ransomware. WannaCry, in May 2017, was both a worm and ransomware: it spread on its own to hundreds of thousands of computers by exploiting a Windows flaw patched two months earlier.
How it gets into an SME.
- Email: booby-trapped attachment, link to a fake shared document, invoice in a password-protected archive to slip past filtering.
- Exposed equipment: a VPN gateway, firewall or mail server with an unpatched flaw.
- Stolen access: a remote desktop exposed to the internet, a VPN account without two-factor authentication.
- Downloads: pirated software, a fake browser update, a fake site for a well-known tool promoted by a search engine ad.
- USB sticks and other media found or lent.
The first of these routes goes through a person: that is the territory of social engineering and email protection.
What it does once installed.
Today’s malware rarely acts straight away. It settles in for the long term, contacts an attacker’s server to receive instructions, harvests credentials, then spreads to other machines. In a ransomware attack, this phase lasts from a few hours to several weeks: the attackers look for backups, copy data to sell or publish, then trigger the encryption, often at night or over a weekend.
Many attacks use hardly any malware: they hijack legitimate administration tools, PowerShell or remote access software, which antivirus lets through. That is why behaviour monitoring is necessary.
The defences to put in place.
- An EDR on every workstation and server, and someone to read its alerts: it spots suspicious behaviour and isolates the machine. The choice is covered on the antivirus, EDR or XDR page.
- Updates, starting with devices exposed to the internet.
- No admin rights for everyday use: a program launched by a standard user has less hold over the machine.
- Email filtering and blocking macros in documents from the internet, which Microsoft Office has done by default since 2022.
- Offline backups, which malware cannot reach.
If a computer is hit.
Disconnect it from the network, cable and Wi-Fi, without switching it off: its memory holds useful traces. From another device, change the passwords used on that machine, tell your IT manager and note the time and what you saw. If several machines are affected or files become unreadable, follow the steps on the first hour of a cyberattack page and call our emergency response.
Cybermalveillance.gouv.fr also offers an online diagnosis and a list of approved providers near you. Related terms are in the cyber glossary.
Bonbay. Updated 15 November 2026.