Ransomware: understanding, preventing and responding to an attack
What ransomware is, how an attack unfolds, what double extortion means, how to protect yourself and what to do, hour by hour, if you are hit.
Ransomware is malicious software that encrypts a victim's data and systems to demand a ransom, usually after stealing that data so as to threaten to publish it. Hospitals, local authorities, manufacturers, small businesses: no organisation is too small to be targeted. This article explains how an attack unfolds, how to prevent it and what to do if it happens, with a focus on the French framework. For the specific case of intrusions through VPNs and firewalls, see our news article on edge devices as the main way in.
What is ransomware?
The word combines ransom and software. The principle is old: make data unusable by encrypting it, then sell the decryption key. What has changed is how attackers are organised.
Attacks no longer just target random individuals. Since 2020, CERT-FR, the French government computer emergency response team, has described "big game hunting": groups that target companies and institutions able to pay a lot, and take the time to prepare. Many operate as ransomware as a service: one group develops the software and rents it to affiliates, who carry out intrusions and share the proceeds. Other players specialise in selling access to networks already compromised.
In France, 128 ransomware compromises were reported to ANSSI, the national cybersecurity agency, in 2025, according to its threat landscape report. The figure only counts cases reported to the agency. The same report notes that some attackers are moving away from encryption towards pure data theft followed by a threat to publish.
How a ransomware attack unfolds
A targeted attack is not instantaneous. ANSSI's ransomware guide describes a progression in several stages, which may take days or weeks between intrusion and encryption. That delay is an opportunity: each stage leaves traces, and each has its countermeasure.
- Initial access: exploiting a vulnerability in an internet-facing device, stolen or reused credentials, a phishing email, or access bought from a broker. A compromised supplier or managed service provider can also be the way in (see supply chain attacks).
- Foothold: the attacker installs tools, often legitimate administration software to stay unnoticed, and seeks higher privileges.
- Spread: they move from machine to machine until they control the directory (for example Active Directory), which holds the keys to the whole network.
- Exfiltration: they copy the data that will create pressure, such as HR, financial, customer or health files.
- Destroying backups: ANSSI's guide stresses that attackers aim to encrypt all servers, backups included. Backups reachable from the network therefore do not protect against a targeted attack.
- Encryption, often launched in the evening or at the weekend, and the ransom demand.
Double extortion
Backups were long the ultimate defence: if you can restore everything, why pay? Attackers responded with double extortion. CERT-FR dates it to late 2019: before encrypting, they steal the data, then threaten to publish it on a leak site if the victim does not pay. Even an organisation that restores everything remains exposed to blackmail.
According to the 2025 report, attackers still practise double or even triple extortion, adding further pressure such as denial-of-service attacks or contacting the victim's customers and partners directly. A ransomware attack is therefore almost always a data breach too, with the obligations that follow (see below). Our articles on a hospital cyberattack sanctioned by the CNIL and on data leaks in the French State show the consequences.
Preventing a ransomware attack
ANSSI's guide makes backups the top priority while stressing that they are not enough. The essential measures, in the order of the attack stages:
- Reduce the attack surface: inventory what is exposed to the internet, patch quickly, starting with edge devices, and enforce multi-factor authentication on all remote access and administrator accounts.
- Detect: up-to-date antivirus, preferably an endpoint detection and response tool on workstations and servers, with centralised logs that someone actually reviews.
- Slow the spread: segment the network, limit user rights, separate administrator accounts from everyday accounts, protect the directory.
- Protect backups: at least one offline or immutable copy, taken regularly, and tested restores. A backup you have never restored is only a hypothesis.
- Prepare for the crisis: a crisis management plan and a disaster recovery plan known to management, printed emergency contacts, an exercise at least once a year.
- Train users to recognise phishing and report suspicious behaviour quickly.
These measures make full sense when they answer an explicit risk scenario. Ransomware is top of the list in any risk analysis, and its impact is measured in the business impact analysis of your business continuity plan: how long can you operate without a given system?
What to do if you are hit by ransomware
The first hours count. The Cybermalveillance.gouv.fr checklist, from the French government victim assistance service, and ANSSI's guide agree on these steps:
- Isolate without switching off: disconnect affected machines from the network (cable, Wi-Fi), but do not shut them down unless encryption is still running: their memory holds traces useful to investigators.
- Protect backups: disconnect them from the network immediately so they are not encrypted in turn.
- Raise the alarm: your IT team or provider, then an incident response specialist. In France, the 17Cyber platform, launched in December 2024 by the police, the gendarmerie and Cybermalveillance.gouv.fr, guides victims and connects them with providers.
- Set up a crisis team with management, and keep a log: a dated record of everything observed and decided.
- Preserve evidence: ransom note, encrypted files, logs. Do not reinstall anything before filing a complaint.
- Communicate internally and, where needed, with customers and partners, through a safe channel: your usual email may be compromised.
ISO 27035 structures this response in phases, from detection to lessons learned: see our article on security incident management.
Should you pay the ransom?
ANSSI and Cybermalveillance.gouv.fr are consistent: do not pay. Three reasons:
- Nothing is guaranteed: the key may not work, or only partly, and restoring takes time anyway.
- Paying does not undo the theft: nothing stops the attacker from publishing or reselling the exfiltrated data, or coming back.
- Paying funds the next attacks and marks you as a target that pays.
Under French law, paying is not banned as such. The law of 24 January 2023 on the Ministry of the Interior regulated it on the insurance side: under Article L12-10-1 of the Insurance Code, cover for losses caused by a cyberattack only applies if the victim filed a complaint no later than 72 hours after becoming aware of the attack. Before any decision, also check whether a free decryption tool exists on No More Ransom, backed by Europol.
Complaints and notifications: who to tell
| Who (France) | When | Why |
|---|---|---|
| Police, gendarmerie or prosecutor | No later than 72 hours after discovery to be covered by insurance | Criminal complaint; condition for insurance cover (Article L12-10-1 of the Insurance Code) |
| Insurer | According to the policy, as soon as possible | Claim; some policies include incident assistance |
| CNIL (data protection authority) | 72 hours after becoming aware, if personal data is affected | Breach notification (GDPR Article 33); informing individuals if the risk is high (Article 34) |
| ANSSI (CERT-FR) | Without delay for regulated operators; recommended for all | Mandatory for operators of vital importance and of essential services; technical support |
For data protection authorities, ransomware is almost always a personal data breach: encryption makes data unavailable, exfiltration exposes it. The European guidelines (WP250) state that a loss of availability, even temporary, must at least be documented in the internal breach register. The CNIL recommends notifying within 72 hours and completing later, rather than waiting until all the information is in.
Operators covered by France's military programming law or by the transposition of the first NIS directive already report incidents to ANSSI. Under NIS 2, thousands of essential and important entities will have to follow the timetable in Article 23: early warning within 24 hours, notification within 72 hours, final report within a month. In France, the transposition law has not yet been passed (see our article on the resilience bill), but these deadlines are worth building into your procedures now.
Rebuilding and learning lessons
Restarting too fast is a common mistake: if the attacker left a backdoor or the directory is still compromised, they will be back. Rebuilding usually follows this order: understand how the attacker got in and what they touched, rebuild a trusted core (directory, administrator accounts, renewed passwords and secrets), restore from clean backups, then bring services back by business priority, following your recovery plan.
Then comes the post-incident review: what allowed the intrusion, what delayed it or could have stopped it, how long did each response step take? Its findings feed the risk analysis, the action plan and the security policy. Think about your suppliers too: a compromised provider can be the source of the attack or suffer its effects, hence the value of third-party risk management.
To build the ransomware scenario into your risk analysis and track the resulting measures, see our risk analysis module.
Summary
An attack in several stages
Before encryption, the attacker gets in, settles, spreads, steals data and destroys backups. Each stage is a chance to detect and stop them.
Offline backups and a tested plan
Patching, multi-factor authentication, segmentation, detection and above all a restorable offline backup: that is what makes the difference on the day of the attack.
Don't pay, report, notify
French authorities advise against paying. In France, file a complaint within 72 hours to be eligible for insurance cover, and notify the data protection authority within 72 hours if personal data is affected.
Frequently asked questions
What is ransomware?
Ransomware is malicious software that blocks access to a victim's data or systems, usually by encrypting them, then demands a ransom to restore them. Attackers also steal data before encrypting it and threaten to publish it: this is double extortion.
How does ransomware get into a network?
Most often through an unpatched vulnerability in an internet-facing device (VPN, firewall, remote access gateway), through stolen or reused credentials, or through a phishing email. Initial access is sometimes bought from a specialised broker before another group exploits it.
What should you do in a ransomware attack?
Isolate machines from the network without switching them off, disconnect backups, alert your provider or incident response team, set up a crisis team and keep a dated log of actions. Do not pay, preserve evidence, report the crime to the police and notify the data protection authority within 72 hours if personal data is involved.
Should you pay the ransom?
French authorities (ANSSI and Cybermalveillance.gouv.fr) advise against paying: nothing guarantees you will get your data back, or that stolen data will not be published or resold, and payment funds further attacks. Paying is not banned as such in France, but insurance can only cover a cyberattack if a complaint was filed within 72 hours.
Should you report a ransomware attack to the police?
Yes. In France, the complaint is filed with the police, the gendarmerie or in writing to the public prosecutor, before reinstalling machines so that evidence is preserved. For a company, it also determines insurance cover: Article L12-10-1 of the French Insurance Code requires it to be filed no later than 72 hours after the attack is discovered.
Is a ransomware attack a personal data breach?
Usually, yes. Encryption makes data unavailable and exfiltration exposes it: either way, it is a personal data breach under the GDPR if personal data is involved. It must be recorded in the internal breach register and notified to the supervisory authority within 72 hours, unless it is unlikely to result in a risk to individuals.
Sources (12)
- ANSSI — Attaques par rançongiciels, tous concernés : comment les anticiper et réagir en cas d'incident ? (2020)
- CERT-FR — Panorama de la cybermenace 2025 (CERTFR-2026-CTI-002, mars 2026)
- CERT-FR — État de la menace rançongiciel à l'encontre des entreprises et des institutions (CERTFR-2021-CTI-001)
- Cybermalveillance.gouv.fr — Rançongiciel : que faire si votre organisation est victime d'une attaque ?
- CNIL — Violations de données personnelles : les règles à suivre
- CNIL — Notifier une violation de données personnelles
- Groupe de travail « Article 29 » — Lignes directrices sur la notification de violations de données à caractère personnel (WP250)
- Légifrance — Article L12-10-1 du code des assurances (loi n° 2023-22 du 24 janvier 2023)
- Gendarmerie nationale — « 17Cyber » : la nouvelle plateforme de lutte contre la cybercriminalité est en ligne (décembre 2024)
- No More Ransom — outils de déchiffrement (Europol et partenaires)
- EUR-Lex — Directive (UE) 2022/2555 (NIS 2), article 23
- EUR-Lex — Règlement (UE) 2016/679 (RGPD), articles 33 et 34
A platform and service that adapt to you
Our platform is designed for fine-tuned configuration and broad adaptability to your needs.