Ransomware is malicious software that encrypts the files on a computer or network and then demands payment, usually in cryptocurrency, for the key to unlock them. The central question it raises is simple: what do you do when the data your organisation depends on is suddenly unreadable? The answer is decided long before the attack, by the backups, patching and access controls that were in place when it happened.
Ransomware has grown from a nuisance aimed at home users into one of the most disruptive forms of cybercrime, hitting hospitals, schools, councils and businesses of every size. Modern attacks are rarely opportunistic: they are planned operations, with attackers spending days or weeks inside a network finding the valuable data and the backups before encrypting anything.
Key takeaways
- Ransomware encrypts files and demands payment for the decryption key, and modern attacks often steal data first as extra leverage.
- Attacks usually start with phishing, stolen credentials or an unpatched system, not with sophisticated new exploits.
- Offline, encrypted backups that have been tested are the single most important defence, because they remove the need to pay.
- CISA, the FBI, the NSA and MS-ISAC advise organisations to maintain offline, encrypted backups and test them regularly.
- Paying the ransom does not guarantee recovery, and most security guidance advises against it.
What ransomware actually is
Ransomware is a type of malware, and its defining feature is encryption. Once it runs, it scrambles files so they cannot be opened without a decryption key that only the attacker holds. The victim then finds a ransom note, usually on the screen or in each affected folder, explaining how to pay and what will happen if they do not.
The business model has changed over time. Early ransomware attacked one computer at a time and asked for a small payment. Today attackers run ransomware as a service, where malware developers lease it to affiliates who carry out attacks and share the profits. That division of labour has made attacks more frequent and more professional.
Best for: everyone, because the defences against ransomware are the same basic controls that protect against most other attacks, and they help at any size of organisation.
How a ransomware attack unfolds
Most attacks follow a pattern with several stages. It starts with initial access: a phishing email that tricks someone into opening an attachment, a stolen password used to sign in remotely, or an internet-facing system that has not been patched. None of these is exotic, which is why basic hygiene matters so much.
Once inside, the attacker explores the network quietly. They look for valuable data, for administrator accounts they can compromise, and for the backup systems they will need to disable or encrypt later. This stage can last days or weeks, and is the best opportunity to catch the attack, because the signs, unusual sign-ins, new accounts and odd network traffic, are visible to monitoring tools.
Before encrypting anything, many attackers now steal a copy of the sensitive data. That gives them a second threat: pay, or the data will be published. This is called double extortion, and it means that even an organisation with perfect backups faces pressure to pay. The encryption itself comes last, often timed for a weekend or a holiday, when fewer staff are watching.
Finally, the ransom note arrives, with a deadline and a payment address. The attacker may also contact the organisation directly, or publish a sample of the stolen data to prove the threat is real. Our guide to an AI incident response playbook with practical steps and real failures explains how response teams handle the first hours of an attack like this.
Types of ransomware
There are two broad types, distinguished by what they lock. Crypto ransomware encrypts files and data, which is the form most people mean when they say ransomware. Locker ransomware locks the whole device or screen, so the computer cannot be used at all, though the files themselves may not be encrypted.
Attacks are also described by how they spread. Some are targeted, aimed at one organisation after careful preparation, and these cause the most damage. Others are opportunistic, spreading automatically to any vulnerable system they find. Targeted attacks demand larger ransoms, because the attacker knows what the victim can afford and how much disruption the encryption will cause.
A further distinction is whether data is stolen as well as encrypted. Single extortion relies on encryption alone. Double extortion adds the threat of publication. The defences are similar in each case, but double extortion makes prevention of the initial intrusion far more important, because backups alone cannot undo a data theft.
| Stage | What the attacker does | What stops or slows it |
|---|---|---|
| Initial access | Phishing, stolen credentials, unpatched systems | MFA, patching, email filtering, training |
| Exploration | Maps the network, seeks admin accounts and backups | Monitoring, least privilege, network segmentation |
| Data theft | Copies sensitive data out of the network | Data loss prevention, egress monitoring |
| Encryption | Encrypts files and disables recovery options | Offline backups, endpoint protection |
| Extortion | Demands payment, threatens publication | Incident plan, legal advice, tested recovery |

