Ransomware is one of the most feared words in cybersecurity, and for good reason. It is a type of malware that locks you out of your own files and demands payment to get them back. It can hit a single laptop, a family photo collection, or an entire small business. The good news is that the basics of protection are straightforward, and most attacks use a small number of well-known tricks. This article explains what ransomware is, how attacks usually start, what to do if one happens, and how to protect yourself and your business.
What Is Ransomware?
Ransomware is malicious software that encrypts the files on a computer or network — scrambling them so they cannot be opened — and then demands a payment, usually in cryptocurrency, in exchange for the key to unlock them. The ransom note often appears as a message on the screen, with a deadline and a threat: pay up, or the files will be deleted or published. Some attacks also copy files first and threaten to release them. Either way, the result is the same: you lose access to your own files until the problem is dealt with.
How Ransomware Attacks Usually Start
Ransomware rarely breaks in through a single dramatic hack. Most attacks begin with an ordinary mistake or an overlooked weakness. Here are the most common starting points.
Phishing Emails
A phishing email pretends to be from a trusted sender — a delivery company, a bank, a colleague — and tricks the reader into clicking a link or opening an attachment. That click installs the ransomware. These messages are often written to create urgency: an unpaid invoice, a parcel problem, or a password that is about to expire. Learning how to spot a phishing email is one of the most effective defences there is.
Stolen or Weak Passwords
Attackers also get in with passwords that were stolen in a data breach, guessed, or reused across many accounts. Remote access tools and email accounts are common targets. Once inside with a valid login, an attacker can look around the network and install ransomware at a time of their choosing. Strong, unique passwords and two-factor authentication make this far harder.
Unpatched Software
Software updates often fix security holes that attackers know about. When updates are ignored, those holes stay open. An attacker can use them to get into a system without any help from the user at all. Keeping your operating system, browser, and apps up to date closes many of these doors.
Malicious Downloads
Ransomware also spreads through downloads that look harmless: a free program from an unfamiliar site, a pirated file, or a fake software update. Download software only from official sources, and be cautious with unexpected files.
What Happens During an Attack
Once ransomware is running, it usually works quietly at first. It encrypts documents, photos, databases, and backups it can reach, often starting with the most valuable files. Shared drives and connected backup drives are common targets, which is why an offline backup matters so much. At some point the attack makes itself known: files will not open, file names change, and a ransom note appears with payment instructions and a deadline. In some cases the attackers also copy files before encrypting them and threaten to publish them, which adds pressure to pay.
Should You Pay the Ransom?
Paying the ransom is a personal decision, but authorities generally advise against it — and there are good reasons for that advice. First, there is no guarantee. Paying does not always get your files back; the decryption key may not work, may only unlock part of your data, or may never arrive. Second, paying funds criminal activity and marks you as a target who pays, which can invite further attacks. Third, in some situations, paying a ransom can have legal consequences, so it is worth checking the rules where you live. The safer position is to plan so you never have to make that choice: with reliable backups, a ransom demand becomes an inconvenience rather than a crisis.
How to Protect Yourself and a Small Business
Protection is mostly about habits and a few sensible settings. None of these steps is complicated on its own, and together they make an attack far less likely and far less damaging.
Keep Backups — Including an Offline Copy
Backups are the single most important defence against ransomware. Keep regular copies of your important files, and make sure at least one copy is offline or offsite — on an external drive that is disconnected after backing up, or in a separate cloud account. Ransomware encrypts every drive it can reach, so a backup that stays connected can be encrypted too. For a comparison of options, see our guide to cloud storage vs local storage. And test your backups: a backup you have never restored from is a hope, not a plan.
Keep Software Updated
Turn on automatic updates for your operating system, browser, and apps. Updates patch the security holes attackers rely on, and automatic updates mean the protection happens without you having to remember.
Use Two-Factor Authentication
Two-factor authentication (2FA) asks for a second proof of identity — usually a code from your phone — as well as your password. Even if a password is stolen, an attacker still cannot get in without that second factor. Turn it on for email, cloud storage, banking, and remote access.
Give People Only the Access They Need
Not everyone needs access to everything. Accounts should have the lowest level of access that lets a person do their job — a principle known as least privilege. If one account is compromised, the damage is limited to what that account could reach. Our guide to zero trust security explains this idea in more detail.
Be Cautious with Email and Links
Slow down before clicking links or opening attachments, especially in messages that create urgency or arrive unexpectedly. Check the sender’s address, and when in doubt, contact the supposed sender through a channel you trust rather than replying to the message.
What to Do If You Are Hit
First, disconnect the affected device from the network — unplug the cable or turn off Wi-Fi — to stop the ransomware from spreading to other devices. Do not delete files or wipe the machine straight away: the ransom note and other evidence can help IT support or investigators. Contact your IT support or a trusted professional, and report the incident to the relevant authorities in your country. CISA’s StopRansomware guide is a useful starting point for official guidance. Then restore from your clean backups — the offline or offsite copy that the ransomware could not reach. Only bring systems back online once you are confident the ransomware is gone.
Frequently Asked Questions
Can ransomware infect a phone?
Yes, though it is less common than on computers. Malicious apps and links are the usual route. Keep your phone’s software updated, install apps only from the official store, and back up your photos and files.
Does antivirus software stop ransomware?
Good security software helps — it can block known ransomware and suspicious behaviour — but it is not a guarantee. It works best alongside updates, backups, and careful email habits.
What should a small business do first?
Start with backups, including an offline copy, and turn on two-factor authentication for email and cloud accounts. Those two steps alone prevent many of the worst outcomes. Then add updates and staff training.
If I pay, will I get my files back?
Not necessarily. There is no guarantee that paying produces a working decryption key, and some victims pay and recover nothing. Authorities generally advise against paying for this reason.
Worked Example: A Ransomware Attack on a Small Accounting Firm, Hour by Hour
Imagine a five-person accounting firm on a Monday morning. The timeline below is a realistic example of how a common ransomware attack unfolds, and what the right response looks like at each step. It follows the guidance in CISA’s StopRansomware guidance: disconnect, do not pay, restore from backups, and report the incident.
- 9:02 am — the email arrives. An employee receives an email that looks like an invoice from a supplier, with a spreadsheet attachment. The sender’s address is one letter different from the real supplier’s.
- 9:05 am — the attachment is opened. The spreadsheet asks the employee to “enable content” to view the invoice. That click runs a small program that downloads the ransomware in the background. Nothing looks wrong yet.
- 9:40 am — files stop opening. A colleague tries to open a client file and gets an error. File names have changed, with a strange extension added, and a text file has appeared on the desktop demanding payment in cryptocurrency.
- 9:45 am — disconnect first. The firm unplugs the affected computer from the network and switches off its Wi-Fi, so the ransomware cannot reach the other computers or the shared drive. Nobody pays, and nobody deletes the ransom note — it may help investigators.
- 10:30 am — call for help and report it. The firm calls its IT support provider and reports the incident to the relevant authorities. In the United States, that is the FBI’s Internet Crime Complaint Center; in other countries, the local cybercrime reporting service.
- That afternoon — restore from backup. Because the firm kept an offline backup from Friday, IT wipes the affected computer and restores the client files. The firm loses a morning’s work, not its business.
The turning point in this example is not clever software — it is the offline backup and the decision to disconnect quickly. Without a backup, the firm would have had no safe way back.
Ransomware Protection Tools Compared
No single tool stops ransomware on its own. Protection is a combination of security software and reliable backups. The table below compares five well-known options, each linked to its official site.
| Tool | Best for | What to know |
|---|---|---|
| Microsoft Defender | Everyday protection built into Windows | Included with Windows; business versions add central management and ransomware-specific controls. |
| Malwarebytes | A second layer alongside built-in antivirus | Offers a free scanner and paid real-time protection for home and business. |
| Bitdefender | Home and small-business antivirus with anti-ransomware features | Paid plans include ransomware remediation, which can restore files encrypted in an attack. |
| Acronis Cyber Protect | Combining backup and security in one product | Pairs backup with anti-malware, so a clean backup is available if an attack gets through. |
| Veeam | Backup and recovery for businesses | Focuses on backup rather than antivirus; best used together with security software. |
A security tool blocks what it can, and a backup recovers what it cannot. One without the other leaves a gap — which is why backing up your phone and computer properly is part of ransomware protection, not a separate chore.
The 3-2-1 Backup Checklist
The 3-2-1 rule is the backup habit recommended by security agencies and backup vendors alike: keep three copies of important data, on two different types of storage, with one copy off site.
- Three copies. The original file plus two backups — so one failure never means losing the only copy.
- Two different types of storage. For example, an external hard drive and a cloud backup service, so a single fault cannot take out both.
- One copy off site. A copy that is not connected to your computer — a cloud backup, or a drive kept elsewhere — so ransomware on your computer cannot encrypt it too.
- Disconnect the backup when it is done. A backup drive that stays plugged in can be encrypted just like any other drive.
- Test the restore. Once a month, try restoring one file from the backup. A backup you have never tested is a hope, not a plan.
- Write down what is backed up, and where. If something happens, the person who has to recover the files should not have to guess.
Common Mistakes to Watch Out For
- Paying the ransom. CISA and the FBI advise against paying: payment does not guarantee the files will be returned, and it funds further attacks. Restore from a backup and report the incident instead.
- Keeping the only backup connected. A cloud folder that syncs instantly, or a drive that is always plugged in, can be encrypted by the same attack. Keep at least one copy offline.
- Never testing a restore. Backups fail silently — a full drive, a paused sync, or a corrupted file can leave you with nothing when you need it most.
- Skipping updates. Many attacks use known flaws that already have a fix. Updating the operating system, browser and apps closes those doors.
- Ignoring connected devices. Smart TVs, cameras and other Internet of Things devices on the same network can be a way in, so change their default passwords and keep their software updated too.
Conclusion
Ransomware works by taking something you value — your files — and holding it for payment. It usually gets in through familiar routes: a convincing email, a weak password, or software that was never updated. The defence is equally familiar: keep backups, including one the ransomware cannot reach; keep software updated; use two-factor authentication; and stay cautious with email. If the worst happens, disconnect, preserve evidence, get help, and restore from clean backups. Preparation is the difference between a bad day and a disaster.
Usama Iqbal is the founder and editor of Nexus Blogs, where he publishes practical, research-backed articles on artificial intelligence, machine learning, cybersecurity and cloud computing. Articles are researched and reviewed before publication, and updated when information changes.
Connect with Usama Iqbal on LinkedIn.



