How ransomware works
- It gets in. You open an email attachment, click an ad or a link, or visit a compromised website.1 Outdated apps and operating systems are the target of most attacks.2
- It encrypts your files. Documents, photos and the systems that rely on them become unusable.3
- It asks for money. A note on screen demands a ransom in exchange for the key to decrypt them.3
- It may threaten a leak. Attackers who copied the files first can threaten to sell or publish them, even after you restore from a backup.3
How common ransomware is
Ransomware complaints to the FBI’s Internet Crime Complaint Center have gone up three years in a row. The FBI notes that the reported losses leave out lost business, time and files, so the real cost is higher.4
| Year | Complaints |
|---|---|
| 2023 | 2,825 |
| 2024 | 3,156 |
| 2025 | 3,611 |
Should you pay the ransom?
The FBI does not support paying. Paying doesn’t guarantee you get your data back, and it encourages attackers to go after more victims.1 CISA says the same in plain terms: some victims pay, but there is no guarantee they recover their files.2
How to protect yourself from ransomware
- Back up, and keep a copy offline. Back up on a regular basis to a separate device that isn’t connected to your computer or network.21
- Keep everything updated. Install updates for your operating system and apps, and turn on automatic updates.2
- Be wary of unexpected email. Don’t open attachments or links in email you weren’t expecting.2
What to do if you’re hit
- Isolate the device. Disconnect it from the network, or power it down if you can’t, so it doesn’t spread.5
- Report it. In the US, file a report with the FBI at ic3.gov, or contact CISA or your local FBI field office.5
- Restore from a clean backup once the device is wiped, and change the passwords you used on it.
Related terms
Sources
- FBI Internet Crime Complaint Center, Ransomware.
- CISA, Ransomware FAQs.
- CISA, Ransomware 101.
- FBI Internet Crime Complaint Center, 2025 Internet Crime Report.
- CISA, I’ve been hit by ransomware.
Questions about ransomware
Is ransomware a virus?
It is a type of malware, the umbrella term for harmful software, and people often call it a virus. What makes it ransomware is the demand: it locks your files and asks for money to unlock them.
What is ransomware designed to do?
To make your files or systems unusable until you pay. It does that by encrypting them, and many attackers also copy the files first so they can threaten to leak them.
Can you remove ransomware?
Removing the program doesn’t unlock files it already encrypted. To get those back you need a clean backup, which is why an offline backup matters so much.
How do you know if you have ransomware?
Usually you don’t, until it strikes. Most people find out when they can no longer open their files or see a message on screen demanding payment.