What Is Ransomware? How It Locks Files and How to Stop It

A person looking at a laptop showing a warning message on screen

What Is Ransomware? How It Locks Files and How to Stop It

A person looking at a laptop showing a warning message on screen

Here is what is ransomware and how to protect your files, explained in plain language, with the examples and context you need.

You open your laptop, and instead of your files, you see a message: your documents, photos, and videos have been encrypted, and you must pay to get them back. Your children’s photos, your tax records, your work files, all locked, and the only key is in the hands of a stranger who wants money.

That is ransomware, and it is no longer just a problem for big companies. Home users are targeted too, and the attacks have changed: criminals now steal your data before they encrypt it, and threaten to publish it if you refuse to pay.

This guide explains what ransomware is and how to protect your files, including the 3-2-1 backup rule, how to test that a restore actually works, and what to do in the first hour.

You will learn how ransomware reaches a home computer, why paying is rarely the answer, how to build backups that survive an attack, and the exact steps to take if you are infected. The goal is to make your files un-lockable, so that an attack becomes an inconvenience, not a disaster.

The short answer is that ransomware is malware that encrypts your files and demands payment for the key, and the best defence is a backup that the ransomware cannot reach, tested regularly, plus the habits that stop the infection in the first place.

If you have a good backup, you do not need the key, and the attacker’s leverage disappears.

Ransomware is frightening, but it is also preventable, and the steps in this guide are the same ones that security professionals use for their own families. They take a little time to set up, and they pay for themselves the day an attack arrives.

Key Takeaways

  • Ransomware encrypts your files and demands payment, and modern attacks steal data first.
  • Paying does not guarantee your files back, and it funds the next attack.
  • The 3-2-1 backup rule is the best defence: three copies, two media, one off-site.
  • Test your restore regularly, because a backup you never tested may not work.
  • In the first hour, disconnect, do not pay, and report the attack.

An external hard drive on a desk beside a laptop
How Ransomware Reaches Your Computer

Ransomware usually arrives through the same routes as other malware: a phishing email with a malicious attachment, a fake software update, a compromised website, or a pirated download. The email may look like an invoice, a delivery notice, or a message from a colleague, and the attachment may look like a normal document.

Once you open it, the ransomware runs, and it begins encrypting your files in the background.

The encryption is fast, and it is silent. You may not notice anything until it is done, and by then, your documents, photos, and videos are locked, and a ransom note appears on your screen.

The note usually demands payment in cryptocurrency, and it gives you a deadline, with a threat that the price will rise, or the files will be deleted, if you wait.

Modern ransomware adds a second threat, called double extortion. Before encrypting your files, the attacker copies them to their own server, and then threatens to publish them online if you refuse to pay.

That means even a perfect backup does not fully remove the attacker’s leverage, because the stolen data is still in their hands, and that is why prevention matters as much as recovery.

Why Paying Is Rarely the Answer

Paying the ransom feels like the fastest way to get your files back, but it is rarely a good idea. There is no guarantee that the attacker will send you a working key, and many victims pay and receive nothing, or receive a key that only unlocks part of their files.

The attacker is a criminal, and there is no customer service desk to complain to.

Paying also funds the next attack, because ransomware is a business, and every payment proves that the model works. Security agencies, including the FBI, advise against paying, and in some cases, paying may be illegal, if the attackers are a sanctioned group.

If you have a good backup, you do not need to pay, and if you do not, paying is still a gamble with poor odds.

The 3-2-1 Backup Rule: Your Best Defence

The 3-2-1 rule is simple, and it is the standard that professionals use. Keep three copies of your important files, on two different types of media, with one copy off-site.

The three copies mean that losing one does not lose your data, the two media mean that a single failure cannot take them all, and the off-site copy means that a fire, a flood, or a ransomware attack on your home cannot reach them all.

For a home user, that usually means your computer, an external hard drive, and a cloud backup service. Set the external drive to back up automatically, and keep it disconnected when it is not backing up, because a drive that is always connected can be encrypted by ransomware just like your computer.

Set the cloud backup to run automatically too, and choose a service that keeps older versions of your files, so you can recover from before the attack.

Back up the files that matter: photos, documents, financial records, and anything you cannot replace. Your apps and operating system can be reinstalled, but your photos cannot be retaken, and your documents cannot be rewritten from memory.

Decide what matters, and make sure it is in the backup, because a backup that misses the important files is no backup at all.

How to Test That a Restore Actually Works

A backup you have never tested is a hope, not a plan, and many people discover too late that their backup was incomplete, corrupted, or out of date. Testing is simple, and it takes ten minutes.

Pick a few files at random from your backup, restore them to a different folder, and open them to check that they are intact and readable.

