1 What is ransomware?
Ransomware is a type of malware that encrypts the files on your computer and demands a ransom — usually in cryptocurrency — in exchange for the decryption key. It is one of the most profitable and destructive categories of cybercrime, affecting hospitals, municipalities, small businesses and individuals alike. Once the encryption process starts, your documents, photos and databases can become unreadable in minutes.
Today's attacks are rarely "just" encryption. With double extortion, criminals steal your data first and threaten to publish it on a leak site if you don't pay. Triple extortion adds more pressure: a DDoS attack on your website, or emails and calls to your customers and partners. Some groups even skip encryption entirely and simply steal data and demand payment to keep it quiet.
Most attacks run on a Ransomware-as-a-Service (RaaS) model: developers rent their ransomware and leak site to "affiliates" who break into victims and share the ransom. LockBit, long one of the most prolific RaaS operations, was disrupted by law enforcement in Operation Cronos in February 2024 — but its affiliates and code moved on to other brands. See threat families for how these groups are tracked.
$1.1B+
Ransom payments tracked in 2023, a record (Chainalysis)
~$814M
Tracked in 2024, as more victims refused to pay (Chainalysis)
3-2-1
The backup rule that turns an attack into an inconvenience
2 How ransomware infects a machine
Ransomware rarely arrives as a mysterious zero-day exploit. Most infections come through mundane doors: a phishing email, a password stolen or bought online, an exposed Remote Desktop (RDP) or VPN service, or an unpatched internet-facing device. More rarely, a trusted software supplier is compromised upstream (supply chain attack).
Phishing emails & attachments
Fake invoices, ZIP/ISO archives or shortcut files hiding a loader, links to fake login pages. Since 2022, Office blocks macros in files from the internet by default — never click "Enable content" to override it.
Stolen credentials
Passwords harvested by infostealer malware or reused from old leaks are sold by "initial access brokers". Without MFA, one valid login to a VPN or email account is enough.
Exposed RDP / VPN & edge devices
Attackers brute-force weak passwords on Remote Desktop or VPN portals, or exploit known flaws in unpatched VPN appliances and firewalls.
Fake or cracked software
Cracked programs, fake updates and malicious ads that imitate popular downloads install a loader that later hands over to the ransomware crew.
3 The attack lifecycle
1. Initial access
The attacker gets a foothold (phishing email, stolen credentials, vulnerable VPN or RDP service).
2. Reconnaissance & lateral movement
They explore the network, steal admin credentials, and identify critical servers and backups. This can take days or weeks — a window to detect them.
3. Data exfiltration
Modern ransomware crews copy your data before encrypting — the basis of double extortion.
4. Encryption & ransom note
Backups are deleted or encrypted first, then files and servers are encrypted, and a ransom note points you to a .onion negotiation portal.
5. Negotiation, leak or more pressure
Pay and hope for a working decryptor and the deletion of stolen data (never guaranteed), or refuse and see your data published — sometimes with DDoS attacks or messages to your customers.
Analyze a suspicious file on mlab.sh
Received a weird attachment? Check its hash and verdict on the mlab.sh file scanner before opening it.
Scan a file on mlab.sh4 How to protect yourself
Keep offline, versioned backups (3-2-1 rule)
3 copies of your data, on 2 different media, with 1 copy offline or immutable (an unplugged drive, or cloud storage that can't be modified or deleted for a set period). Attackers hunt for connected backups first. Test restoration regularly.
Patch operating systems, applications and internet-facing devices
Many attacks exploit flaws patched months earlier — especially in VPNs and firewalls. Enable automatic updates and don't expose RDP directly to the internet.
Enable multi-factor authentication everywhere
Especially on VPN, email, admin and cloud accounts. Microsoft reported that MFA blocks over 99.9% of account-compromise attacks (Microsoft, 2019); prefer phishing-resistant methods such as passkeys or security keys. Learn more in two-factor authentication.
Keep Office macros from the internet blocked
Office blocks them by default since 2022: keep that setting enforced by policy, and treat any document or archive that asks you to "enable content" as hostile.
Do not pay the ransom if you can avoid it
Authorities such as ANSSI and cybermalveillance.gouv.fr advise against paying: it funds the criminal ecosystem, does not guarantee recovery or deletion of stolen data, marks you as a payer, and may break sanctions rules in some jurisdictions.
Ransomware FAQ
Is ransomware the same as a virus?
No. Ransomware is a specific category of malware whose goal is extortion, through encryption and/or data theft. A virus is defined by how it spreads, by infecting other files.
Can antivirus software stop ransomware?
Modern antivirus and EDR solutions stop most known strains, but attackers often disable security tools or use legitimate admin tools before launching the encryption. Backups remain your last line of defense.
Should I pay the ransom?
Law enforcement agencies and ANSSI consistently advise against it. Payment does not guarantee a working decryptor or the deletion of stolen data, and funds further attacks. Check nomoreransom.org first: free decryptors exist for some families.
What should I do first if I am hit?
Disconnect the infected machine from the network (cable and Wi-Fi) immediately but do not shut it down — memory may hold useful evidence. Preserve logs and the ransom note, and get help. In France: cybermalveillance.gouv.fr or 17cyber.gouv.fr for individuals and small businesses, ANSSI/CERT-FR for larger organisations, and file a complaint with the police or gendarmerie.
Related Modules
What is malware?
Viruses, ransomware, trojans: understanding the different families of malicious software.
Password security best practices
Strong passwords, password managers, passphrases: how to build a password strategy that actually works.
What is 2FA / MFA?
Two-factor authentication (2FA) and multi-factor authentication (MFA): why a password alone is not enough.
Source: mlab Academy — Cybersecurity Awareness Platform
URL: https://academy.mlab.sh//page/ransomware
Module: What is ransomware? — Digital Hygiene
Disclaimer: This content is for awareness purposes only.