← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Empire Persistence Registry Modification Run Keys Dataset

Kicking off persistence hunting with this Mordor dataset (empire_persistence_registry_modification_run_keys_elevated_user_2020-07-22001847.json) - leveraging your SOC triage on registry artifacts. This simulates T1547.001: Boot or Logon Autostart Execution - Registry Run Keys, where Empire's reg_persist module (via PowerShell) adds a Run key entry (e.g., HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Mordor) pointing to a stager for C2 beaconing on logon. Elevated context (SYSTEM or admin) ensures machine-wide persistence.

Step 1: Hypothesis Formation

Hypothesis: Adversary with Empire agent (elevated as wardog or SYSTEM) executes PS to create/modify HKLM Run key for autostart, staging a payload (e.g., empire.exe) in %TEMP%. Indicators:

Null Hypothesis: Legit software install (e.g., auto-update adding Run entry). Invalidate via PS cmdline + temp payload + Empire task ID.

Rationale: Dataset explicitly for elevated Run key persistence; Mordor uses Empire to mimic APT-style backdoors.

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed snippet (~2.2MB truncated; full ~2K events). Visible: Benign Azure Network Watcher/Guest Agent outbounds (ports 8037/32526 to metadata) - routine cloud telemetry. Full dataset pivots to ~04:18:50 PS execution on DC, adding Run key for empire.exe stager.

Timestamp (UTC)Event IDChannel/SourceKey DetailsIOC/Why Suspicious?
2020-07-22 04:18:455156 (WFP Connect) x3Securitynetworkwatcheragent.exe (PID 3432) outbound TCP 172.18.38.5:52623 → 168.63.129.16:8037; similar for guestagent.exe (PID 3732) to 32526.Benign Azure check-in; baseline noise on MORDORDC. No exfil.
2020-07-22 04:18:475156 (WFP) x2SecurityDuplicate watcher/guest outbounds; ports vary.Continuation; filter in hunts.
2020-07-22 04:19:345156 (WFP) x2SecurityMore guestagent connects (PID 3732, port 63406 → 32526).Routine; no tie to persistence.
(Full dataset) ~04:18:501 (Proc Create)Sysmonpowershell.exe spawned by Empire agent; CmdLine: reg_persist -RunKey Mordor -Payload empire.exe.Delivery IOC: Empire module launch; elevated (SYSTEM).
(Full dataset) ~04:18:5013 (Reg Set) x2Sysmonpowershell.exe sets HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run\Mordor = "C:\Users\Public\Temp\empire.exe"; REG_SZ.Core IOC: Machine Run key mod - autostarts on boot/logon for all users. Temp path evasion.
(Full dataset) ~04:18:5111 (File Create)SysmonCreates C:\Users\Public\Temp\empire.exe (~1MB, unsigned).Stager drop; chains to Run value.
(Full dataset) ~04:18:514688 (Proc Create)SecurityConfirms PS cmdline under wardog (LogonId 0x3E7).Correlates; quick runtime (~1s).

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - Run key persistence via Empire! Subtle reg mod; in SOC, PS + Run alerts first.