Ransomware is a type of malicious software that takes your data hostage. It encrypts the files on a device or across a whole network so you can no longer open them, then displays a message demanding payment, usually in cryptocurrency, in exchange for the key to unlock them. Some strains add a second threat: pay up, or we publish your stolen data. Either way, the goal is the same, to pressure you into handing over money.

It has grown into one of the most disruptive threats online because the damage is instant and visible. Files vanish behind encryption, systems grind to a halt, and a countdown clock appears. The good news is that ransomware relies on a handful of predictable entry points, and the defenses against it are well understood.

How ransomware works

A typical attack unfolds in stages rather than all at once. First the attacker gains access, often through a single compromised account or device. Then, rather than encrypting immediately, they tend to look around: mapping the network, escalating their privileges, and spreading to as many systems as possible. In many incidents they also copy sensitive data out before doing anything visible.

Only at the end do they trigger the encryption, scrambling files so they cannot be read without a key the attacker controls. Modern ransomware uses strong encryption that cannot realistically be cracked, which is the whole point of the scheme. By the time the ransom note appears, the attacker has usually already done everything they need, and your files are locked tight.

This staged approach is why speed of detection matters so much. The gap between the first intrusion and the moment of encryption, sometimes hours, sometimes weeks, is the window in which defenders can still catch and stop an attack before the real damage is done. Many ransomware operations now run as a service, where one group builds the malware and rents it to others who carry out the break-ins, which is part of why the number of active groups and attacks has climbed in recent years.

Common entry points

Most ransomware gets in through a short list of doors. The leading one is phishing: an email that looks routine carries a malicious attachment or a link to a poisoned site, and one click starts the chain. Security researchers consistently rank phishing as the single most common initial access method for ransomware.

The other major route is exposed remote access, especially Remote Desktop Protocol, or RDP, left open to the internet with weak or reused passwords. Attackers scan for these endpoints constantly and brute-force their way in. Beyond those two, unpatched software flaws and stolen credentials round out the common entry points. Notice the pattern: nearly every route involves a human being tricked, a password being weak, or an update being skipped.

Why the stakes are high

Ransomware is costly in ways that go beyond the ransom itself. Even organizations that recover face days or weeks of downtime, lost productivity, incident response bills, and reputational damage. For hospitals and emergency services, the disruption can put lives at risk, which is partly why these sectors are targeted so often.

The data-theft angle has made things worse. Because many attackers now steal files before encrypting them, even a victim with perfect backups faces the threat of their information being leaked. That is one reason attacks in which a company’s internal data is exposed overlap so heavily with the broader problem of a data breach. Encryption and extortion have become two sides of the same attack.

The disruption also ripples outward. When a logistics firm, a payment processor, or a software vendor is hit, its customers and partners feel the effects even if their own systems were never touched. This knock-on reach is why ransomware is treated as a serious issue for critical services and not just for the individual victim, and why governments have put growing effort into disrupting the groups behind it.

Should you pay the ransom?

The official answer is clear. The FBI and CISA discourage paying the ransom. Their reasoning is practical: paying does not guarantee you will get your files back, and victims sometimes hand over money only to receive a decryption tool that is broken or incomplete.

Paying also carries knock-on costs. It marks you as a target willing to pay, which invites repeat attacks, and the money funds the criminal groups behind ransomware, encouraging more of it. There can be legal complications too, since some ransomware operators are under government sanctions. None of this means victims are wrong to feel desperate, but it explains why the guidance from law enforcement is consistent: paying should be a last resort, not a first response, and it is never a guarantee.

Backups are your best defense

The most reliable protection against ransomware is a backup the attacker cannot touch. A widely recommended approach is the 3-2-1 rule: keep three copies of your important data, on two different types of storage, with at least one copy stored offline or off-site. CISA specifically recommends maintaining offline, encrypted backups and testing them regularly.

The word offline is the key. Ransomware actively hunts for connected backups and encrypts or deletes them along with everything else, so a backup that lives on an always-connected drive or an automatically synced cloud folder may be destroyed in the same attack. A copy that is physically disconnected, or otherwise unreachable from the network, survives. Just as important, test your restores. A backup you have never verified is a guess, not a safety net. With clean offline backups, you can wipe the affected systems and rebuild rather than negotiate.

How to prevent an attack

Prevention stacks several ordinary habits. Keep your operating system and software updated, since patches close the flaws attackers exploit. Turn on multi-factor authentication everywhere you can, which blocks most attacks that rely on stolen or guessed passwords. If you do not need remote access such as RDP exposed to the internet, close it; if you do need it, put it behind a VPN and strong authentication.

Be cautious with email. Treat unexpected attachments and links with suspicion, even when the sender looks familiar, and when in doubt verify through another channel. Use reputable security software as one layer, and give every account a strong, unique password. A password manager makes that practical, because reused passwords are exactly what let attackers move from one compromised account to an entire network.

What to do if you are hit

Act quickly but deliberately. Disconnect the affected device from the network to stop the ransomware spreading to other machines, but resist the urge to wipe everything instantly if you intend to report the incident, since investigators may want to see it. Photograph or save the ransom note and note which files are affected.

Then restore from clean offline backups once you are confident the threat is gone, rebuilding affected systems rather than trusting them. For some ransomware families, free decryption tools are available through reputable projects, so it is worth checking before assuming the data is lost for good. Do not reconnect a device to the network until you are sure it is clean, and change passwords from a device you know is safe.

Reporting ransomware

Reporting matters even when it feels pointless. The FBI and CISA urge victims to report ransomware incidents whether or not they pay, because the information helps authorities track criminal groups, warn other potential targets, and occasionally recover funds or release decryption keys. In the United States, you can file a report with the FBI’s Internet Crime Complaint Center at IC3.gov and notify CISA directly.

Treat ransomware as a serious but manageable risk rather than a catastrophe you are powerless against. The attackers depend on predictable mistakes, skipped updates, weak passwords, careless clicks, and on victims who have no backups. Remove those advantages and you remove most of their leverage. Preparation, not panic, is what keeps your data yours.

If you run a small business or manage devices for a family, it is worth writing down a simple plan before anything goes wrong: who to call, where the backups live, how to disconnect systems, and how to reach the authorities. A plan you can follow under stress is far more valuable than one improvised during a crisis. Practicing a restore from your backups once in a while turns that plan from theory into something you know actually works, which is exactly the confidence you want on the day it matters.