Short answer
Ransomware is a malicious program that locks your files and asks for money to give them back. The best protection is a backup on a drive you unplug after use, plus updates. Hit by it? Disconnect your computer from the internet and don't pay.
What happens?
The program usually gets in through an email attachment, a fake download or a computer without updates. At first it works unnoticed. Then:
- you can't open your photos and documents any more, or they've got strange names;
- a message appears: "Your files are encrypted. Pay within three days, or you'll lose everything."
Encrypted means: the files have been turned into a secret code. Only the scammer has the key.
Protect yourself in advance
- Make a backup of your photos and documents on an external drive. Unplug the drive after the backup, otherwise the program can lock those files too.
- Install updates for your computer, smartphone and programs. Read Installing updates.
- Don't open unexpected attachments, even if they seem to come from someone you know. Read An email attachment: open it or not?.
- Keep your computer's security switched on. On Windows that's Windows Security (Defender).
- Only download programs from the official website or the official app store.
You've been hit: what do you do?
- Disconnect your computer from the internet. Pull out the network cable or turn off wifi. That stops other devices getting infected.
- Unplug external drives too.
- Don't pay. There's no guarantee you'll get your files back, and you're supporting the criminals.
- Take a photo of the message on your screen with your smartphone.
- Report it to the police.
- Ask for help from a computer repairer or someone you trust. For some kinds of ransomware there's a free fix. You'll find it at nomoreransom.org, a website run by police forces and security companies.
- Have a backup? Have your computer completely reinstalled and then put your files back.
Remember this
- A backup on an unplugged drive is your best protection.
- Updates, and care with attachments.
- Hit? Disconnect the internet and don't pay.