Back to Articles

Ransomware Defense and Resilience: A Layered Program

Contents

Ransomware in a state agency is not an IT problem that landed in the server room.[1][2] It is a program problem: the difference between an incident and an outage is the distance between the attacker's first foothold and a named person executing a rehearsed runbook. This article lays out the program layer by layer and closes with the recovery runbook in the form it should be pinned to the wall in your war room.

The Threat Picture Today

The operating model has moved past encrypt-and-demand. Double extortion is the default: exfiltrate data first, encrypt second, then threaten publication — the ransom is a fraction of the leverage; the data is the leverage. Triple extortion adds a third arm (doxxing staff, DDoS pressure), raising the cost of refusing for public-sector targets where public safety is the argument.[4]

Two market dynamics define what you are defending against. Initial-access brokers: access to named targets — a state agency, a specific VPN, a specific credential set — is bought and sold as a commodity, so your exposure profile (RDP on the internet, stale service accounts, default-credential VPN gear) is a product someone else is marketing. And ransomware-as-a-service: the operators are affiliates running cheap, well-tested tooling — credential phish with MFA fatigue attempts, brute force against exposed services, legitimate remote tools turned hostile. You are not defending against a bespoke heist; you are defending against a catalog.

That framing drives the budget. No prevention layer covers every path, so the program also needs detection, containment, protected recovery copies, and rehearsed restoration. Measure detection and recovery time in exercises and incidents rather than promising a generic reduction.

The Layered Model

The kill chain is a planning tool, not a prediction — attackers do not march through the stages in order. But you can still allocate defense by stage, because each program layer stops a specific one:

Program layerKill-chain stage it stopsHow it stops it
Identity & MFAInitial access, credential accessBlocks stuffing, brute force, and most phished logins; FIDO2 factors also defeat session hijack
Patch managementInitial accessCloses the known-exploit door: RDP, browsers, VPN appliances, public CVEs with working exploits
Email & web protectionInitial accessFilters phish at the gateway, blocks malicious attachments and URLs; macro policy kills the payload
EDR/XDRExecution, lateral movement, collectionProcess-level detection: suspicious child processes, credential dumping, living-off-the-land tooling, beacons
Network segmentationLateral movement, exfiltrationCaps the blast radius — a compromise in one zone cannot move to the next; egress control chokes the exfil path
PAMCredential access, privilege escalation, lateral movementNo shared admin credentials, just-in-time elevation, brokered recorded sessions
Backup & recoveryImpactThe only layer that puts you back — immutable, offline copies the attacker cannot reach

Two reading notes. The layers are multiplicative: each one that fails still slows the attacker, and once detection is working, time is the one resource they have less of than you. And the last row is the only one that recovers value — everything above it buys the chance to use it.

Verify scope against current agency guidance before sizing the program. For a state agency, the baseline is often what the state CISO and agency policy mandate — a specific control set, a reporting obligation, an insurance requirement. The mapping above is the engineering shape; which layers are mandatory, recommended, or documented risk acceptance must be confirmed against current guidance, not against any summary — including this one.

Prevention: Hardening the Perimeter

Identity first, and mean it. MFA on everything that signs in, including the break-glass account; phishing-resistant FIDO2 on the highest-value accounts — admins, finance, the IT help desk, the classic target because a phished agent can reset the admin's password. Retire legacy auth paths (NTLM still flowing), inventory the service accounts (the one with a 2011 password is an initial-access gift), and apply conditional access so privileged sessions come from trusted platforms.

Patching is the unglamorous winner: in every honest post-incident review, an unpatched, exploitable, known-vulnerable component sits in the chain of events. The discipline that works: short SLAs for internet-facing and critical systems (days, not quarters), a monthly cycle for the rest, exploit-protection features on, and a standing removal of anything internet-facing that does not need to be there. An RDP listener on 3389 is a magnet; if it must exist, it sits behind the VPN, patched, and MFA-protected.

Email is a filter problem, not a training problem. A gateway that blocks unknown-by-default, attachment sandboxing, macro control, and DMARC to stop spoofing does more than any awareness campaign — awareness turns a successful phish into a reported one, it does not stop it. Treat "report phish" as a detection layer with a measured response time, not a training KPI.

Exposure hygiene closes the section: a periodic external attack-surface review — port scans, certificate transparency, DNS — tells you what the initial-access broker sees when they price your account.

Detection: What Catches What

Calibrate expectations. EDR catches machine-readable badness well: suspicious process trees (a document host spawning a shell), credential dumping, beaconing implants, the encryption behavior itself. It catches badly or not at all: slow, patient, human-paced lateral movement over weeks, and exfiltration that rides sanctioned channels — a steady stream of files into a cloud drive the agency already uses looks exactly like work, so most EDR platforms are blind to it.