How to prevent ransomware
Prevention starts with the basics, and the basics work. Keep systems patched, especially internet-facing ones, because unpatched software is a common way in. Use multi-factor authentication on remote access, email and administrative accounts, so a stolen password alone is not enough.
Limit what any one account can reach. If an ordinary user account can reach the backup server, then an attacker using that account can reach it too. Network segmentation and least privilege slow the attacker exploration stage and give defenders time to notice. Our guide to cloud security posture management in plain language covers how these controls are checked continuously in cloud environments.
Train people to recognise phishing, and make reporting easy. A suspicious email reported quickly can be removed before anyone else clicks it. Email filtering and blocking malicious attachments help, but no filter catches everything, so the human layer matters.
Finally, test the defences. Phishing simulations, vulnerability scanning and tabletop exercises all reveal gaps before an attacker does.
Backups: the defence that decides everything
Backups are the single most important ransomware defence, because they are what makes recovery possible without paying. The widely used 3-2-1 rule says to keep three copies of important data, on two types of storage, with one copy stored off-site. Against ransomware, one copy must also be out of the attacker reach: offline, disconnected or unchangeable, because attackers deliberately hunt for backups and encrypt or delete them first.
The #StopRansomware Guide, published jointly by CISA, the FBI, the NSA and MS-ISAC, advises organisations to maintain offline, encrypted backups of critical data and to test them regularly in a disaster recovery scenario. The warning behind that advice is blunt: many ransomware variants try to find and delete or encrypt accessible backups, so that restoration is impossible unless the ransom is paid.
Testing matters as much as keeping the copies. A backup that has never been restored from is a hope, not a recovery plan. Organisations should practise restoring from backup regularly, and measure how long it takes, because the recovery time decides how much disruption an attack causes. Backups should also be encrypted, and the recovery keys kept separately from the systems they unlock.
Best for: any organisation that could not afford to lose its data, which is every organisation that holds data worth protecting.
What to do during an attack
The first step is to contain the damage. Isolate affected systems from the network so the encryption cannot spread, and disable affected accounts. Do not switch systems off before advice if evidence may be needed, but do stop the spread first. The incident response plan should name who makes these calls, because they are hard decisions to take under pressure.
Next, bring in help. Most organisations need outside expertise for a ransomware incident, whether that is an incident response firm, their cyber insurer or law enforcement. In many countries there are reporting duties as well, and legal advice should be sought early, before any decision about payment or notification.
Preserve evidence. Keep logs, keep the ransom note, and do not wipe systems before they have been examined. The investigation needs to establish how the attacker got in, what they reached and whether data was stolen, because those answers decide what must be notified and what must be fixed.
Communicate carefully. Staff, customers and partners need to know what is happening, but messages should be accurate and approved, not improvised. A short, honest statement that the organisation is dealing with an incident and will update people is better than silence or speculation.
Should you pay the ransom?
Most security guidance advises against paying, and for good reasons. Payment does not guarantee the decryption key will work, that all data will be recovered, or that stolen data will be deleted. Attackers who are paid once often return, because the victim has shown they will pay.
There are also legal considerations. Paying a ransom may be restricted where the attackers are a sanctioned group, and organisations should take legal advice before any payment decision. Insurers also have a view, and the policy terms may require their involvement before a payment is made.
The decision is ultimately a business one, taken by senior management with legal advice, not a technical one taken in the heat of the incident. That is why the decision should be discussed in advance, as part of the incident plan, rather than for the first time while systems are encrypted.
Ransomware prevention checklist
- Keep three copies of important data, with one copy offline or unchangeable, and test restores regularly.
- Patch internet-facing systems promptly, and keep all software up to date.
- Turn on multi-factor authentication for remote access, email and admin accounts.
- Apply least privilege and segment the network so one account cannot reach everything.
- Train staff to spot and report phishing, and make reporting easy.
- Monitor for unusual sign-ins, new accounts and large data transfers.
- Write an incident response plan, and rehearse it with a tabletop exercise.
- Decide in advance who decides about ransom payment, and take legal advice first.
Frequently asked questions
Can antivirus software stop ransomware?
Modern endpoint protection can block many ransomware variants, especially known ones, but it is not a guarantee. Attackers test their malware against common security tools, so endpoint protection should be one layer among several, not the only defence.
Does paying the ransom get your files back?
Sometimes, but not always. Attackers may provide a working key, a faulty one, or nothing at all, and payment does not guarantee that stolen data will be deleted. That uncertainty is one reason most guidance advises against paying.
How long does recovery from ransomware take?
It depends on how much was encrypted, how good the backups are and whether data was stolen. A small incident with tested backups can be resolved in days, while a large one involving many systems can take weeks or months to fully recover from.
Are small businesses targeted by ransomware?
Yes. Attackers target small businesses precisely because they often have weaker defences and no dedicated security team. The same basic controls, patching, MFA and offline backups, protect a small business as well as a large one.
What is double extortion?
It is an attack where the data is stolen before it is encrypted, so the attacker can threaten to publish it as well as withhold the decryption key. Backups alone cannot undo the theft, which makes preventing the initial intrusion even more important.
Who should I report a ransomware attack to?
Report it to law enforcement and, where applicable, to your cyber insurer and your incident response provider. Many countries also have data protection notification duties, so take legal advice promptly about who must be told and by when.







