What is malware? Virus, Trojan, ransomware: the families.

Bonbay Updated 4 min read

The main families.

FamilyWhat it doesHow it spreads
VirusInserts itself into a file or program and runs with itWhen the infected file is opened or shared
WormCopies itself from one machine to the next on its ownOver the network, by exploiting a flaw, with no human action
Trojan horsePoses as useful software and opens a way in for the attackerAttachment, fake software, fake update
RansomwareEncrypts files and demands a ransom, often after stealing dataAfter an intrusion, through stolen access or a flaw
Spyware, infostealerHarvests credentials, session cookies, keystrokesAttachment, 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.

  1. 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.
  2. Updates, starting with devices exposed to the internet.
  3. No admin rights for everyday use: a program launched by a standard user has less hold over the machine.
  4. Email filtering and blocking macros in documents from the internet, which Microsoft Office has done by default since 2022.
  5. 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.

Your questions.

Is antivirus enough against malware?

It stops threats that are already known, which is still useful. Targeted attacks use modified tools or legitimate programs turned to malicious use, which a conventional antivirus does not recognise. An EDR monitors behaviour, such as a program encrypting hundreds of files in a few seconds, and can isolate the machine.

How do you know if a computer is infected?

Some signs are warnings: sudden slowness, unexpected windows, antivirus disabled, emails sent without your knowledge, passwords rejected on accounts you use. Yet much malware stays invisible, because its aim is to last. If in doubt, disconnect the computer from the network without switching it off and call in a specialist.

What is an information stealer, or infostealer?

It is malware that harvests passwords saved in the browser, session cookies and sometimes crypto-asset wallets, then sends them to the attacker. Stolen cookies let someone open a session without going through two-factor authentication again. This access is then resold and used as a way into other attacks, including ransomware.

Can a Mac or a phone be infected?

Yes, even though attacks mostly target Windows, the most widely used system in business. Infostealers target macOS, and booby-trapped apps circulate on Android, especially outside the official store. The same rules apply everywhere: updates, apps from trusted sources, and no administrator rights for everyday use.

Should you pay when ransomware has encrypted your files?

The French authorities advise against it: paying guarantees neither that you get the key nor that the stolen data is deleted, and it funds the next attacks. Isolate the machines, notify your insurer, report it to the police and call in an incident response specialist. Getting back up and running depends on backups that have remained intact.

Further reading.

Le sujet plus largeCyber glossaryThis glossary explains the cybersecurity terms business leaders come across most often, grouped into three families: threats, such as ransomware and phishing; protections, such as two-factor authentication and firewalls; and monitoring services, such as SOC, SIEM and MDR.On the same subjectSOCThe team that monitors alerts, investigates and responds, in-house or outsourced.On the same subjectMDRAn external team monitors your workstations and acts: the service built around EDR.On the same subjectSOARThe software that runs the response to an alert on its own, under an analyst's supervision.On the same subjectDefence in depthStack independent protections so that a single failure is never enough.On the same subjectSIEMThe tool that collects logs, links them and produces the alerts the SOC reads.On the same subjectZero trustChecking every access against identity, device and context, step by step.On the same subjectVulnerabilities and CVEsThe vulnerability, its CVE number, its CVSS score, and the order in which to fix it.On the same subjectSocial engineeringPhishing, fake support, CEO fraud, cloned voices: deceiving rather than forcing.On the same subjectEDR and XDR for SMEsAntivirus, EDR, XDR, MDR: the differences, what an SME needs, the price per device.On the same subjectRansomwareWith ransomware, Bonbay Cyber first isolates the affected machines to stop it spreading, then copies the evidence needed for the investigation.Bonbay Académie · With another serviceCours d'intelligence artificielleLes cours et le glossaire de Bonbay Académie pour comprendre l'IA avant de s'en servir.Bonbay IA · With another serviceComprendre l'intelligence artificielleLe guide et le lexique de Bonbay IA : définitions, types d'IA, limites.Bonbay, le groupe · With another serviceRançongiciel : vos sauvegardes tiendraient-elles ?Les questions à se poser sur ses sauvegardes, par le groupe Bonbay.