Ransomware Investigation in Windows Event Logs

A ransomware attack leaves more evidence than the attacker realizes. Windows event logs capture initial access (phishing or RDP abuse), reconnaissance (PowerShell AD enumeration, LSASS access for credential dumping), lateral movement (RDP Logon Type 10 chains, PsExec service installations, WMI execution), persistence (Event 7045 service creations and Event 4698 scheduled tasks) and detonation signatures (shadow copy deletion via vssadmin.exe, mass file modification, ransom note creation). This guide walks the five-stage timeline with specific Event IDs at each stage. Sherlock Forensics Universal Events Viewer Forensic Edition at $97 lifetime produces court-ready PDF reports with chain of custody for cyber insurance and litigation deliverables.

A ransomware attack leaves more evidence than the attacker realizes. Even when the operator runs sophisticated tooling, encrypts files, drops a ransom note and deletes shadow copies, the Windows event logs almost always retain enough signal to reconstruct the attack timeline. The challenge is reading the logs in the few hours or days after detection when the data is most actionable.

This guide is for the IR responder, MSP security lead or forensic examiner reconstructing a ransomware attack from event logs. It covers what to look for, in what order and how to produce a defensible report for executive leadership, the cyber insurance carrier or law enforcement.

The Ransomware Investigation Timeline

A typical ransomware attack runs through five stages, each leaving distinct event log signatures:

  1. Initial Access, the attacker gains entry to the environment, usually via phishing, exposed RDP or exploited public-facing application
  2. Reconnaissance and Credential Access, the attacker maps the network and harvests credentials
  3. Lateral Movement, the attacker spreads from the initial foothold to high-value targets
  4. Persistence and Privilege Escalation, the attacker secures their access and elevates privileges
  5. Detonation, the attacker executes the ransomware payload, encrypts files, deletes backups, drops the note

The forensic examination walks the timeline in order, identifying the signatures at each stage and tying them to specific event IDs and timestamps.

Stage 1: Initial Access Signatures

Phishing-related execution. Office documents (Word, Excel) spawning PowerShell, cmd.exe or wscript.exe are high-confidence indicators of malicious macro execution. Sysmon Event 1 (process create) shows the parent-child relationship, winword.exe spawning powershell.exe is rarely benign.

Exposed RDP abuse. Successful logon (Event 4624) from an unusual source IP, especially from a country the legitimate user does not access from, is the signature. Logon Type 10 (RemoteInteractive, i.e., RDP) outside normal patterns matters. Failed logon spikes (Event 4625) preceding the success suggest credential stuffing or password guessing.

Exploited public-facing application. Web server or VPN gateway logs typically show the initial exploitation, not Windows event logs. The Windows logs pick up the attacker's behavior after they've established a foothold.

Patient zero identification. The earliest Sysmon Event 1 showing a non-Microsoft process executing on the system is often patient zero. Working backward from a known indicator (encrypted file, malicious binary) through process-create events identifies the first malicious execution.

Stage 2: Reconnaissance and Credential Access Signatures

Active Directory enumeration. PowerShell scripts containing Get-ADUser, Get-ADComputer, Get-ADGroupMember or LDAP query commands. PowerShell Event 4104 (script block logging) captures the exact commands if PowerShell logging is enabled. Modules like BloodHound's collectors leave distinctive patterns.

SMB share enumeration. Event 5145 (network share access detail) shows shares accessed, by whom, with what permissions. Bursts of share access from a single source workstation are notable.

Credential dump tooling. Sysmon Event 1 showing lsass.exe accessed by a non-Microsoft process is high-confidence. Mimikatz family tools leave distinctive command-line signatures even when renamed. Procdump.exe targeting lsass.exe (a known living-off-the-land technique) is well documented in ATT&CK T1003.001.

Pass-the-hash / pass-the-ticket signatures. Event 4624 with Logon Type 9 (NewCredentials) showing an unusual authentication pattern. Kerberos service ticket requests (Event 4769) for unusual service principals.

Stage 3: Lateral Movement Signatures

RDP to internal systems. Event 4624 Logon Type 10 from one internal workstation to another. Working from patient zero outward, each subsequent system shows a 4624 originating from the previous system in the chain.

WMI execution. WMI is heavily abused for lateral movement because it does not require explicit logon. WMI-related Sysmon events and Microsoft-Windows-WMI-Activity logs show the execution pattern.

PsExec and similar tooling. Service installation (Event 7045) with service path containing PSEXESVC or similar markers. Sysmon Event 1 showing the PsExec parent-child relationship.

SMB-based file transfer. Bursts of Event 5145 across multiple systems, paired with Sysmon file-creation events (Event 11) on the destination systems, show the attacker staging tooling across the environment.

Stage 4: Persistence and Privilege Escalation Signatures

New service installation for persistence. Event 7045 with non-Microsoft service paths. Common ransomware operators install services as persistence mechanisms.

