Threat Detection

How to Detect Ransomware with a SIEM: Early Warning Signs and Detection Rules

June 202413 min read

By the time files start getting encrypted, it is too late. The good news: ransomware is not a single instantaneous event — it is a multi-stage operation that generates detectable signals at every step before the payload fires. A properly configured SIEM can catch those signals and let you intervene while there is still time. This guide walks through the attack stages and the specific detection rules that catch them.

Ransomware Is a Process, Not an Event

Modern ransomware operators do not just drop a payload and encrypt. They follow a predictable sequence: gain initial access, establish persistence, escalate privileges, move laterally to reach as many systems as possible, exfiltrate data for double-extortion, and only then deploy encryption across the environment. This sequence often unfolds over days or even weeks — a long window in which a SIEM has many chances to detect the intrusion.

The core insight

Encryption is the last stage, not the first. Every stage before it — access, persistence, escalation, lateral movement, staging — leaves log evidence. Detection is about catching the earlier stages, not the encryption itself.

The Attack Stages and Their SIEM Signals

Stage 1: Initial Access

Most commonly via phishing, exposed remote access services, or exploitation of an unpatched internet-facing system. SIEM signals: successful logins from unusual geographies, authentication to remote access services outside business hours, new external connections to internal services, or email gateway logs showing a malicious attachment that was opened.

Stage 2: Persistence and Privilege Escalation

Attackers establish a foothold that survives reboots and work toward administrative rights. SIEM signals: new scheduled tasks or services created, new accounts added to privileged groups, unusual registry modifications, and a standard user account suddenly performing administrative actions.

Stage 3: Lateral Movement

The attacker spreads from the initial host to reach domain controllers, file servers, and backup systems. SIEM signals: a single account authenticating to an unusually large number of hosts in a short window, use of remote execution tools across systems, and internal traffic patterns that deviate sharply from baseline.

Stage 4: Data Staging and Exfiltration

Modern ransomware steals data before encrypting it (double extortion). SIEM signals: large internal file transfers consolidating data onto one host, then large outbound transfers to external destinations or cloud storage that the organisation does not normally use.

Stage 5: Defence Evasion and Backup Destruction

Immediately before encryption, operators try to disable recovery. SIEM signals: commands that delete volume shadow copies, attempts to stop backup services, security tool tampering, and mass deletion of backup files. This is the highest-priority signal — it almost always immediately precedes encryption.

Stage 6: Encryption

The payload executes across the environment. SIEM signals: a single process opening, modifying, and renaming files at extremely high rates; mass file extension changes; ransom note files appearing across many directories simultaneously.

The Detection Rules That Matter Most

You cannot watch every stage with equal attention. These are the highest-value ransomware detection rules to prioritise in your SIEM, roughly in order of how reliably they indicate an active ransomware incident:

  1. Volume shadow copy deletion — almost never legitimate in normal operations; one of the strongest pre-encryption signals
  2. Backup service tampering or mass backup file deletion — recovery destruction immediately precedes encryption
  3. Mass file modification rate anomaly — a single process touching hundreds of files per minute is encryption in progress
  4. Lateral movement velocity — one account authenticating to many hosts rapidly
  5. Privileged group membership changes — accounts being added to admin groups outside change windows
  6. Security tool disablement — endpoint protection or logging being turned off
  7. Anomalous large outbound transfers — the exfiltration stage of double extortion

Why correlation beats single rules

Any one of these signals alone might be a false positive. The power of a SIEM is correlation: shadow copy deletion AND lateral movement AND a privileged group change within the same hour is not noise — it is an active intrusion in its final stage. nPro maps these to MITRE ATT&CK so the chain is visible as a single incident, not seven disconnected alerts.

Mapping to MITRE ATT&CK

Each ransomware stage corresponds to MITRE ATT&CK tactics: Initial Access (TA0001), Persistence (TA0003), Privilege Escalation (TA0004), Lateral Movement (TA0008), Collection and Exfiltration (TA0009/TA0010), Impact (TA0040). A SIEM that aligns detections to ATT&CK lets your analysts see exactly which stage an attack has reached and how far it has progressed — turning a pile of alerts into a coherent kill-chain narrative.

Why Self-Hosted Matters for Ransomware Response

During a ransomware incident, attackers often try to disable or blind security monitoring. If your SIEM logs live only in a cloud service the attacker may have also compromised credentials for, your forensic trail is at risk. A self-hosted SIEM with append-only, tamper-evident log storage preserves the evidence you need for response and recovery even if endpoints are compromised. It also means your incident data — which is highly sensitive during a breach — stays within your control.

Practical First Steps

If ransomware detection is your priority, configure these in your SIEM first: ingest domain controller and endpoint logs (where the strongest signals live), enable the shadow-copy-deletion and backup-tampering rules as critical-priority alerts, set up lateral movement velocity detection on privileged accounts, and ensure your log retention is long enough to reconstruct the full attack timeline after the fact. For the full deployment walkthrough, see our guide on deploying a self-hosted SIEM on Ubuntu.

Catch Ransomware Before Encryption

nPro ships with MITRE ATT&CK-aligned ransomware detection rules out of the box. Self-hosted, 5-minute deploy.