Solutions/Stop ransomware before encryption

Use case

How to Stop Ransomware Before Encryption Starts

Updated 27 October 2026. Outside sources are listed at the end of the page, each with its own date.

To stop ransomware before encryption, block the changes it makes first. Before encryption, operators commonly delete shadow copies and tamper with security tools. Mimic Networks Ransomware Defense checks each change to a protected Windows or Linux server against that server's known-good profile and stops unauthorized changes at the point of execution.

Mimic Networks calls this Pre-Encryption Enforcement. It enforces a known-good baseline at Ring 0: each attempted change to a protected server is checked against a verified record of that server’s authorized state, and Mimic stops exploitation at the point of execution when a change falls outside it. No signature, behavioral pattern or prior knowledge of the variant is required.

This guide follows the attack in order: what ransomware does before it encrypts, what CISA recommends at each stage, where each control acts and how the five steps of the Known-Good Enforcement Guide, by Mimic Networks, stop the change on the server. It ends with what to do if encryption starts anyway.

What does ransomware do before it encrypts?

CISA defines ransomware as “a form of malware designed to encrypt files on a device, rendering them and the systems that rely on them unusable” (CISA). Many operators also steal data first and threaten to release it, which CISA calls double extortion, and some skip encryption entirely. Encryption often comes last: CISA notes that in some cases ransomware deployment “is the last step in a network compromise.” The steps before it follow a pattern MITRE ATT&CK documents technique by technique.

What ransomware does before it encrypts, in MITRE ATT&CK terms
StageWhat attackers doATT&CK technique
Get inExploit an internet-facing application, use an exposed remote service such as a VPN or RDP, send phishing messages or sign in with stolen credentialsT1190, T1133, T1566, T1078
Take credentials and spreadDump credentials from LSASS memory and move laterally over Remote DesktopT1003.001, T1021.001
Run tools that look legitimateRun PowerShell and proxy execution through signed system binariesT1059.001, T1218
Impair defensesDisable, degrade or tamper with security tools such as EDR, antivirus and logging agentsT1685
Inhibit recoveryDelete shadow copies and backup catalogs, and turn off recovery featuresT1490
EncryptEncrypt data on local and remote drives and withhold the keyT1486

CISA’s response checklist names the built-in Windows tools to watch at the recovery stage, bcdedit.exe, fsutil.exe, vssadmin.exe, wbadmin.exe and wmic.exe, and calls their misuse “a common ransomware technique to inhibit system recovery” (CISA). Each stage before encryption is a chance to stop the attack, and each takes a different control.

What does CISA recommend before encryption?

CISA’s #StopRansomware Guide, written with MS-ISAC, the NSA and the FBI, groups prevention by initial access vector and maps its recommendations to CISA’s Cross-Sector Cybersecurity Performance Goals (CISA). These are the practices that bear most directly on stopping ransomware before encryption.

What CISA’s #StopRansomware Guide recommends before an incident
AreaWhat CISA recommends
Backups“Maintain offline, encrypted backups of critical data,” test them in a disaster recovery scenario and keep “golden images” of critical systems. CISA notes many variants try to find and delete or encrypt backups they can reach.
Response planCreate, maintain and exercise a cyber incident response plan and communications plan, with a hard copy and an offline version.
Internet-facing systemsDon’t expose services such as RDP to the web, scan for vulnerabilities regularly and prioritize timely patching of internet-facing servers, “especially for known exploited vulnerabilities.” The KEV catalog lists them.
Remote accessLimit RDP, close unused RDP ports, apply MFA and log login attempts. Patch VPNs and require MFA on every VPN connection.
CredentialsPhishing-resistant MFA for email, VPNs and accounts that access critical systems. Separate admin accounts from user accounts, and protect LSASS with the attack surface reduction rule for LSASS and Credential Guard.
PhishingAwareness training, email gateway filtering, DMARC and macros disabled in Office files sent by email.
Precursor malwareCentrally managed antivirus, and “application allowlisting and/or endpoint detection and response (EDR) solutions on all assets,” with Windows Defender Application Control, AppLocker or both on Windows. Microsoft’s current documentation covers App Control for Business and AppLocker.
Social engineeringTraining on advanced social engineering, Protective DNS and sandboxed browsers.
Third parties and MSPsReview their risk management and cyber hygiene, and give them only the access their role needs.
HardeningLeast privilege on all systems and services. Also restricted PowerShell, secured domain controllers, network segmentation and centralized logs in a SIEM.

