Ransomware: before, during and after
How a ransomware attack unfolds, how to prepare, the first things to do, who to alert within 72 hours in France, and how to recover your business safely.
What you will learn
- How a ransomware attack unfolds, from initial access to double extortion
- What French figures and a real case teach us
- The defences that matter: backups, patching, MFA, segmentation, EDR
- The first things to do, and the things to avoid
- Who to alert in France and how fast: 17Cyber, CERT-FR, the police, your insurer, the CNIL
- How to organise recovery and the lessons-learned review
Monday, 7.30 am. The first people in can no longer open their files, whose extensions have changed. Every screen shows the same message: your data has been encrypted and copied; pay, or it will be published. RansomwareRansomwareMalware that encrypts an organisation’s data and demands a ransom to restore it, often also threatening to publish the stolen data. is the most destructive cyber attack an organisation can suffer: it can halt production, invoicing or patient care for weeks.
This chapter follows an attack from start to finish: how it is prepared, how to protect yourself, what to do in the first hours, and how to recover.
How an attack unfolds
Contrary to popular belief, encryption is not the start of the attack: it is the end. It is often preceded by days, even weeks, of silent intrusion.
1. Initial access
For businesses, explains Cybermalveillance.gouv.fr, the French national victim-assistance service, attacks most often begin with the exploitation of flaws in external access points or services exposed to the internet (remote desktop, VPN, network storage), in edge devices (firewalls, gateways) or in virtualisation software. Stolen credentials and phishing complete the picture. Globally, the Verizon 2026 DBIR finds that 31% of breaches now start with the exploitation of a vulnerability, ahead of stolen passwords.
Some criminals specialise in this step alone and then sell the access they obtain: they are known as initial access brokers.
2. Silent exploration
Once inside the network, the attacker tries to extend their rights (privilege escalationPrivilege escalationThe stage of an attack where an intruder who got in with limited rights obtains higher ones, up to administrator level.), hops from machine to machine (lateral movementLateral movementThe techniques an attacker uses to move from a first compromised machine to others on the network, until reaching the real targets.), identifies valuable data and, above all, locates the backups. ANSSI, the French national cybersecurity agency, stresses that more and more criminals go after backups to leave the victim no fallback and maximise the chance that it pays.
3. Double extortion
Before encrypting, the attacker copies (exfiltrates) the data. The victim then faces two pressures: getting access to its files back, and preventing their publication. That is double extortion. It becomes triple when the attacker adds a denial-of-service attack or contacts the victim’s customers and partners directly. Some groups even settle for stealing data without encrypting anything. Data theft is growing overall: ANSSI learned of 196 data exfiltration incidents in 2025, with or without ransomware, up from 130 in 2024.
4. An organised industry
Most attacks follow the ransomware-as-a-service (RaaS) model: an operator supplies the software and infrastructure, affiliates carry out the attacks and pay the operator a commission. In 2025, the strains most often seen in incidents handled by ANSSI in France were Qilin (21%), Akira (9%) and LockBit 3.0 (5%).
What French figures and cases show
According to ANSSI, small and mid-sized businesses remain the main victims. Local authorities accounted for 11% of cases in 2025, and healthcare establishments for 8%, a share that is rising again. Schools were also hit particularly hard in 2025. For Cybermalveillance.gouv.fr, ransomware is the fourth most common threat for companies and associations (8.1% of requests for help) and the third for local authorities (13.1%). The service describes it as the most formidable threat for an organisation, and the one with the greatest impact.
The trend is not easing worldwide either: according to the Verizon 2026 DBIR, ransomware is present in 48% of the breaches analysed.
On the night of 20 to 21 August 2022, the Centre hospitalier Sud Francilien in Corbeil-Essonnes, south of Paris, was hit by ransomware. The attackers demanded 10 million dollars. The hospital switched to degraded mode: back to pen and paper, procedures postponed, only life-threatening emergencies handled on site, other patients sent to nearby hospitals. The hospital refused to pay, in line with the French state’s position for public institutions; in September the attackers began leaking stolen data.
Before: getting ready
3-2-1 backups, offline and tested
This is the measure that makes the difference between a serious incident and a disaster. The 3-2-1 rule3-2-1 backup ruleA simple backup rule: 3 copies of your data, on 2 different types of media, with 1 kept off-site. is a good starting point: three copies of the data, on two different types of media, one of them off site. Against ransomware, two further requirements apply:
- at least one offline or immutable copy. ANSSI points out that the most critical backups must be disconnected from the information system: an external drive unplugged after use, tape, immutable storage. A NAS that stays connected, or plain snapshots, will be encrypted along with everything else;
- tested restores. A backup that has never been restored is a hypothesis, not a backup. Test regularly and measure how long a full restore actually takes.
Patch what is exposed, fast
Devices visible from the internet (VPN, firewall, email, remote desktop) are the favourite way in. Keep an inventory of them, patch them first, and never leave remote desktop open directly to the internet. This is the heart of patch managementPatch managementThe process of inventorying software, tracking published security patches and deploying them within timeframes that match the risk, without breaking production..
MFA on all remote access
VPN, email, admin tools, cloud consoles: a stolen password must never be enough to get in (see the previous chapter).
Segment the network and limit rights
A “flat” network lets the attacker reach everything from a single compromised computer. Separate the zones (workstations, servers, backups, administration), keep administrator accounts for administration only, and remove local administrator rights from everyday users.
Detect early
An EDREDR (endpoint detection and response)Software installed on computers and servers that watches their behaviour, detects malicious activity and lets defenders isolate or clean up a machine remotely. (endpoint detection and response) tool spots suspicious behaviour, such as an admin tool launched at 3 am or files being encrypted en masse, and can isolate a computer automatically. Someone still has to watch the alerts, in house or through a service provider.
Prepare for the crisis
Write a business continuity and disaster recovery planBusiness continuity (BCP / DRP)The business continuity plan (BCP) keeps essential activities running during a crisis; the disaster recovery plan (DRP) explains how to restart IT systems and recover data after a disaster., listing your priority activities and the acceptable downtime for each. Keep a paper crisis directory (service providers, insurer, bank, official contacts), because email may be down or monitored. And run at least one exercise a year.
| Measure | What it prevents | Priority |
|---|---|---|
| Offline, tested backup | Being unable to recover without paying | Immediate |
| Patching exposed devices | The most common initial access | Immediate |
| MFA on remote access | Getting in with a stolen password | Immediate |
| Segmentation and least privilege | Spread across the whole network | Short term |
| Monitored EDR | An intrusion going unnoticed | Short term |
| Crisis plan and exercise | Panic and bad decisions | Short term |
During: the first moves
If a ransom note appears, or files become unreadable:
- Isolate without switching off. Unplug the network cable and turn off Wi-Fi on the affected machines, but do not shut them down: their memory holds traces that are useful to investigators, sometimes even the means to recover files. If the machine allows it, ANSSI advises hibernation rather than cutting the power.
- Cut internet access for the affected network, so the attacker can no longer steer the ransomware or exfiltrate more data. Disconnect the backups once you have checked they are clean, and leave switched off any computers that have not been started yet.
- Raise the alert with your IT team or provider, then with management, who convene the crisis team.
- Keep an incident log: every action and every finding, with the time and the name of the person involved. Investigators, the insurer and the lessons-learned review will all rely on it.
- Communicate outside your usual email, which the attacker may be reading: phone, a backup messaging channel set up in advance.
- Keep the evidence and the encrypted files, even if they are unusable: a decryption tool may be published later, in particular on the No More Ransom site run by Europol and its partners.
A delicate point: faced with imminent destruction, experts may decide to shut certain systems down. Conversely, ANSSI notes that hasty measures, such as cutting power to an entire server room, can make the outage worse and wipe out traces. These trade-offs belong to the crisis team, supported by incident responseIncident responseThe organised set of actions taken to detect an attack, limit the damage, drive the attacker out, restore operations and learn the lessons. specialists.
ANSSI recommends never paying. Payment guarantees neither a decryption key nor that the data will stay unpublished; it funds the next attack and does not stop you being targeted again. Even with the key, files that were being modified at the moment of encryption, such as databases, are very likely to be corrupted.
Who to alert in France, and how fast
| Who | When | Why |
|---|---|---|
| 17Cyber and Cybermalveillance.gouv.fr | As soon as you discover it | Diagnosis, advice, referral to accredited “ExpertCyber” providers and to the police |
| CERT-FR (ANSSI), on 3218 or +33 9 70 83 32 18 | As soon as you discover it | Contact point for public administrations, operators of vital importance and regulated entities |
| Police or gendarmerie | No later than 72 hours after discovery | Formal complaint: opens the investigation and is a condition for insurance compensation |
| Your insurer | As soon as possible, as per your policy | Declare the claim and access the assistance provided |
| CNIL (French data protection authority) | Within 72 hours if personal data is affected | Mandatory notification (GDPR Article 33), and informing the people concerned if the risk is high |
| Your bank | As soon as possible | Watch for the payment fraud attempts that often follow |
Mid-sized companies, local authorities and associations that do not fall under CERT-FR can also turn to their regional CSIRTCSIRT / CERT (incident response team)A team dedicated to responding to security incidents for a given constituency (a company, a sector, a region, a country), which warns, advises and coordinates the response., which points them to local assistance.
Since 24 April 2023, Article L12-10-1 of the French Insurance Code has made any compensation for an attack on an information system conditional on a complaint filed no later than 72 hours after the victim becomes aware of it. The rule applies to legal entities and to individuals acting in a professional capacity, and to every covered loss, not just ransoms. Paying a ransom is not prohibited as such in France, but the authorities strongly advise against it.
After: recovering and learning
The temptation to restart everything as fast as possible is strong. It is also the best way to get encrypted a second time.
- Understand before rebuilding: how the attacker got in, what they touched, what they took. That is the job of digital forensicsDigital forensicsThe discipline of collecting, preserving and analysing digital traces (disks, memory, logs) to reconstruct what happened during an incident, rigorously enough for the evidence to stand up in court..
- Rebuild on clean foundations: systems reinstalled from trusted sources, backups checked before restoring (they may contain the attacker’s backdoor), starting with priority activities.
- Change every secret from a clean machine: administrator and service account passwords first, then everyone else’s, plus keys and certificates.
- Close the way in before reopening access: patch, remove the exposed service, enforce MFA.
- Monitor closely for several weeks: attackers often try to come back.
- Inform staff, customers and partners with verified facts, without downplaying or speculating.
- Hold a lessons-learned review: what worked, what was missing, and an action plan with dates and a budget. The incident log is invaluable here.
Key takeaways
- Encryption is the end of an often silent intrusion: the attacker steals the data first, then goes after the backups.
- An offline backup that is restored regularly as a test is your best insurance: without it, there is no clean recovery.
- First moves: isolate from the network without switching off, raise the alert, keep an incident log, do not pay.
- In France, file a police complaint within 72 hours of discovery to be covered by insurance, and notify the CNIL within 72 hours if personal data is affected.
- Rebuild on clean foundations, change every secret and learn from the incident so you are not hit twice.
Were you paying attention?
Three questions to check, no score, no account.
Sources
- ANSSI and French Ministry of Justice, Ransomware attacks: everyone is concerned (2020, in French)
- ANSSI, 2025 Cyber Threat Overview (CERTFR-2026-CTI-002, in French)
- Cybermalveillance.gouv.fr, Ransomware: what to do (in French)
- Cybermalveillance.gouv.fr, Cyber attack: a guide for business leaders (in French)
- Cybermalveillance.gouv.fr, 2025 activity report (March 2026, in French)
- Cybermalveillance.gouv.fr, Backups (in French)
- French Insurance Code, Article L12-10-1 (Légifrance)
- CNIL, Notifying a personal data breach (in French)
- Regulation (EU) 2016/679 (GDPR), Articles 33 and 34, EUR-Lex
- CERT-FR, Contact and incident reporting
- 17Cyber, French online assistance for victims
- No More Ransom (Europol, Dutch police and partners)
- Verizon, 2026 Data Breach Investigations Report
- France 24, Hospital cyber attack: a 10 million dollar ransom demanded (23 August 2022, in French)
- Le Monde, Corbeil-Essonnes hospital refuses to pay the ransom (25 September 2022, in French)