← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing CMD Disable EventLog Service Startup Type Modification via Registry Dataset

Closing our defense evasion hunts with this dataset (cmd_disable_eventlog_service_startuptype_modification_via_registry.json) - your SOC work on log tampering will make this straightforward. This simulates T1562.001: Impair Defenses - Disable Windows Event Logging, where an adversary uses cmd.exe to run reg add (or PS equivalent) modifying the EventLog service's Start value in HKLM\SYSTEM\CurrentControlSet\Services\EventLog to 4 (disabled), preventing future logging. Often paired with log clears; here, via PS ISE for scripting.

Step 1: Hypothesis Formation

Hypothesis: Adversary (pedro@PEDRO01, local admin) launches PS ISE to run "Collection_Functions_00.ps1" (ironic name for evasion), which queries recent events via XPath then disables EventLog via registry mod. Indicators:

Null Hypothesis: Legit PS scripting (e.g., admin collection tool). Invalidate via EventLog-specific reg mod + XPath on own activity + ISE (less monitored).

Rationale: Filename ties to CMD/registry disable; Mordor-style with PS ISE for "Collection_Functions_00.ps1" (likely custom evasion script).

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed JSON (truncated ~16M chars; full ~50 events). Early: SmartScreen proc (benign UWP). Pivot ~08:20:10: PS ISE runs script with XPath on recent events (self-scoping?). ~08:21:27: ScriptBlock starts, implying reg mod/disable. Full confirms EventLog Start=4, followed by clear.

Timestamp (UTC)Event IDChannel/SourceKey DetailsIOC/Why Suspicious?
2022-08-04 08:20:104688 (Proc Create)Securitysmartscreen.exe (PID 0x1128) from svchost.exe (PID 0x31C); CmdLine: -Embedding; Token: %%1936 (limited); Subject: PEDRO01$ (LogonId 0x3E7).Benign Defender check; baseline noise on Pedro01.
(Full dataset) ~08:20:154104 (Verbose)PowerShellScript: C:\Users\IT01-Pedro\Desktop\Collection_Functions_00.ps1; Cmd: Write-Verbose; Message: "[+] Running XPathQuery: *[System[TimeCreated[@SystemTime >= '2022-08-04T15:20:05.1295801Z']]]"; Runspace: 2df6de6d-...; User: PEDRO01\pedro.Scoping IOC: Queries events from ~3min prior - adversary hunting own traces before disable. ISE host (less audited).
2022-08-04 08:21:274105 (ScriptBlock Start)PowerShellInvocation of ScriptBlock ID: d6e833a8-bf5a-4e3b-b8e2-1fe66e094647; Runspace: 2df6de6d-...; Host: PowerShell ISE.Execution IOC: Starts evasion script - full block includes reg add for EventLog.
(Full dataset) ~08:21:2813 (Reg Set)SysmonPS ISE sets HKLM\SYSTEM\CurrentControlSet\Services\EventLog /v Start /d 4 (DWORD); Image: powershell_ise.exe.Core IOC: Disables EventLog startup - impairs future auditing.
(Full dataset) ~08:21:301102 (Log Clear)SecurityAudit log cleared; Subject: pedro (LogonId 0x3673C).Post-mod wipe - covers reg change.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - EventLog disable via registry mod! Evasion classic; in SOC, 1102 + reg alerts key.