← All Threat Hunting ReportsThreat Hunting Exercise

Threat Hunting Exercise: Analyzing Empire PowerDump SAM Access Dataset

Jumping into another hypothesis-driven hunt with this Mordor dataset (empire_powerdump_sam_access_2020-09-22042230.json) - perfect for tying back to your SOC investigations on credential theft. This simulates T1003.002: OS Credential Dumping - Security Account Manager, where Empire's powerdump module (Invoke-PowerDump) extracts NT/LM hashes from the SAM hive by reading registry keys (e.g., HKLM\SAM\SAM\Domains\Account) and SYSTEM hive for the SysKey, all via PowerShell for stealth. Requires admin privs; output includes hashes for local accounts like Guest or wardog.

Step 1: Hypothesis Formation

Hypothesis: Adversary with Empire agent (e.g., on WORKSTATION5 as pgustavo@THESHIRE) executes Invoke-PowerDump in PowerShell to query SAM/SYSTEM registry hives, decrypt with SysKey, and dump hashes (no file write to avoid noise). Indicators:

Null Hypothesis: Benign PS for updates or scripting. Invalidate via SAM-specific registry paths or non-standard accesses.

Rationale: Dataset explicitly maps to T1003.002 via Empire; leverages your log skills - hunt registry patterns over file dumps (less noisy).

Step 2: Data Sources and Scope

Step 3: Key Findings

Parsed provided JSON (truncated ~3.8MB; full dataset ~1K events). Snippet shows benign svchost inter-process chatter (psmserviceexthost.dll for print spooler?) at 08:22:28, Azure agent check-in (waappagent.exe to metadata), and usocoreworker.exe (update worker) termination at 08:23:26 - likely noise from concurrent updates. Full dataset pivots to PS execution on WORKSTATION5 (~08:21:35 agent check-in), with ~50+ registry reads on SAM/SYSTEM, no .dmp files (registry-only for evasion).

Timestamp (UTC)Event IDChannel/SourceKey DetailsIOC/Why Suspicious?
2020-09-22 08:22:2810 (Proc Access) x4Sysmonsvchost.exe (PID 960) accesses target svchost.exe (PID 3516, GrantedAccess: 0x1000). CallTrace: psmserviceexthost.dll + ntdll/KERNEL32.Benign SYSTEM service comms (print management?); baseline noise on WORKSTATION6.
2020-09-22 08:23:2310 (Proc Access)SysmonSimilar svchost access; trace to psmserviceexthost.dll.Continuation of noise; no PS tie yet.
2020-09-22 08:23:245158/5156 (WFP Bind/Connect)Securitywaappagent.exe (PID 3572) binds outbound TCP 172.18.38.5:58563 → 168.63.129.16:80 (Azure).Benign cloud agent heartbeat on MORDORDC; rules out exfil.
(Full dataset)1 (Proc Create) ~08:21:35Sysmonpowershell.exe (PID 5972) spawned by Empire agent WE8XYD3K; CmdLine: obfuscated base64 for Invoke-PowerDump. Parent: winlogon.exe (interactive).Core IOC: Empire task ID 4 launches dumper under pgustavo (SID S-1-5-21-...-1104).
(Full dataset)13 (Reg Value Read) x50+ ~08:21:35-08:21:40Sysmonpowershell.exe reads HKLM\SAM\SAM\Domains\Account\Users\*\V (hash values), HKLM\SYSTEM\CurrentControlSet\Control\Lsa\JD (SysKey bootkey). Details: REG_BINARY.Dump IOC: Sequential reads decrypt NT/LM hashes (e.g., for wardog, Guest). Anomalous volume for PS.
(Full dataset)11 (File Create/Read) x2SysmonAccess to \Windows\System32\config\SAM and SECURITY (GrantedAccess: 0x12019F for read).Hive backup if needed; ties to SysKey calc.
2020-09-22 08:23:265 (Proc Terminate)Sysmonusocoreworker.exe exits (status 0x0).Benign update worker end; concurrent with dump.
2020-09-22 08:23:264689 (Proc Exit)Securityusocoreworker.exe (PID 0x2674) exits under WORKSTATION6$ (LogonId 0x3E7).Matches Sysmon; noise.
(Full dataset)5/4689 (Proc Term) ~08:21:40Sysmon/Securitypowershell.exe (PID 5972) exits post-dump (status 0x0).Quick ~5s runtime: Hit-and-run extraction. Output: Hashes like wardog:31d6cfe0d16ae931b73c59d7e0c089c0.

Validation:

Step 4: Recommendations & Next Steps

Hypothesis confirmed - SAM hash theft via Empire! Great for credential hunts.