Skip to content
Detection · Ransomware

Ransomware Precursor Log Analyzer

Ransomware is usually the last step. Before it runs, intruders get in (often through a web shell on an internet-facing server), look around, add accounts, read passwords from LSASS, move to other hosts and delete the shadow copies. Paste or drop your own Windows Security and Sysmon events and see which of those steps show up, on which host, in what order, with the next step for each.

Everything is analysed in your browser: nothing is uploaded. For SOC analysts, incident responders and threat hunters.

Drop exported events

Sysmon or Security event XML, JSON (ConvertTo-Json or a SIEM export), a Splunk CSV export, or plain command lines.

Up to 10 files, 20 MB in total, 200,000 events. Export .evtx files as XML first.

Ctrl/Cmd + Enter analyses. Nothing leaves your browser.

Loading…

Sample report · illustrative data

Sample result: three hosts, every stage before encryption

A made-up Sysmon and Security event export (67 events) from three Northwind Freight servers and workstations over about 70 minutes.

Summary

Events read
67 (Event XML), 3 hosts
Score
100/100, ransomware precursors present (PlayCISO heuristic, not a verdict)
Stages that fired
8 of 8: initial access, persistence, defence evasion, credential access, discovery, lateral movement, recovery blocked, impact

Findings in kill-chain order

StageFindingATT&CKSeverityEvents
Initial accessScript file written into an Exchange web folder (errorEE.aspx by w3wp.exe)T1505.003Critical1
Initial accessWeb server process started a command shellT1505.003Critical2
Initial accessExchange "Mailbox Import Export" role assignedT1190Critical1
Persistencesvc_helpdesk added to Remote Desktop Users (net1 and Security 4732)T1098Critical2
Defence evasioncmd.exe running from C:\Users\Administrator\DocumentsT1036.005High2
Defence evasionrundll32 with no arguments; Defender real-time monitoring switched offT1218.011, T1562.001High2
Credential accessThe fake cmd.exe opened lsass.exe with GrantedAccess 0x1410T1003.001Critical1
Discovery6 discovery commands in 3 minutes on NWF-EXCH01 (whoami, net1 user/group, nltest /dclist, ipconfig /all, systeminfo)T1033, T1087, T1069, T1482, T1016, T1082Medium7
Lateral movementwmic /node: process call create; programs started by WmiPrvSE.exe and unsecapp.exeT1047High4
Recovery blockedvssadmin delete shadows; bcdedit recoveryenabled noT1490Critical2
Impact40 readme.txt files written into 40 share folders by C:\Windows\Temp\nwupd.exeT1486Critical40

Timeline per host (UTC)

HostStagesFirst findingLast finding
NWF-EXCH01Initial access, persistence, evasion, credential access, discovery, lateral movement02:10:3103:04:40
NWF-FS01Lateral movement, evasion, recovery blocked, impact03:04:4203:13:57
NWF-WS014Lateral movement03:00:1403:00:14

What to do next

  • Isolate NWF-EXCH01, NWF-FS01 and NWF-WS014 without powering them off, and preserve event logs, IIS logs and disk images first.
  • Reset Administrator and svc_helpdesk and every account that logged on to NWF-EXCH01 after 02:10; remove svc_helpdesk from Remote Desktop Users.
  • Patch Exchange, remove errorEE.aspx after copying it, and remove unexpected Mailbox Import Export role holders.
  • Hunt for nwupd.exe and the fake cmd.exe path on every other host with the Splunk or KQL queries the tool gives.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this analyzer does

5 points
  • Paste or drop your own Windows Security and Sysmon events (event XML, JSON from PowerShell or a SIEM, or a Splunk CSV export) and see the steps that usually come before ransomware is run.
  • It looks for web shells on IIS and Exchange, masquerading system binaries, discovery bursts, new accounts and RDP group adds, LSASS access and dumps, WMI and PsExec execution, shadow-copy deletion, Defender switched off and mass ransom notes.
  • Findings are grouped by stage in kill-chain order, each with its MITRE ATT&CK technique, why it matters and the next step, plus a per-host timeline.
  • You get copy-only Splunk and Microsoft Sentinel / Defender queries to hunt the same activity across every other host.
  • Runs entirely in your browser: nothing is uploaded. The score is a PlayCISO heuristic, not a verdict.

How to export your events

Run one of these on the host (as an administrator for the Security log), then drop the file above. Copy the command; nothing runs from this page.

PowerShell, Sysmon events as XML (recommended)

Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -MaxEvents 5000 | ForEach-Object { $_.ToXml() } > sysmon.xml

PowerShell, Security events used by the rules

Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4688,4720,4728,4732,4756} -MaxEvents 5000 | ForEach-Object { $_.ToXml() } > security.xml

wevtutil, Sysmon events as XML

wevtutil qe Microsoft-Windows-Sysmon/Operational /c:5000 /rd:true /f:xml > sysmon.xml

PowerShell, JSON instead of XML

Get-WinEvent -LogName 'Microsoft-Windows-Sysmon/Operational' -MaxEvents 5000 | Select-Object Id, MachineName, TimeCreated, ProviderName, Message | ConvertTo-Json > sysmon.json

From Splunk: run a search over the hosts and window you care about (for example index=* (source=*Sysmon* OR EventCode=4688 OR EventCode=4732) host=<host>), then use Export, choose CSV and keep the fields EventCode, _time, host, Image, ParentImage, CommandLine, TargetImage, SourceImage, GrantedAccess and TargetFilename. From other SIEMs, export JSON or CSV with the same field names.