The SIEM is the correlation layer. Its value is not any single log but cross-source patterns: a burst of logon failures from a new geography followed by admin tooling, a service account authenticating at 3 a.m. on a Friday. The sources that matter are the boring ones — directory service, VPN, cloud sign-in, firewall — and the work is building the handful of cross-source detections that actually discriminate, not ingesting everything and hoping.

The triage reality is what kills programs. Untuned, a mid-size agency produces hundreds to thousands of raw alerts a day, and a queue that long never drains. The sustainable shape: a small set of high-fidelity detections, a weekly hunt (the RaaS tooling is public and documented[5] — write the detections before you are hit), and a triage playbook whose first ten minutes answer who, what, and how big the blast radius is. A detection that pages for three straight days is ignored on the fourth.

Containment and Blast Radius

Segmentation is a blast-radius control. The practical unit is the role zone: user, server, finance, guest. The rule of thumb: workloads that should not talk need a boundary between them, not a rule on a shared switch. Default-deny between zones, with an exception list short enough to read in one sitting, survives the incident — you will want to close a zone mid-incident, and you cannot close what you never delineated.

Privileged access management (PAM) removes the credential harvest. An attacker who owns one machine immediately goes looking for administrator credentials cached on it, and a single reused admin password opens every system that password works on. PAM takes those credentials off the endpoints entirely: admin sessions are brokered through a platform, elevated rights are granted just in time and withdrawn again afterwards, and every session is recorded, which doubles as audit trail and forensic record. When the attacker pivots, PAM makes the pivot expensive — every hop requires a brokered, visible, attributable session, not a cached password.

Fast isolation is pre-built, not improvised. The panic actions should exist as written, tested commands before the incident[3], because at 3 a.m. nobody is designing a firewall rule: EDR network-isolation of confirmed-bad hosts, disabling compromised accounts and revoking sessions, a documented VPN kill switch, a firewall block list, and a DNS sinkhole for known command-and-control (C2) domains — your own DNS answering for those names with a dead address, so the malware already running inside can no longer reach the operator for instructions or upload what it has collected. Each is a command someone has run in a drill.

Recovery: Backups, RTO/RPO, Rebuild

Backups follow the rule usually called 3-2-1-1-0: three copies, on two media types, one offsite, one offline or immutable, zero unverified. The two words doing the heavy lifting are immutable and offline. Immutability — object lock on object storage, WORM on appliance backups — means the attacker cannot delete the copy even with the credentials they stole. Offline means the copy is unreachable from the network during the exposure window. An agency with only immutability has a deletable target; one with only offline has an overwritable one.

The backup infrastructure is itself a target — it holds the keys to the restore, so the attacker goes for it early. It sits on its own VLAN with its own credentials; the backup account has no interactive logon rights; and the backup server is patched to the same SLA as the systems it protects, because an unpatched backup server is a bridge into the copies.

Recovery time objective and recovery point objective — RTO, how long a system may stay down before it is back, and RPO, how much recent work you are prepared to lose — are set per workload tier, not as one number for the whole estate. The critical minority — directory service, email, financials, the public portal — carries aggressive targets and the restore drills to prove them; the long tail gets an honest "we rebuild this" posture. Restore order matters: recover the trusted identity and management plane first, then infrastructure, business applications, and their data in the dependency order documented for each service. Systems that touched the attacker are reimaged from a known-good image, not restored from a snapshot taken inside the compromise window. Active Directory recovery follows a separate, rehearsed forest-recovery plan: depending on the scope of compromise, that may mean restoring one trusted writable DC per domain in isolation and rebuilding the others, not merely editing a few changed objects in the live directory.

Rule of Thumb: Measure RPO and RTO in a restore drill. Classify workloads from documented business impact and dependency order, then set the drill frequency from that tier. Do not assume a fixed percentage is critical; one small identity service may matter more than a large application fleet.

The Recovery Runbook

