Hunting lateral movement over smb and wmi

From meltedinhex/analyst-ai-pack · View interactive version

Hunting lateral movement over smb and wmi is an AI agent skill from the GitHub repository meltedinhex/analyst-ai-pack. Hunts for lateral movement via remote service creation, admin share writes, and remote WMI process creation by correlating Windows logon, service install, and process-creation events. Activates for requests to hunt lateral movement, detect PsExec/WMIexec activity, or find remote execution over SMB a

How to use this skill

Skill file

Hunting Lateral Movement Over SMB and WMI

When to Use

want to detect remote execution tools (PsExec, WMIexec, SMBexec) moving between hosts.

Do not use this to alert on all Type 3 logons — network logons are normal. Hunt the

service-creation, admin-share, and remote-WMI patterns that accompany them.

Prerequisites

Workflow

Step 1: Correlate remote-execution indicators

python scripts/analyst.py hunt events.csv

Flags PsExec-style service installs (PSEXESVC, randomly named services running from ADMIN$),

remote WMI parents (wmiprvse.exe spawning cmd/powershell), and named-pipe service binaries.

Step 2: Build a movement graph

Group by source account and target host to see fan-out across systems.

Step 3: Confirm

Distinguish admin tooling from intrusion by account, timing, and target breadth.

Step 4: Operationalize

Write Sigma rules for PsExec service creation and wmiprvse.exe child shells.

Validation

Pitfalls

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.