T1496.001 IBM QRadar · QRadar

Detect Compute Hijacking in IBM QRadar

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/

QRadar Detection Query

IBM QRadar (QRadar)
sql
SELECT
  DATEFORMAT(starttime, 'yyyy-MM-dd HH:mm:ss') AS EventTime,
  sourceip AS SourceIP,
  destinationip AS DestinationIP,
  destinationport AS DestinationPort,
  username AS UserName,
  QIDNAME(qid) AS EventName,
  LOGSOURCENAME(logsourceid) AS LogSource,
  "Process Name" AS ProcessName,
  "Command" AS CommandLine,
  CASE
    WHEN LOWER("Process Name") MATCHES '(xmrig|minerd|cpuminer|ethminer|nbminer|t-rex|phoenixminer|nanominer|xmrstak|xmr-stak|kdevtmpfsi|kinsing|sysupdate|networkservice|sysguard|kerberods)' THEN 1
    ELSE 0
  END AS MinerBinaryMatch,
  CASE
    WHEN LOWER("Command") MATCHES '(stratum\+tcp://|stratum\+ssl://|--donate-level|--mining-threads|--coin\s+monero|--coin\s+xmr|pool\.minexmr|pool\.hashvault|supportxmr\.com|nanopool\.org|cryptonight|randomx|--max-cpu-usage)' THEN 1
    ELSE 0
  END AS MiningArgMatch,
  CASE
    WHEN destinationport IN (3333, 4444, 5555, 7777, 14444, 45700, 3032, 8008, 9999, 14433, 45560)
     AND NOT (destinationip ILIKE '10.%' OR destinationip ILIKE '192.168.%' OR destinationip ILIKE '172.1[6-9].%' OR destinationip ILIKE '172.2_.%' OR destinationip ILIKE '172.3[01].%')
    THEN 1
    ELSE 0
  END AS MiningPortMatch
FROM events
WHERE
  LOGSOURCETYPEID IN (12, 13, 352, 433)
  AND starttime > (CURRENT_TIMESTAMP - 86400000)
  AND (
    LOWER("Process Name") MATCHES '(xmrig|minerd|cpuminer|ethminer|nbminer|t-rex|phoenixminer|nanominer|xmrstak|xmr-stak|kdevtmpfsi|kinsing|sysupdate|networkservice|sysguard|kerberods)'
    OR LOWER("Command") MATCHES '(stratum\+tcp://|stratum\+ssl://|--donate-level|--mining-threads|--coin\s+monero|--coin\s+xmr|pool\.minexmr|pool\.hashvault|supportxmr\.com|nanopool\.org|cryptonight|randomx|--max-cpu-usage)'
    OR (
      destinationport IN (3333, 4444, 5555, 7777, 14444, 45700, 3032, 8008, 9999, 14433, 45560)
      AND NOT (destinationip ILIKE '10.%' OR destinationip ILIKE '192.168.%')
    )
  )
ORDER BY starttime DESC
LIMIT 500
high severity medium confidence

Detects cryptocurrency mining via QRadar AQL by querying process execution and network flow events for known miner binary names, mining-specific command-line arguments, and outbound connections to common mining pool ports. Assigns match flags for triage and excludes RFC1918 destinations for network events.

Data Sources

QRadar Windows Security Event Log DSMQRadar Sysmon DSMQRadar Linux OS DSMQRadar Network Flows (QFlow)

Required Tables

eventsflows

False Positives & Tuning

  • Development teams testing blockchain applications that communicate on mining-adjacent ports
  • System administrators running CPU stress tests with tools that have similar names
  • Legitimate RPC services or game servers using ports 3333 or 4444
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