Do this every few months, and after any major change, such as a new computer, a new backup service, or a new external drive. Also check that your backup includes the folders you think it does, because backup software sometimes skips a folder, or stops running silently after an update.

A test that finds a problem is a success, because it finds the problem before the ransomware does.

A person backing up files on a laptop in a bright home office
What to Do in the First Hour After an Attack

The first hour after a ransomware attack decides how much damage is done, and the steps are simple.

First, disconnect the infected computer from the internet and from your home network, by unplugging the cable or turning off Wi-Fi, because ransomware can spread to other devices on the same network, including shared drives and other computers.

Second, do not pay the ransom, and do not contact the attacker. Third, do not turn the computer off and on repeatedly, or try to delete the ransomware yourself, because that can make recovery harder.

Fourth, report the attack to the police and to the FBI’s Internet Crime Complaint Center at IC3.gov, because the report helps investigators, and it creates a record you may need later.

Fifth, identify the ransomware if you can, by noting the file extension it added, or the name in the ransom note, and check the No More Ransom project, a free website run by law enforcement and security companies, which offers free decryption tools for some ransomware types.

If a free tool exists, it can unlock your files without paying, and if it does not, your backup is the way back.

TimeActionWhy it matters
Minute 0Disconnect from networkStops the spread
Minute 5Do not pay, do not contact attackerPaying funds the next attack
Minute 10Photograph the ransom noteEvidence for the report
Minute 15Report to police and IC3.govHelps investigators
Minute 30Check No More Ransom for a free decryptorMay unlock files free
Hour 1Restore from backup on a clean deviceGets your files back

Ransomware Protection Framework

Use this framework to protect your files, before and after an attack.

  1. Keep your operating system and software updated automatically.
  2. Use the 3-2-1 backup rule, and keep the off-site copy disconnected.
  3. Test your restore every few months with a few random files.
  4. Turn on automatic updates for your antivirus and your browser.
  5. Do not open attachments from unexpected messages, even from people you know.
  6. Use a password manager and two-factor authentication on your important accounts.
  7. If attacked, disconnect, do not pay, report, and restore from backup.

Frequently Asked Questions

What is ransomware?

Ransomware is malware that encrypts your files and demands payment for the key to unlock them. Modern ransomware also steals your data before encrypting it, and threatens to publish it if you refuse to pay, which is called double extortion.

It usually arrives through a phishing email, a fake update, or a malicious download, and it can lock your documents, photos, and videos in minutes.

Should I pay the ransom?

Usually not. There is no guarantee that the attacker will send you a working key, and many victims pay and receive nothing, or receive a key that only unlocks part of their files. Paying also funds the next attack, and security agencies advise against it.

If you have a good backup, restore from it instead, and check the No More Ransom project for a free decryption tool before you consider paying.

What is the 3-2-1 backup rule?

The 3-2-1 rule means keeping three copies of your important files, on two different types of media, with one copy off-site. For a home user, that usually means your computer, an external hard drive, and a cloud backup service.

The three copies protect against a single failure, the two media protect against a single type of failure, and the off-site copy protects against fire, flood, or ransomware on your home network.

How do I know if my backup works?

Test it. Pick a few files at random from your backup, restore them to a different folder, and open them to check that they are intact and readable. Do this every few months, and after any major change, such as a new computer or a new backup service.

Also check that your backup includes the folders you think it does, because backup software sometimes skips a folder or stops running silently after an update.

Can ransomware spread to other devices?

Yes. Some ransomware spreads across a home network, infecting other computers, shared drives, and connected devices. That is why the first step after an attack is to disconnect the infected computer from the internet and from your network, by unplugging the cable or turning off Wi-Fi.

Check your other devices for signs of infection, and restore them from backup if needed.

What is double extortion ransomware?

Double extortion means the attacker steals your data before encrypting it, and then threatens to publish it online if you refuse to pay. That means even a perfect backup does not fully remove the attacker’s leverage, because the stolen data is still in their hands.

Prevention matters more than ever with double extortion, because the only way to stop the theft is to stop the infection in the first place.

Conclusion

Ransomware is frightening, but it is also beatable, and the defence is simpler than the attack. Keep your software updated, do not open unexpected attachments, back up your files with the 3-2-1 rule, and test your restore.

Those four habits make an attack an inconvenience, not a disaster, because they take away the attacker’s only leverage: your files.

Set up the backup today, while everything is calm, and test it once to make sure it works. The day an attack arrives is the worst day to discover that your backup was incomplete.

For more on protecting your files, read our guides to what ransomware is and how to prevent it, malware protection for your devices, and what malware is and how it works.

on this page