MicroadsTeam Cyber by Microads, since 2015 Report an incident

Ransomware

Building ransomware-resilient backups you can restore

How to build ransomware-resilient backups with immutability, offline copies and separate credentials, then test restores and agree a realistic restore order.

You have backups, and you’ve been told they’re safe. Here is how to check whether they’re ransomware-resilient backups in practice: whether they survive an attacker holding domain admin, and whether you can restore from them on a timeline the business can live with.

What ransomware-resilient backups have to withstand

Ransomware operators rarely encrypt on day one. They spend time inside first, and one of the things they look for is your backup system, because a working restore is what stops you paying. By the time anything is encrypted (MITRE ATT&CK T1486), the backups have often already been dealt with.

The usual moves:

  • Log in to the backup console with domain credentials, because the console uses AD authentication and every domain admin is effectively a backup admin
  • Delete backup jobs and restore points, or quietly shorten retention and wait
  • Run vssadmin delete shadows /all /quiet and wbadmin delete catalog -quiet on Windows hosts
  • Encrypt the backup repository directly when it’s an SMB share or a NAS on the same network
  • Log in to the storage array’s web interface with a reused password and wipe the volumes
  • Use stolen cloud keys to delete objects from the off-site bucket

Treat that list as a design specification. Every item on it is something your backup design should make impossible, or at the very least loud.

Immutability, and what it doesn’t protect

Immutable storage means a backup can’t be changed or deleted until a retention date passes, no matter who asks. In practice that’s S3 Object Lock, Azure immutable blob storage, or a hardened Linux repository that uses the filesystem immutable flag and allows no interactive logins.

With S3 Object Lock, the mode matters. Governance mode can be overridden by anyone holding s3:BypassGovernanceRetention, which an attacker with admin keys will have. Compliance mode can’t be shortened or removed by anyone, the root user included, until retention expires. Use compliance mode for the copies you’re counting on to survive, and accept that a mistake in the retention setting will cost you storage until it runs out.

Two limits to keep in mind. First, the lock window has to be longer than the time it takes you to notice. Say your lock is seven days and the attacker has been inside for three weeks: every locked copy may contain their tooling, and the clean ones have aged out. Second, immutability protects the data. It doesn’t protect the backup server, its catalog, or the encryption keys for the backups. Lose those and restoring gets slow and painful even with every byte intact.

Offline copies still earn their place

An offline copy is one that no credential on your network can reach: tape in a safe, removable disks on rotation, or a copy in a cloud account with entirely separate identities and no standing access. It’s old-fashioned, and it works. The CISA/MS-ISAC Ransomware Guide still puts offline, encrypted backups near the top of its prevention advice.

The trade-off is freshness and speed. Offline copies are usually older than your online ones and slower to restore. That’s acceptable. Their job is to be the copy you fall back on when everything else is gone, not the first one you reach for.

Separate the backup plane from the domain it protects

This step gets skipped more than any other. The test is simple: if an attacker held Domain Admin for a week, what could they delete? If the answer includes your backups, the design isn’t finished.

  • Don’t join backup servers and repositories to the production domain. Use local accounts or a separate management domain.
  • Put MFA on the backup console, and give backup administrators accounts that exist only for that job.
  • Keep management interfaces for backup servers, storage, hypervisors and NAS devices on an isolated network that ordinary workstations can’t reach.
  • Don’t store backup credentials in the same password vault your domain admins use.
  • For cloud backups, use a separate AWS account or Azure subscription, administered by different identities from production.
  • Keep break-glass credentials for all of this offline, in a sealed envelope or on a hardware token in a safe.

Restore testing and the RTO you actually have

A backup job that reports success tells you the data was written. It tells you nothing about how long it takes to bring the business back. Test full restores, not a single file. Restore a domain controller, a database server and an application server into an isolated network, and time the whole thing from “go” to “a user can log in and do their job”.

Do the arithmetic before an incident does it for you. Say you need 40 TB back and your effective restore throughput is 1 Gbps. That’s roughly 89 hours of transfer alone, before anyone rebuilds a hypervisor, fixes DNS or hunts down the license key for the ERP system. If your stated recovery time objective is 24 hours, one of those two numbers is fiction.

Restore tests also surface problems nobody planned for: backups that need the backup server’s own encryption key, applications that won’t start without a domain controller, parallel restores fighting over the same storage. Better to find those in a quiet month.

Warning: Restoring the most recent backup can restore the attacker too. Restore into an isolated network first and check for persistence (new services, scheduled tasks, unexpected local admins, web shells) before you reconnect anything.

What comes back first?

Agree restore order with the business before you need it. A typical sequence:

  1. A clean recovery environment. An isolated network, clean admin workstations, and the backup server rebuilt from install media if there’s any doubt about it, with the repository re-imported.
  2. Identity. Restore Active Directory from a known-good backup of one domain controller, then follow Microsoft’s forest recovery process: deal with the remaining DCs, reset the krbtgt password twice, reset privileged accounts.
  3. Core services. DNS, DHCP, certificate services, and the network and firewall configuration everything else depends on.
  4. The systems that earn money or keep people safe. Usually databases first, then the application tiers above them.
  5. File shares and secondary systems.
  6. Endpoints. Reimage rather than restore wherever you can.

Our article on the first 48 hours of a ransomware incident covers how recovery overlaps with containment, which is usually when this order gets tested for real.

Back up identity and configuration, not only data

Plenty of organizations can restore every file and still spend days rebuilding everything around the files. Make sure your backups include:

  • System state from at least two domain controllers, with the DSRM password stored offline
  • Group Policy, exported separately (Backup-GPO -All -Path \\mgmt-backup\gpo) so you can inspect it before reimporting
  • DNS zones, and your certificate authority’s keys and database
  • Microsoft 365 and Entra configuration, including Conditional Access policies
  • Firewall, switch and router configurations, plus hypervisor management configuration
  • Infrastructure-as-code repositories and an encrypted, offline export of the password vault
  • Printed or offline copies of the runbooks you’ll need when the wiki is encrypted

This week, ask your backup administrator one question and notice how long the answer takes: if the domain were compromised tonight, which copy would we restore from, and how long until payroll runs? If nobody can answer with confidence, our incident readiness team can run that test with you, and our ransomware response service is there if it stops being a test. If encryption has already started, report it now.

Dealing with this right now?

A responder will acknowledge your report within 15 minutes, 24/7.

Related service: Ransomware Response