What the analyzer looks for

StageRuleATT&CK
Initial access and web shellsScript file written into an IIS or Exchange web folderT1505.003
Initial access and web shellsExchange mailbox export role or export requestT1190
Initial access and web shellsWeb server process started a command shellT1505.003
Defence evasionWindows system program name running from the wrong folderT1036.005
Defence evasionSuspicious rundll32 useT1218.011
Defence evasionMicrosoft Defender protection turned off or excludedT1562.001
Persistence and account changesLocal or domain account createdT1136.001
Persistence and account changesAccount added to a privileged or Remote Desktop groupT1098
Credential accessUnusual process opened LSASS memoryT1003.001
Credential accessCommand line that dumps LSASST1003.001
Credential accessSAM or SECURITY registry hive saved to a fileT1003.002
DiscoveryAccount, group, network and domain discovery commandsT1087, T1069, T1016, T1033, T1482
Execution and lateral movementRemote execution through WMIT1047
Execution and lateral movementPsExec or remote service creationT1021.002, T1569.002
Impact preparation (recovery blocked)Shadow copies or recovery deletedT1490
Impact (encryption and ransom notes)Ransom-note-like files written across many foldersT1486
Impact (encryption and ransom notes)Many files given the same new extensionT1486

Score: the most serious finding in each stage adds 25 (critical), 15 (high), 8 (medium) or 3 (low) points, plus 10 when three or more stages fire and 10 more at five, capped at 100. 60 or more reads “Ransomware precursors present”, 30 to 59 “Worth investigating”. The rules, thresholds and weights are PlayCISO guidance, not an industry standard: tune your production detections against your own baseline.

What it cannot tell you

  • It only sees what was logged. Without Sysmon, or without command-line logging on 4688, most process rules have nothing to read.
  • Admins do some of this too. whoami, net group and PsExec are everyday admin tools. Check who ran them and why before acting.
  • Renamed tools slip past name rules. An attacker who renames vssadmin or PsExec may only show up in other stages.
  • A low score does not clear a host. Attackers clear logs, and a short export may miss the window that matters.

Frequently asked questions

Does this upload my logs?

No. The file or pasted text is read and analysed in your browser. Nothing is sent to PlayCISO or anyone else, and no address, host or file in your events is contacted.

Is the score a verdict that we are being hit by ransomware?

No. The 0-100 score is a PlayCISO heuristic that adds points for the most serious finding in each stage and for how many stages fired. A high score is a strong lead to investigate; a low score does not clear a host, because the tool only sees the events you give it.

Which events does it need?

Sysmon process creation (1), file creation (11), process access (10) and remote thread (8) events give the most. From the Security log, 4688 (process creation with command line), 4720 (account created) and 4728, 4732 and 4756 (member added to a group) are used, and System 7045 (service installed). Without Sysmon, turn on command-line logging for 4688.

Which formats does it read?

Event XML from Get-WinEvent piped to ToXml() or from wevtutil qe /f:xml; JSON arrays or JSON lines from Get-WinEvent | ConvertTo-Json or SIEM exports (Splunk, Elastic, winlogbeat field names such as EventCode, EventID, Image, CommandLine, TargetImage, GrantedAccess); CSV with a header row, such as a Splunk export; and plain command lines, one per line. Up to 20 MB of text and 200,000 events.

Why does it flag a process opening LSASS when our security tool does that?

Security products and some system processes read LSASS memory as part of normal work. The tool skips a short list of usual readers (Defender, Defender for Endpoint, csrss, wininit, svchost and a few others) only when they run from their normal folders. Anything else is shown so you can decide; that list is a heuristic, not complete.

What should we do first if it finds these steps?

Isolate the hosts with findings without powering them off, preserve the event logs and disk images before anyone rebuilds, reset the credentials of accounts that logged on to those hosts, patch Exchange and other internet-facing servers, and hunt for the same files and commands on every other host.

Practice files for this tool

Synthetic logs to work through with this page. Every address, name and key in them is made up. See the whole sample library

  • LogSysmon Operational (XML)

    Sysmon: ClickFix Run Box to DLL Side-Loading

    The Run dialog history records a pasted PowerShell command (removed), PowerShell starts from Explorer, drops an exe, a DLL and a data file in AppData, the exe loads the unsigned DLL, sets a Run key and calls out every minute.

    What to look for (4)
    • RunMRU registry values that hold commands
    • powershell.exe with explorer.exe as parent
    • Event 7: a signed-looking exe loading an unsigned DLL from its own folder
    • Run key persistence and periodic network events

    24.0 KB · 16 records · SHA-256 5f08a766dfc31841292354c682fba036adebdd915e316f795fd3f50ff1d5bf1d

  • LogSysmon events (JSON lines)

    Larkspur Case: Sysmon Events From Eight Hosts

    Three days of Sysmon process, network, DNS, file and process-access events from the fictional Larkspur Logistics network. It is the endpoint half of the Intrusion Investigation Lab case, ready to load into Splunk, Elastic or Sentinel.

    What to look for (4)
    • Process trees that start from a browser or Explorer and end in a script host
    • Processes opening another process with a high access mask
    • New executables written under user profile folders
    • Outbound connections from processes that never made them before

    147.7 KB · 631 records · SHA-256 3c4f5ae6d030b1527950b295c5c85c675b9de738f4c69f7b857f6a49d07ca3f5

More tools like this

Related tools and labs, with new picks every day.

All tools
🎉 New here? Use code WELCOME10 for 10% off any plan at checkout