The runbook's specifics — tool names, account names — are yours; the sequence and the decision gates are stable across environments.

  1. Isolate (first 30–60 minutes). EDR-isolate the confirmed-bad hosts, disable compromised accounts, revoke sessions, pull the VPN, block attacker indicators at the edge, sinkhole C2 domains. Time-stamp every action — and do not disconnect unconfirmed hosts; the unconfirmed is where the dwell time hides.
  2. Scope (hours). Fleet-wide EDR triage over the last 30 days, directory-service logon analysis, DNS logs for beacon domains, file-server modification timestamps. The key output is a timeline with a first-confirmed-compromise time. Everything newer than that timestamp is suspect — including backups taken after it.
  3. Don't-panic gates. Four gates separate a controlled recovery from a second incident: don't restore into a network that may still be compromised — re-establish a clean perimeter first (new admin credentials, reimaged servers, a clean VLAN if the evidence says so); don't decide the payment question without legal, law enforcement, and leadership in the room; don't wipe suspected systems before a forensic snapshot; don't assume a backup is clean because the job "succeeded" — check its timestamp against the compromise window.
  4. Restore sequence. Directory service (metadata or authoritative restore per the pre-decided plan), then DNS and file services, then business applications, then data. Users return in small waves, not all at once, so the monitoring has room to catch re-encryption.
  5. Verify and watch (48–72 hours). Functional checks per workload, then a re-encryption watch on every restored volume — mass file modification on a restored system is a re-infection signal — and isolation rules stay up until the watch window is clean.
  6. Communicate and record. An executive summary with status, scope, and timeline; stakeholder notifications; regulatory reporting as required (state CISO, CISA, sector rules); and the incident log — every decision, every timestamp, the raw material for the post-incident review.
# First 60 minutes, in order. Time-stamp every action.
# 1) EDR console: network-isolate confirmed-bad hosts (preserves evidence)
# 2) Directory service: disable compromised accounts, revoke VPN sessions
Disable-ADAccount -Identity "j.doe"
# 3) Edge: add attacker IPs to the deny list; sinkhole C2 domains in DNS
# 4) Do NOT disconnect unconfirmed hosts yet - isolate confirmed only
# After a file-server restore, verify before the share goes back to users:
# - a known-good file opens and matches its expected hash
# - file count and total size are within the expected band
# - no mass delete/rewrite events in the last 24 hours
# (restore commands are backup-product specific; the checks are not)

The runbook's final gate is the go-back decision: no confirmed attacker presence remaining (EDR clean, credentials rotated), restores verified, monitoring in place. Crossing it without the checks is how agencies get hit twice in a season.

Testing the Program

Tabletop exercises, at minimum annually, with a realistic scenario — a phish plus an RDP compromise plus file-server encryption. A tabletop catches what no drill can: the missing authority ("who declares this an incident?"), the stale contact list, the runbook step never written down. Run it with the people who will answer the phone, not the people who are good at exercises.

Restore drills, quarterly on the critical systems, and time them: the backup job reports success while the restore itself fails, the missing license, the dependency nobody documented. And at least every year or two, an external attack-surface assessment — what the initial-access broker sees is your attack surface, and you have been living inside it. A drill that never measures time has never tested anything; RTO is a measured quantity or it is a wish.

The layered model is a map, not a purchase order. For a small organization the honest program looks like this:

LayerMinimum viable (small org)At scale
IdentityMFA everywhere, FIDO2 for admins and help deskFull conditional access, PAM, service-account rotation
EmailCloud email security with macro policyGateway + sandboxing + DMARC + threat-informed reporting
EDRManaged EDR on all endpoints with a 24/7 SOCXDR with SIEM correlation and a dedicated analyst
SegmentationFirewalled role zones, default-deny between themMicrosegmentation, egress filtering
Backup3-2-1-1-0, one immutable copy, quarterly restore drillMultiple immutable copies, metadata restore procedures, clean-rebuild images
TestingAnnual tabletop + quarterly restore drillAdd external red-team / attack-surface assessment annually

A small org that nails the minimum column outperforms a mid-size org running half-configured enterprise tooling. The PAM platform and the XDR suite are the last things to buy, not the first.

And what changes after an incident: the program gets stronger, not just louder — a post-incident review within 30 days, the runbook updated with what actually happened, the "temporarily" disabled rule still disabled, a persistence sweep for the back door the attacker left, budget for the fixes. One uncomfortable fact to write into the plan: the agency is now a known target to the affiliate that hit it, and the next attempt comes in months, not years.

The decision, in one line: each layer buys a specific stage of the chain, so buy the stage you cannot afford to lose (for almost every agency, impact — the recovery layer) and the stage your actual threat profile uses (for almost every agency, initial access). Everything else is sequenced by budget and team capacity, and tested until it works.


References

  1. CISA / FBI, Ransomware: Threat, Response, and Recovery. CISA / FBI, current.
  2. CISA, Ransomware Guide. CISA, current.
  3. Nelson, A., Rekhi, S., Souppaya, M., Scarfone, K. — "Incident Response Recommendations and Considerations for Cybersecurity Risk Management: A CSF 2.0 Community Profile." NIST Special Publication 800-61 Revision 3, April 2025 (supersedes Rev. 2). csrc.nist.gov.
  4. Microsoft Security, Microsoft Ransomware Report. Microsoft, current.
  5. MITRE ATT&CK, Ransomware Techniques and Procedures. MITRE, current.
← Back to Articles ← Previous: External Identity Next: OT and ICS Security Fundamentals →