NIST’s ransomware profile organizes the same work under the Cybersecurity Framework 2.0 functions: govern, identify, protect, detect, respond and recover (NIST IR 8374 Rev. 1). Most of CISA’s list works before an attacker reaches a server, by closing the way in. On the server itself, allowlisting decides which software may run and EDR decides what activity looks like. Known-good enforcement adds a different check there: whether a given change was authorized.

Where does each control act before encryption?

Where each control acts before encryption
ControlWhere it actsWhat it needs to know
Patching known exploited vulnerabilities (CISA KEV)Before an attacker can use a known flaw to get inWhich vulnerabilities are being exploited
Phishing-resistant MFA (CISA)At sign-inWho the user is
Application allowlisting (NIST SP 800-167, App Control)When code tries to run: which applications and components may executeThe approved application inventory
Attack surface reduction rules, Windows (Microsoft Learn)When software attempts a risky behavior, such as running an obfuscated scriptThe behaviors to block
Controlled folder access, Windows (Microsoft Learn)When an app tries to change files in a protected folderWhich apps are trusted
EDR (Microsoft Learn)When activity matches a threat pattern or behavior it detects. Some modes also block on those detections, such as Microsoft’s EDR in block modeThreat patterns and behaviors
Known-good enforcementInline, before a change to a protected server executesThe server’s authorized baseline. Nothing about the attacker
Offline, tested backups (CISA)After the attack, for recoveryWhat to restore and whether the copy is clean

The controls don’t compete. They act at different moments and need different knowledge, so one can catch what another misses. Patching speed matters: of the 491 vulnerabilities newly named as exploited in the first half of 2026, attackers were already exploiting 141 when those flaws went public, per the Zero Day Clock, read 24 October 2026. For the platforms compared row by row, see what runs beside EDR to stop ransomware.

How does the known-good enforcement framework stop ransomware before encryption?

The Known-Good Enforcement Guide, by Mimic Networks, sets out five steps that run on each protected server. The known-good enforcement page explains the model behind it.

  1. Profile the authorized state

    During onboarding, Mimic profiles each protected server in its approved state and records its files, processes, services, registry keys and settings. Unlike application allowlisting, which decides what may launch, the baseline governs what may change. It describes the server, not the threat, so it doesn’t need an update when a new variant appears.

  2. Check each change before it executes

    Each attempted change to a protected server is checked against the baseline. Mimic decides inline, before the change executes. The question is whether the change was authorized, not whether it looks malicious, so the check doesn’t depend on recognizing the variant.

  3. Stop what falls outside the baseline

    Authorized changes proceed. When a change to a protected server falls outside the baseline, Mimic stops exploitation at the point of execution. Controlled folder access and the allowlisting CISA recommends decide by which application is asking. Mimic decides by whether the change itself is in the baseline, so a trusted or signed process attempting an unauthorized change is stopped too.

  4. Record each attempt

    Each blocked attempt is recorded with the process behind it and what it tried to change, and the record is visible in DashCam, Mimic’s console. Responders start from what was attempted, in order, rather than from a reconstruction.

  5. Keep the baseline current

    Approved updates are part of the baseline’s lifecycle, so legitimate operations continue. For planned administrative work there’s Maintenance Mode. In Maintenance Mode, Mimic suspends enforcement and keeps monitoring, so schedule those windows with the same care as any other change.

For protected critical applications, Mimic blocks the unauthorized change before it reaches the data, so there’s no window of data loss to clean up. Where a restore is still needed, Mimic creates a restore point the moment it detects the change.

What is ransomware prevention, and how is it different from detection?

Ransomware prevention stops an attack before it acts. Detection recognizes an attack by its signature or behavior, then alerts, blocks or responds. A control that has to recognize an attack can’t act on one it doesn’t recognize yet, and operators alter variants, sign their binaries or work through legitimate administrative tools to avoid a match.

Microsoft’s documentation separates the two. It describes attack surface reduction as capabilities that “eliminate risky or unnecessary behaviors on devices and networks,” and says they complement the Defender for Endpoint capabilities “that detect and respond to threats after they occur” (Microsoft Learn).