Scheduled task creation. Event 4698 with task action paths pointing to non-Microsoft binaries. Task scheduler is the most common persistence mechanism after services.

Registry run key modifications. Sysmon Event 13 (registry value set) targeting HKLM\Software\Microsoft\Windows\CurrentVersion\Run or HKCU\Software\Microsoft\Windows\CurrentVersion\Run. Less common in enterprise ransomware (operators prefer services) but seen.

Privilege escalation events. Event 4672 (special privileges assigned) outside normal patterns. Event 4732 / 4756 (member added to Administrators, Domain Admins or Backup Operators) outside change-management windows.

Account creation for backdoor access. Event 4720 (account created) where the new account does not appear in the company directory or change-management records. Often created as a hidden administrator for post-incident persistence.

Stage 5: Detonation Signatures

Shadow copy deletion. Event 1102 (audit log cleared) is rare and notable, but more specific is the use of vssadmin.exe delete shadows, wbadmin.exe delete catalog or bcdedit.exe modifications. Sysmon Event 1 captures these command-line invocations. Many ransomware families run these commands as a final pre-encryption step.

Backup destruction. Event 1102 (audit log cleared), plus targeted file deletion events against backup file extensions (.bak, .bkf, .vhd, .vmdk). Sysmon Event 11 (file create) showing ransomware-extension files appearing en masse signals encryption is underway.

Mass file modification. The single highest-confidence late-stage signal is rapid file-modification events (Sysmon Event 11 or other file-system audit events) showing the renaming or creation of files with ransomware-family extensions (.encrypted, .locked, ransomware-specific extensions). This is the literal moment of encryption.

Ransom note creation. A file named READ_ME.txt, DECRYPT_INSTRUCTIONS.html or similar appearing across multiple directories simultaneously is the ransom note. Sysmon Event 11 shows the file creations.

Anti-recovery commands. cipher /w for free space wiping. format commands. Disk encryption (BitLocker) abuse. Each leaves distinctive command-line signatures.

Building the Ransomware Timeline

The five-phase examination produces a timeline that an executive, board, regulator, insurance carrier or court can follow:

  1. Initial access at T+0: patient zero process creation, parent of all subsequent malicious execution.
  2. Reconnaissance at T+1 to T+N hours: credential harvesting, AD enumeration, target identification.
  3. Lateral movement at T+N to T+M: spreading from patient zero to high-value targets via RDP, WMI, PsExec, SMB.
  4. Persistence and privilege escalation at T+M to T+P: services, scheduled tasks, accounts created for ongoing access.
  5. Detonation at T+P: shadow copy deletion, mass encryption, ransom note drop.

For typical ransomware operations, the total dwell time from initial access to detonation runs from several hours (smash-and-grab operators) to several weeks (advanced persistent threat operators conducting reconnaissance and data exfiltration). The timeline length is itself evidentially relevant, short dwell suggests opportunistic operation, long dwell suggests targeted operation with potential data theft alongside encryption.

Why This Matters for the Insurance and Legal Process

Ransomware investigations frequently produce deliverables for the cyber insurance carrier and outside counsel. The carrier needs the timeline and the technical details to assess coverage. Counsel needs the timeline and the chain-of-custody documentation for potential litigation against the operator or for ransomware-payment compliance (OFAC sanctions screening).

A defensible event log examination produces:

  1. Per-event SHA-256 hashes tying each surfaced event back to the source .evtx file
  2. Chain of custody documentation for the .evtx acquisition, examination and report production
  3. Court-ready PDF report with branded cover, source metadata, timeline narrative, examiner attestation
  4. Production-ready exports (CSV for the carrier's analyst, JSON for SIEM ingestion if applicable, Markdown for incident-team documentation)

Sherlock Forensics Universal Events Viewer Forensic Edition produces these in a single workflow. The five-phase analysis structure built into the product guides the examiner through the workflow above systematically.

When Sherlock Is the Right Choice for Ransomware Work

  • You are an IR responder or MSP handling a live ransomware engagement
  • You need to produce a defensible report for the cyber insurance carrier within tight timelines (carriers commonly require initial assessment within 24-72 hours)
  • You need court-ready chain of custody for potential litigation against the operator
  • You handle multiple ransomware engagements per year and want a per-case workflow that compounds

When Sherlock Is Not the Right Choice

  • The environment is under continuous SIEM monitoring (Splunk, Elastic, Sentinel) and the ransomware was detected by the SIEM, your existing SIEM produces the timeline, Sherlock is not the marginal addition
  • The investigation is purely command-line and EvtxECmd / Chainsaw / Hayabusa output is sufficient for the deliverable
  • The case is at the enterprise procurement tier ($10k+ forensic-tool budget) where Magnet Axiom or Cellebrite provide broader capability surface

See Also