T1496.001 Sumo Logic CSE · Sumo

Detect Compute Hijacking in Sumo Logic CSE

Adversaries may leverage the compute resources of co-opted systems to mine cryptocurrency or perform other resource-intensive tasks, degrading system performance and hosted service availability. The most prevalent form is unauthorized cryptocurrency mining (cryptojacking), typically targeting Monero (XMR) via XMRig or derivative tools due to CPU-friendliness and transaction privacy. Threat actors including TeamTNT, Blue Mockingbird, Rocke, APT41, Kinsing, and Hildegard have deployed miners as follow-on payloads targeting Windows endpoints, Linux servers, and containerized environments. Miners connect to mining pools over stratum protocol (commonly ports 3333, 4444, 14444) and are often deployed alongside rootkits, cron-based persistence, and competing miner kill scripts.

MITRE ATT&CK

Tactic
Impact
Technique
T1496 Resource Hijacking
Sub-technique
T1496.001 Compute Hijacking
Canonical reference
https://attack.mitre.org/techniques/T1496/001/

Sumo Detection Query

Sumo Logic CSE (Sumo)
sql
(_sourceCategory="windows/sysmon" OR _sourceCategory="linux/syslog" OR _sourceCategory="endpoint/process")
| where EventCode in ("1", "3") or EventID in ("1", "3")
| parse field=CommandLine "*" as cmd_lower nodrop
| parse field=Image "*\\*" as folder, process_name nodrop
| parse field=process_name "*" as pname_raw nodrop
| toLowercase(Image) as image_lower
| toLowercase(CommandLine) as cmd_lower
| if (image_lower matches "*xmrig*" or image_lower matches "*minerd*" or image_lower matches "*cpuminer*" or image_lower matches "*ethminer*" or image_lower matches "*nbminer*" or image_lower matches "*t-rex*" or image_lower matches "*phoenixminer*" or image_lower matches "*nanominer*" or image_lower matches "*xmrstak*" or image_lower matches "*xmr-stak*" or image_lower matches "*kdevtmpfsi*" or image_lower matches "*kinsing*" or image_lower matches "*sysupdate*" or image_lower matches "*networkservice*" or image_lower matches "*sysguard*" or image_lower matches "*kerberods*", 1, 0) as MinerBinaryMatch
| if (cmd_lower matches "*stratum+tcp*" or cmd_lower matches "*stratum+ssl*" or cmd_lower matches "*--donate-level*" or cmd_lower matches "*--mining-threads*" or cmd_lower matches "*--coin monero*" or cmd_lower matches "*--coin xmr*" or cmd_lower matches "*pool.minexmr*" or cmd_lower matches "*pool.hashvault*" or cmd_lower matches "*supportxmr.com*" or cmd_lower matches "*nanopool.org*" or cmd_lower matches "*cryptonight*" or cmd_lower matches "*randomx*" or cmd_lower matches "*--max-cpu-usage*", 1, 0) as MiningArgMatch
| if (EventCode == "3" and DestinationPort in ("3333","4444","5555","7777","14444","45700","3032","8008","9999","14433","45560") and !(DestinationIp matches "10.*" or DestinationIp matches "192.168.*" or DestinationIp matches "172.1*"), 1, 0) as MiningPortMatch
| where MinerBinaryMatch=1 or MiningArgMatch=1 or MiningPortMatch=1
| fields _messageTime, _sourceHost, User, Image, CommandLine, ParentImage, DestinationIp, DestinationPort, MinerBinaryMatch, MiningArgMatch, MiningPortMatch
| sort by _messageTime desc
high severity medium confidence

Detects cryptocurrency mining on Sumo Logic by parsing Sysmon process creation (EventCode 1) and network connection (EventCode 3) events. Evaluates known miner binary names, mining command-line indicators, and outbound connections to common stratum mining pool ports, excluding RFC1918 destinations.

Data Sources

Sumo Logic Sysmon Source (Windows)Sumo Logic Linux Syslog SourceSumo Logic Installed Collector with Windows Event Log source

Required Tables

_sourceCategory=windows/sysmon_sourceCategory=linux/syslog

False Positives & Tuning

  • Penetration testing tools or red team frameworks that use miner process names as camouflage
  • Research VMs running miner analysis with live samples
  • Network scanning tools that probe mining-adjacent ports during asset discovery
Download portable Sigma rule (.yml)

Other platforms for T1496.001


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1XMRig Miner Execution with Pool Arguments (Windows)

    Expected signal: Sysmon Event ID 1: Process Create with Image=xmrig.exe, CommandLine containing '--donate-level', 'stratum+tcp://', '--max-cpu-usage'. Sysmon Event ID 3: Network connection attempt to 127.0.0.1:3333 (will fail). Security Event ID 4688 if command line auditing enabled. High CPU utilization visible in performance counters immediately after launch.

  2. Test 2XMRig Miner Execution via PowerShell Download Cradle (Windows)

    Expected signal: Sysmon Event ID 1: Process Create for powershell.exe with '-ExecutionPolicy Bypass -WindowStyle Hidden'. Sysmon Event ID 3: Network connection attempt to 127.0.0.1:8080 from powershell.exe. PowerShell ScriptBlock Log Event ID 4104 with full download cradle content. If the download succeeded: second Sysmon Event ID 1 for svchost32.exe with mining arguments.

  3. Test 3Miner Persistence via Linux Cron Job

    Expected signal: Linux auditd: syscall=execve for crontab command. On next cron tick: process creation for bash/sh spawning curl with mining-related URL, then chmod +x on /tmp/kdevtmpfsi, then execution of /tmp/kdevtmpfsi. If MDE Linux agent enrolled: DeviceProcessEvents showing cron as initiating process spawning curl and the miner binary.

  4. Test 4Mining Pool Network Connection Simulation

    Expected signal: Sysmon Event ID 3: three network connection events from powershell.exe to 127.0.0.1 on ports 3333, 4444, and 14444. Connections will fail (no listener) but the event is generated on the SYN attempt. Windows Firewall log entries for outbound connection attempts on mining ports.

Unlock Pro Content

Get the full detection package for T1496.001 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections