What Is Ransomware? How It Works and How to Protect Yourself

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
