AGENT SKILL

soc-hunting-lateralmov

Soc Hunting Lateralmov.

License 许可
MIT
最近更新
2026-09-01
Stars
★ 0
Forks
0

01 前言 Front Matter

name
soc-hunting-lateralmov
domain
cybersecurity
description
Soc Hunting Lateralmov.

02 资源文件 1

03 SKILL.md 正文

| | Sysmon | Endpoint telemetry for process creation (EID 1), network connections (EID 3), and image loads (EID 7) essential for DCOM detection | | Splunk / Elastic SIEM | Log aggregation and correlation platform for DCOM detection rules and threat hunting queries | | Microsoft Sentinel | Cloud SIEM with built-in KQL queries and analytics rules for DCOM lateral movement detection | | Sigma | Vendor-agnostic detection rule format for portable DCOM detection rules | | Zeek | Network security monitor for DCE-RPC protocol analysis and RPC endpoint mapper traffic monitoring | | Atomic Red Team | MITRE ATT&CK test framework with T1021.003 atomics for validating DCOM detection coverage | | Impacket (dcomexec.py) | Python-based DCOM execution tool used by attackers and red teamers for testing DCOM lateral movement | | CIMSession / PowerShell | Native Windows tooling for DCOM object instantiation used in both legitimate administration and attacks |

Common Scenarios

Scenario 1: MMC20.Application Lateral Movement to File Server

Context: A SOC analyst receives an alert for mmc.exe spawning cmd.exe on a file server (10.10.20.50) at 03:22 UTC. No administrator activity is scheduled at this time.

Approach:

  1. Query Sysmon Event ID 1 on 10.10.20.50: confirm mmc.exe (parent: svchost.exe -k DcomLaunch) spawned cmd.exe with command line /c net user /domain > C:\temp\users.txt
  2. Query Sysmon Event ID 3 on 10.10.20.50: identify inbound TCP connection on port 135 from 10.10.5.30 at 03:22:01, followed by a high-port connection at 03:22:02
  3. Correlate Event ID 4624 on 10.10.20.50: find LogonType 3 from 10.10.5.30 at 03:22:00 with admin credentials
  4. Investigate 10.10.5.30: check for compromise indicators -- find Mimikatz artifacts in memory, evidence of credential dumping at 03:15
  5. Trace the attack chain: initial phishing compromise at 02:45, credential theft at 03:15, DCOM lateral movement at 03:22
  6. Contain: isolate 10.10.5.30 and 10.10.20.50, force password reset for compromised admin account, block inbound RPC from non-admin subnets

Pitfalls:

  • Dismissing mmc.exe activity as legitimate MMC administration without checking the parent process and command line
  • Not correlating the network logon (4624) with the process creation to identify the true source host
  • Failing to investigate the source host for initial compromise indicators

Scenario 2: ShellWindows Stealthy Lateral Movement

Context: During a threat hunt, an analyst queries for explorer.exe spawning cmd.exe on domain controllers and finds several instances on DC01 with no interactive logon sessions.

Approach:

  1. Verify no interactive sessions: query Event ID 4624 LogonType 2 or 10 on DC01 -- none found during the time window
  2. Query Sysmon Event ID 1: explorer.exe spawning cmd.exe with encoded PowerShell commands at 14:05, 14:12, and 14:18
  3. Decode the PowerShell: reveals reconnaissance commands (Get-ADUser, Get-ADGroup, Get-ADComputer)
  4. Query Sysmon Event ID 3: inbound RPC connections from 10.10.3.15 preceding each process creation
  5. Identify the ShellWindows pattern: no new mmc.exe or dllhost.exe process created -- commands execute through existing explorer.exe, consistent with ShellWindows/ShellBrowserWindow DCOM abuse
  6. Investigate 10.10.3.15: compromised workstation with Cobalt Strike beacon artifacts

Pitfalls:

  • Missing the attack because ShellWindows does not create a separate COM server process -- requires monitoring explorer.exe child processes
  • Not having Sysmon Event ID 3 configured to capture network connections from explorer.exe
  • Filtering out explorer.exe as a legitimate parent process without considering the server context

Output Format

Hunt ID: TH-DCOM-[DATE]-[SEQ]
Alert Severity: High
MITRE Technique: T1021.003 (Remote Services: DCOM)

Source Host: [IP/Hostname of attacker's machine]
Target Host: [IP/Hostname where DCOM executed]
DCOM Object: [MMC20.Application | ShellWindows | ShellBrowserWindow]
CLSID: [COM object class identifier]

Process Chain:
  Parent: [svchost.exe -k DcomLaunch | explorer.exe | mmc.exe]
  Child:  [cmd.exe | powershell.exe | ...]
  Command Line: [Full command executed]

Network Indicators:
  RPC Connection: [Source IP]:port -> [Target IP]:135 at [timestamp]
  DCOM Port: [Source IP]:port -> [Target IP]:[high-port] at [timestamp]

Authentication Context:
  Event 4624: LogonType 3 from [Source IP] at [timestamp]
  Account: [Domain\Username]
  Logon ID: [Logon session identifier]

Risk Assessment: [Critical/High/Medium]
Recommended Action: [Isolate, investigate source, reset credentials, restrict DCOM]

04 同仓库更多 Skills