Prevention controls differ in what they decide on. ASR rules constrain risky software behaviors (Microsoft Learn). Controlled folder access “checks apps against a list of known, trusted apps and prevents untrusted apps from modifying files in protected folders” (Microsoft Learn). Known-good enforcement decides on the change itself: whether it’s inside the protected server’s authorized baseline.

How do you prevent AI-powered ransomware?

By not depending on recognizing it. AI lets operators generate new variants, adapt mid-intrusion and compress the attack timeline, and each of those strains a control that has to recognize the attack first. A variant nobody has seen has no signature. An operator adapting mid-intrusion changes the behavior a profile was built on.

Enforcement asks only whether an attempted change falls inside the known-good baseline. A variant generated minutes ago gets the same test as one catalogued for years, because the test was never about the variant. Enforcement isn’t a response with an analyst in the loop. It’s a decision made in the execution path.

What if the attacker has valid credentials?

Ransomware operators often sign in rather than break in. MITRE ATT&CK documents adversaries using valid accounts to get in, persist and escalate privileges (T1078), and CISA tells organizations to apply least privilege because attackers often use privileged accounts for network-wide ransomware attacks (CISA). With a valid credential and an approved tool, the activity can look legitimate to identity and endpoint controls.

Mimic checks the change, not the credential. An attacker holding valid credentials still has to make a change the baseline doesn’t contain, and that change gets the same answer as any other.

What should you do if encryption starts anyway?

Follow your approved incident response plan. CISA’s response checklist tells responders to “move through the first three steps in sequence” (CISA):

  1. Isolate. Determine which systems were impacted and immediately isolate them. If several systems or subnets appear impacted, take the network offline at the switch level.
  2. Power down only if you must. CISA advises powering down devices you can’t disconnect, and notes that doing so loses evidence held in volatile memory.
  3. Triage for restoration. Prioritize critical systems, restore on a clean network and look for precursor malware before rebuilding from backups.

Then report the incident to CISA, a local FBI field office, the FBI’s IC3 or a local U.S. Secret Service field office, and follow your notification plan. Contain and eradicate next. Capture system images and memory. Ask federal law enforcement about available decryptors. Secure the systems and accounts involved in the initial breach, rebuild systems in order of critical services and reset passwords for affected systems (CISA).

Recovery reconnects systems and restores data from offline, encrypted backups, again in order of critical services, taking care not to re-infect clean systems. CISA closes the checklist with lessons learned, documented and shared with CISA or your sector’s ISAC. Where Mimic protects a server, its record of blocked attempts gives responders the order in which changes were tried. Enforcement doesn’t replace any of these steps.

The check doesn't ask which strain it is. It asks whether the change was authorized.Ransomware on a protected server tries to delete shadow copies, stop a protected security tool and change files a critical application depends on. Mimic checks each change against the server's known-good profile and stops it at the point of execution, and DashCam records each attempt. SOURCE Ransomware on a protected server ATTEMPT 01 Delete shadow copies ATTEMPT 02 Stop a protected security tool ATTEMPT 03 Change files the application needs Known-good profile check Was this change authorized? INSIDE THE PROFILE In the profile: proceeds OUTSIDE THE PROFILE Outside it: stopped at the point of execution DASHCAM RECORDS EACH ATTEMPT
The check doesn't ask which strain it is. It asks whether the change was authorized.Ransomware on a protected server tries to delete shadow copies, stop a protected security tool and change files a critical application depends on. Mimic checks each change against the server's known-good profile and stops it at the point of execution, and DashCam records each attempt. SOURCE Ransomware on a protected server ATTEMPT 01 Delete shadow copies ATTEMPT 02 Stop a protected security tool ATTEMPT 03 Change files the application needs Known-good profile check Was this change authorized? INSIDE THE PROFILE In the profile: proceeds OUTSIDE THE PROFILE Outside it: stopped at the point of execution DASHCAM RECORDS EACH ATTEMPT
The check doesn't ask which strain it is. It asks whether the change was authorized.

Proof

How you'll see it work.

DashCam keeps the record of the protected run: what each blocked attempt tried to change, by which process and when.

