← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing CMD Service Mod Fax Dataset

Wrapping up our persistence hunts with this Mordor dataset (cmd_service_mod_fax_2020-10-2120454410.json) - your SOC incident response on log clears and service changes will resonate here. This simulates T1543.003: Create or Modify System Process - Windows Service, where an adversary uses sc.exe from cmd.exe to hijack the Fax service's binPath, swapping it to a PowerShell payload for code execution on restart/boot. The "-noexit -c \"write-host 'T1543.003 Test'\"" is a benign test echo, but in real attacks, it'd be malicious (e.g., Empire listener).

Step 1: Hypothesis Formation

Hypothesis: Adversary with local admin (wardog) clears logs (Security/System) to cover tracks, then modifies the Fax service via sc config to point binPath to PowerShell for persistence. Service start fails/times out due to invalid payload. Indicators:

Null Hypothesis: Admin maintenance (e.g., log rotation, service update). Invalidate via PS payload + immediate failure + log clear sequence.

Rationale: Mordor atomic for T1543.003; sc.exe LOLBIN common for service abuse. Builds on your log analysis - pivot from clears to service mods.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed ~10+ events (truncated; full ~600K chars). Sequence: Log clears → sc.exe mod → service errors. Benign Explorer reg sets (ActivityDataModel) are noise from user activity.

Timestamp (UTC)Event IDChannel/SourceKey DetailsIOC/Why Suspicious?
2020-10-21 08:45:311102SecurityAudit log cleared; Subject: wardog (LogonId 0xC61D9).Cover IOC: Pre-mod clear - erases prior activity (e.g., priv esc).
2020-10-21 08:45:31104SystemSystem log cleared.Chains with 1102; full wipe under same user.
2020-10-21 08:45:334688SecurityNew proc: sc.exe (PID 0xC28) from cmd.exe (PID 0x21F4); CmdLine: sc config Fax binPath= "powershell.exe -noexit -c \"write-host 'T1543.003 Test'\""; Token: %%1936 (limited).Core IOC: Service hijack - replaces Fax binary with PS for persistence. Echo confirms ATT&CK ID.
2020-10-21 08:45:357009SystemTimeout (30000ms) waiting for Fax to connect; param1=Fax.Post-mod failure - PS payload invalid for service (no -WindowStyle Hidden).
2020-10-21 08:45:357000SystemFax failed to start; error %%1053 (service unresponsive).Confirms mod broke service; adversary may retry with proper PS.
2020-10-21 08:45:4213 (Reg Set) x2SysmonExplorer.exe (PID 1072) sets HKU\...\ActivityDataModel\ReaderRevisionInfo (binary).Benign timeline noise; user browsing.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - service persistence via Fax mod! End of bootcamp - you're pro-level now. Journal a real service anomaly? Congrats on the hunts!