Practical Ransomware Defense: Hardening, Backups and the Decision Not to Pay
Close the real entry routes, build backups an attacker cannot delete, alert on the pre-encryption window, and settle the payment question before you need to.

The worst moment in a ransomware incident is rarely the encryption. It is the point, usually several hours later, when someone opens the backup console and finds the retention jobs deleted, or the backup server encrypted along with everything else, or discovers that the nightly job has been failing silently since a storage change in March.
That moment decides the outcome. Everything before it is preparation, and everything after it is damage control. So this guide is organized around the three things that determine which side of that moment you end up on: closing the ways in, keeping a copy they cannot reach, and noticing them during the days they spend inside before anything gets encrypted.
How they actually get in
Read enough incident reports and the entry routes are monotonous. CISA's joint advisories on active ransomware operations keep listing the same three, and the RansomHub advisory is a representative example.
Known vulnerabilities in internet-facing systems. VPN concentrators, remote access gateways, file transfer appliances, mail gateways, management interfaces accidentally exposed. These are attractive because they are reachable, they are often excluded from normal patching because patching them causes an outage, and exploitation needs no user involvement.
Valid credentials without a second factor. From phishing, from infostealer malware on a personal machine, or from an unrelated breach where a password was reused. Sprayed against remote access, email and cloud consoles until something works. No exploit, no malware, nothing to detect except an authentication that looks legitimate.
Phishing that delivers a loader. Still common, now usually a two-stage process where initial access is gained by one group and sold on to the operator who deploys the ransomware. Our article on how ransomware gets in covers the delivery mechanics.
Notice what is absent from that list: anything exotic. The implication is practical. If your plan involves advanced detection but your VPN appliance is three patches behind and your remote access does not enforce MFA, you are solving the wrong problem.
Step 1: Close the three doors
- Inventory everything of yours that answers from the internet, including things you did not set up: VPN and remote access, mail, web applications, management interfaces, file transfer tools, NAS web consoles, cameras. Scan from outside rather than trusting the documentation.
- Patch internet-facing systems on a stated timetable, days rather than quarters, and treat an actively exploited vulnerability in an edge device as an emergency change rather than a scheduled one. This is the single most consequential patching decision you make.
- Require multi-factor authentication on every remote access path and every administrative account, with no exceptions for service accounts that happen to be convenient. Phishing-resistant methods such as passkeys or hardware security keys where you can deploy them.
- Eliminate remote desktop exposure entirely. No port forwarding, no "temporary" rule. Behind a VPN or a zero-trust access service, with MFA.
- Check for credentials already circulating. Look up your domains in breach notification data and force resets where staff passwords appear.
Step 2: Hardening that earns its keep
The point of this layer is not to be impenetrable. It is to make the attacker's middle game slow and noisy, since they need to move from one machine to domain-wide control before encryption is worth attempting.
- Remove local administrator rights from daily-use accounts. Cheap, unpopular for a week, and it blocks a large share of execution and persistence techniques.
- Tier your administration. Domain and tenant administrator credentials should never be used on ordinary workstations, because credential harvesting from a workstation is how one machine becomes the whole estate. NCSC's guidance on preventing lateral movement is built on this principle.
- Block macros from the internet and block or sandbox the attachment types used for delivery, including script files, shortcut files, disk images and password-protected archives. That last category exists specifically to get past scanners, since a scanner cannot read inside an archive whose password sits in the message body.
- Enable attack surface reduction rules on Windows endpoints, which block the behaviors loaders rely on, such as Office applications creating child processes and script interpreters running downloaded content.
- Protect credential stores with the platform features available to you, and turn on tamper protection in your endpoint product so it cannot be disabled by an attacker who has gained administrative rights.
- Disable legacy protocols including SMBv1, and restrict which machines may talk to each other on file sharing and remote management ports. Workstation-to-workstation SMB is rarely needed and frequently abused.
- Review service accounts: no interactive logon, no unnecessary privileges, no shared passwords, no accounts whose password has not changed in years.
- Make sure endpoint detection covers servers as well as laptops, since the servers are where encryption happens.
Step 3: Backups built for an attacker with your admin password
Design the backup against the right threat model. Hardware failure wants redundancy. Ransomware wants a copy that cannot be deleted by someone holding every credential in your organization, because that is the situation you will be in.
- At least one copy offline or immutable. Either physically disconnected media rotated out of the building, or cloud storage with object lock or a retention lock the account itself cannot shorten. Not a mapped drive, not a share the domain can reach, not a sync folder.
- A separate identity plane for the backup system. Its own credentials, not your directory accounts, with MFA on its console and ideally network isolation from the main environment. If the backup server authenticates against the directory the attacker owns, it is not a backup, it is a target.
- Alert on destructive backup operations: job deletion, retention changes, repository removal, large deletions, and repeated failed jobs. Attackers delete backups before encrypting, which makes those alerts some of the earliest and clearest warnings you will get.
- Back up what recovery actually needs, which is broader than file shares: cloud email and file data, identity and directory configuration, virtual machine images, database backups with transaction logs, network and firewall configurations, system documentation, and the incident response contact list. Keep the last two available offline.
- Test restores on a schedule and time them. Restore a file, then a server, then measure how long the full recovery would take. A backup you have never restored from is a hypothesis. NIST's guidance on protecting assets against destructive events is useful if you want a structured way to document this.
- Keep a pre-infection point available. Attackers often sit inside for days or weeks, so retention needs to reach back past the likely intrusion date, not just to last night.
Our complete guide to malware and ransomware covers the broader family of threats these backups also protect you against.
Step 4: Detect the window before encryption
Encryption is the last act. Before it there is a period of reconnaissance, credential theft, lateral movement, backup destruction and data exfiltration, and that period is where detection is possible. These are the signals worth alerting on, ordered roughly by how specific they are:
- Volume shadow copy deletion, which has almost no legitimate explanation on a normal server and is a near-universal precursor.
- Backup deletion or retention changes, as above.
- Security tooling disabled, uninstalled or excluded, including new antivirus exclusion paths and tampering with logging.
- Event log clearing.
- New administrative accounts, new privileged group members, or new application credentials, especially created outside working hours.
- Mass file modification, renaming or extension changes, which is the encryption itself and the latest useful alert you will receive. MITRE catalogs this as data encrypted for impact.
- Unusual internal remote access patterns, such as remote desktop or remote management between machines that have never talked before.
- Large outbound transfers to cloud storage providers or file synchronization tools, which is how exfiltration happens before the ransom note.
- Unfamiliar administration utilities appearing, including legitimate remote support and file transfer tools installed by someone who is not your support provider.
- Impossible travel and sign-ins from hosting providers on accounts with remote access.
Two practical notes. Alerts nobody receives are not detection, so route these to a person and check that the route works. And make sure the logs that would show all of this are retained for longer than the typical dwell time, because thirty days of logs against a six-week intrusion answers nothing.
Step 5: Be ready for the first hour
Write these down in your incident response plan before you need them. Isolate affected systems from the network without powering them off, so memory and evidence survive. Do not reimage the first machine you find. Check backups from a clean system rather than by mounting them on a possibly compromised host. Preserve the ransom note, a sample encrypted file and the logs. Disable compromised accounts and revoke sessions and tokens. Contact your insurer before engaging responders, and notify law enforcement. CISA's own page for organizations that have been hit sets out the immediate sequence, and the wider first-72-hours process is in our guide to the first 72 hours after a breach, which applies because data theft makes this a breach as well as an outage.
Step 6: Settle the payment question now
This decision gets made badly because it gets made late, by exhausted people, with a countdown timer on a web page. Make it in advance, in writing, in daylight.
The case against paying is strong and well documented. Law enforcement and national security agencies advise against it. There is no guarantee of a working decryption key, and supplied tools are frequently slow and incomplete. There is no way to verify that stolen data has been deleted, and re-extortion of the same victim is a known pattern. Payment funds the next round of attacks and marks you as a paying organization. In the United States, the Treasury's Office of Foreign Assets Control has warned that facilitating a payment can carry sanctions risk where the recipient is a designated person or entity, which makes a sanctions check a legal necessity rather than a formality. Equivalent exposure exists in other jurisdictions.
Be honest about why organizations still pay. It is almost never because they think it is a good idea. It is because the restore does not work, or would take weeks the business cannot survive, or because backups were encrypted too. That is a preparation failure converting into a payment, which is exactly why the backup work above is the real answer to this question.
What to write down:
- Your default position, which should be that you do not pay.
- Who is authorized to revisit that position, and who must be consulted first: counsel, the insurer, and law enforcement.
- That a sanctions check happens before any payment is contemplated.
- That nobody below that named level may communicate with the attackers.
- Your recovery time objective, so the question "can we restore in time" has a pre-agreed answer rather than an argument.
Before concluding that files are unrecoverable, check the No More Ransom project, run by Europol with Dutch police and industry partners, which publishes free decryption tools for a number of ransomware families. It costs ten minutes and occasionally ends the incident.
Suspicious attachment or link that might be the delivery? Paste the message or link into CyberWatch AI Scan for a free check.
Rehearse it, then shorten the list
Run a tabletop twice a year with one specific premise: the file server is encrypted, the domain administrator account is compromised, and the backup console will not accept your credentials. Work out who you call, in what order, and how long recovery takes. The gaps that exercise exposes are your actual priorities, and they are usually unglamorous: a log retention setting, a backup copy that was never made immutable, an appliance nobody owns, a phone number that no longer works.
Then keep the standing list short, because the controls that prevent ransomware are the same handful every time. Patch what faces the internet, quickly. Require MFA on remote access and administration. Remove standing administrative rights. Keep one copy of your data beyond the reach of your own credentials. Alert on shadow copy and backup deletion. Know who decides what, in advance. If you run a small organization, the network-level work in securing a small business network covers most of the first two, and cyber insurance for small businesses explains what your policy will expect you to have done already.
Frequently asked questions
How does ransomware actually get in?
Overwhelmingly three ways: exploitation of known vulnerabilities in internet-facing systems such as VPN appliances and remote access gateways, valid credentials obtained from phishing or earlier breaches and used where multi-factor authentication is missing, and phishing that delivers a loader. CISA advisories on current ransomware operations list these repeatedly.
What makes a backup survive a ransomware attack?
Being unreachable by the credentials the attacker holds. That means an offline copy or immutable storage with object lock, a backup system with its own separate credentials and MFA, and alerting when backup jobs or data are deleted. Attackers look for the backup server early and specifically.
What should we alert on to catch an attack before encryption?
Shadow copy deletion, backup job or repository deletion, security tool tampering or uninstallation, new administrative accounts and privilege grants, mass file renames or extension changes, event log clearing, and unusual data transfer to cloud storage or file transfer tools.
Should we ever pay a ransom?
Law enforcement and security agencies advise against it. Payment does not guarantee a working key or that stolen data is deleted, it funds further attacks, it marks you as willing to pay, and in some cases it carries sanctions exposure. Decide your position in advance rather than under pressure.
Does paying get our data back?
Sometimes partially. Decryption tools supplied by attackers are often slow and buggy, some data is usually unrecoverable, and promises to delete exfiltrated data cannot be verified. Organizations that recover well are the ones with tested backups, not the ones that paid.
Is cyber insurance a substitute for preparation?
No, and increasingly insurers will not treat it as one. Policies commonly require MFA, patching and backup practices as conditions, require prompt notification, and restrict which responders you may engage. Read those requirements before you need to rely on them.
Why does data theft matter if we can restore from backup?
Because modern operations steal data before encrypting, so a clean restore ends the outage without ending the extortion. That turns the incident into a data breach with its own notification obligations, which is why exfiltration detection and egress controls matter alongside backups.
Who decides whether to pay, and when?
Name that person in your incident response plan, together with your default position, who must be consulted including counsel and your insurer, and the sanctions check that has to happen first. Deciding this in advance is what prevents the decision being made at 3am by whoever is most frightened.
Sources
- Stop Ransomware, CISA
- #StopRansomware Guide, CISA
- #StopRansomware: RansomHub Ransomware, CISA
- I've Been Hit By Ransomware!, CISA
- Mitigating malware and ransomware attacks, UK National Cyber Security Centre
- No More Ransom, Europol, Dutch Police and industry partners
- Updated Advisory on Potential Sanctions Risks for Facilitating Ransomware Payments, US Department of the Treasury, Office of Foreign Assets Control
- SP 1800-25, Data Integrity: Identifying and Protecting Assets Against Ransomware and Other Destructive Events, NIST
- Data Encrypted for Impact, Technique T1486, MITRE ATT&CK
- Cybersecurity for Small Business, US Federal Trade Commission


