Imagine opening your laptop one morning and finding that nothing works. Your photos will not open. Your documents will not open. Instead, every file has a strange new ending, and a message on the screen says your files are locked and you must pay to get them back. That is ransomware, and it is one of the most frightening things that can happen to a computer.

Ransomware is a kind of harmful software that scrambles your files so you cannot use them, then demands money for the key that unscrambles them. It does not ask politely, and it does not give you much time. The message usually comes with a countdown, a payment address, and a warning that the price will rise, or the files will be deleted, if you wait too long.

What ransomware actually does

Ransomware is a form of malware, which is software built to cause harm. Once it gets onto a computer, it quietly finds the files that matter most: photos, documents, spreadsheets, and anything else it can reach. Then it locks them with a code, a process called encryption, that only the attacker can undo.

Encryption itself is not evil. It is the same technique that protects your passwords and your bank details. The difference is who holds the key. When your own software encrypts a file, you hold the key. When ransomware encrypts a file, a stranger holds the key, and they will only hand it over if you pay.

Hands on a laptop keyboard with a blurred screen and a small brass padlock on a wooden desk
Once ransomware locks your files, only the attacker’s key can open them again.

How ransomware gets in

Ransomware rarely breaks down the front door. Most of the time, it is invited in by accident. The most common route is a trick email. It might look like an invoice, a delivery notice, or a message from a colleague. It carries an attachment or a link, and one click is enough to let the software in.

This is why ransomware and phishing go together so often. Phishing is the trick that gets you to click; ransomware is what arrives after the click. The email does not need to look suspicious to work. It only needs to look ordinary enough that a busy person opens it without thinking twice.

Another route is an unpatched weakness in software. Programs have flaws, and attackers look for them. If your computer or your apps are out of date, an attacker can sometimes slip in through a flaw without you clicking anything at all. That is why updates matter far more than most people think.

What the ransom note really means

The ransom note is designed to scare you, and it works. It tells you what happened, how much to pay, and how little time you have. The amount is usually demanded in cryptocurrency, because it is harder to trace than a bank transfer. The note often gives step-by-step payment instructions, which makes the whole thing feel strangely professional.

A worried woman holding a smartphone with a dark blank screen at a kitchen table, a closed laptop beside her
The ransom note is built to frighten you into paying before you have time to think.

What to do in the first hour

If you see a ransom note, stop what you are doing and do not pay yet. The first step is to disconnect the computer from the internet and from any shared drives or backup devices. Pull the network cable, turn off the Wi-Fi, and unplug any external drives. This will not unlock your files, but it can stop the ransomware spreading to other devices.

Next, do not delete anything. Do not try to rename the locked files, and do not run random cleaning tools you find online. Some of those tools are fake, and some can make recovery harder. Take a photo of the ransom note with your phone, and write down what happened: what you clicked, when it happened, and what the note says.

Then get help from someone you trust: a local computer repair shop, your workplace IT team, or the support line of your security software. Tell them exactly what happened. They have seen this before, and they can tell you whether your files can be recovered without paying. If the attack hit a business, tell your manager straight away, even if it feels embarrassing. Hiding it only gives the attacker more time.

Should you pay the ransom?

This is the hardest question, and there is no answer that fits everyone. The honest truth is that paying does not guarantee you will get your files back. Sometimes the key works. Sometimes it only unlocks some of your files. Sometimes nothing arrives at all, because the people you paid have no reason to help you once they have your money.

Paying also has a wider cost. Every payment tells the attackers that ransomware works, and it funds the next attack, which might hit a hospital, a school, or someone like you. Security experts and police forces generally advise against paying, for exactly this reason. It is advice worth taking seriously, even when the locked files feel priceless.

An external hard drive and a USB flash drive on a wooden desk beside a closed laptop in warm afternoon light
A clean backup you keep apart from your computer is the best answer to a ransom demand.

How to protect yourself

The good news is that most ransomware is preventable, and the steps are ordinary ones. The first is backups. Keep a copy of your important files somewhere separate from your computer, such as an external drive you unplug after copying, or a cloud backup service. Test it now and then, because a backup you have never tried to restore is only a hope.

Care with email is another step. Treat unexpected attachments and links with suspicion, even when the sender looks familiar. If an invoice or a delivery notice arrives out of the blue, go to the company’s website yourself instead of clicking the link in the message. A few seconds of doubt can save you weeks of trouble.

Finally, think about what would happen if your files vanished today. Which files would you miss most? Your photos, your work, your tax records? Make sure those files exist in two places, and make sure one of those places is not connected to your computer all the time. A data breach can expose your information; ransomware can take it away entirely. Both are easier to survive when you have a copy that the attacker cannot reach.

A calm plan beats a panicked payment

Ransomware is frightening because it takes something personal and holds it hostage. But it is not magic, and it is not unstoppable. It gets in through ordinary mistakes, and ordinary habits keep most of it out. Backups and a little suspicion about strange emails will protect you from the vast majority of attacks.

If it does happen to you, remember the order: disconnect, do not delete anything, write down what happened, and get help before you pay. A locked file is a problem. A rushed payment to a criminal is a bigger one. Keep a backup and keep a cool head, and ransomware loses most of its power over you.

Back to the journalDiscuss a project