What doesn’t enforcement do?

Enforcement doesn’t remove the vulnerability ransomware used to get in, and it doesn’t judge whether approved software is behaving maliciously. It decides whether each change to a protected server was authorized. It doesn’t retrieve data stolen before an attack was stopped. It covers the servers where it runs. It doesn’t replace patching, MFA, detection or offline backups.

Related reading: Mimic Ransomware Defense, what is kernel-level enforcement security?, the known-good enforcement glossary and Virtual Patching.

Limits

Where Mimic stops.

  • Mimic Networks protects Windows Server 2016 and later, and Red Hat Enterprise Linux 8 and later.
  • It doesn't run on laptops, desktops or network devices.

Who it's for

For your role.

CISOs

A control that has to recognize the attack has nothing to match on a variant nobody has seen. Mimic checks the change instead, on the servers where encryption would cost the most.

Ransomware Defense

Security engineering

Mimic decides inline, before the change executes. Enforcement runs as a file system mini-filter driver on Windows and through eBPF on Linux, with the enforcement logic in a WebAssembly sandbox implemented in Rust, from a single module on both.

What is kernel-level enforcement security?

Infrastructure and server owners

No reboots required. In Maintenance Mode, Mimic suspends enforcement and keeps monitoring, so schedule those windows like any other change.

Can you prevent ransomware without detection?

FAQ

What do security teams ask about stopping ransomware before encryption?

Close the ways in and block the changes ransomware needs before they execute. Patch internet-facing systems, require phishing-resistant MFA and use allowlisting, as CISA recommends. Keep offline, encrypted backups, because attackers commonly go after recovery before they encrypt. Kernel-level enforcement checks each attempted change to a protected server against its authorized state and stops exploitation at the point of execution when a change falls outside it.

Detection recognizes ransomware by its signature or behavior, then alerts, blocks or responds. Prevention stops the attack before it can act. Attack surface reduction rules, allowlisting and known-good enforcement are all prevention controls, and they decide on different things. Mimic uses a prevention model that checks whether each change to a protected server was authorized, so it doesn’t need to recognize the variant.

No, though both block by default. Allowlisting decides which software may run, and per-application rules can limit what approved software reaches. Kernel-level enforcement decides whether each change to a protected server matches that server’s authorized state, whichever process makes it. The two can run together: allowlisting on what may execute, enforcement on what may change.

Plan for it, because it’s common. MITRE ATT&CK documents attackers deleting built-in recovery data such as volume shadow copies and backup catalogs, and CISA recommends offline, encrypted backups that are tested regularly so a copy survives. On protected servers, Mimic checks attempted changes against the authorized baseline and stops exploitation at the point of execution when a change falls outside it.

No. Mimic Networks is designed to run alongside existing EDR, XDR, SIEM, SOAR and BCDR tooling rather than replace it. EDR covers detection, investigation and response. Backups cover recovery, and CISA recommends keeping them offline and tested. Mimic adds a check on protected servers that doesn’t depend on recognizing the attack: whether each change was authorized before it executes.

By not depending on recognizing it. AI lets operators generate new variants and adapt mid-intrusion, which strains signature and behavioral models. Enforcement asks only whether an attempted change falls inside the known-good baseline, so a variant generated minutes ago gets the same test as any other. Enforcement runs in five steps: profile, check, stop, record and keep the baseline current.

The guide has two parts. Part 1 covers preparation and prevention: offline, encrypted and tested backups, an exercised incident response plan, patching internet-facing systems with known exploited vulnerabilities first, phishing-resistant MFA, allowlisting or EDR on all assets and least privilege. Part 2 is a response checklist that starts with isolating impacted systems, then triage, reporting, containment and recovery. CISA wrote it with MS-ISAC, the NSA and the FBI.

Each blocked attempt is recorded with what it tried to change, when and the process behind it, and the record is visible in DashCam, Mimic’s console. The record exists whether or not anyone asked for it, because the attempt was intercepted rather than reconstructed afterward. Responders can see the order in which changes were tried on a protected server.

What sources does this page use?

Each source below was read on 22 October 2026 unless its date says otherwise. Dates are the dates each page shows.

See it on your servers.

Start with a demo. Bring the servers you need to protect and the questions your team will ask.

Book a demo