dandye/ai-runbooks/hunt-lateral-movement
Claude Code and agent skill by dandye/ai-runbooks
- community
Checking that the SKILL.md file is still in the repository.
Hunt for lateral movement using PsExec, WMI, or similar techniques. Use when proactively searching for attackers moving through your network using admin tools. Searches for service installations, remote process execution, and suspicious network correlations.
Install
npx vskill@latest install dandye/ai-runbooks/hunt-lateral-movementSKILL.md
Lateral Movement Hunt Skill (PsExec/WMI)
Proactively hunt for signs of lateral movement using common administrative tools like PsExec or WMI abuse.
Inputs
TIME_FRAME_HOURS- Lookback period (default: 72)- (Optional)
TARGET_SCOPE_QUERY- UDM query to narrow scope - (Optional)
HUNT_HYPOTHESIS- Reason for the hunt - (Optional)
HUNT_CASE_ID- SOAR case for tracking
Workflow
Step 1: Research Techniques
Step 2: Develop Hunt Queries
Query Placeholders
The queries below use placeholders that must be customized for your environment:
| Placeholder | Type | Description | |
|---|---|---|---|
known_services | Reference List | Legitimate services spawned by services.exe. Define this list in Chronicle and populate with your environment baseline. | |
TARGET_IP | IP Address | Replace with the target system IP from your investigation context. | |
SOURCE_IP | IP Address | Replace with the source system IP from your investigation context. |
PsExec Service Installation:
PsExec Execution (services.exe spawning unusual processes):
WMI Process Creation:
WMI Remote Execution:
PowerShell WMI Methods:
Combine with TARGET_SCOPE_QUERY if provided.
Step 3: Execute SIEM Searches
Run each developed query.
Step 4: Network Correlation
If suspicious process activity found, correlate with network:
Look for SMB connections temporally correlated with remote execution.
Step 5: Analyze Results
Look for anomalous patterns:
- PsExec/WMI from unexpected sources (user workstations vs. admin servers)
- Execution targeting many hosts rapidly
- Suspicious commands executed via WMI
- Temporal correlation between network connections and remote process execution
Step 6: Enrich Findings
If suspicious activity found:
For each suspicious entity (host, user):
For any discovered IOCs: Use /enrich-ioc
Step 7: Check Related Cases
Use /find-relevant-case with suspicious entities.
Step 8: Document & Conclude
Use /document-in-case:
- Hunt hypothesis
- Techniques hunted (T1021.002, T1047, etc.)
- Queries used (with results)
- Negative results explicitly noted
- Suspicious findings with enrichment
- Suggested follow-on actions
If lateral movement confirmed: → Trigger case_event_timeline_and_process_analysis for affected processes → Trigger compromised_user_account_response for involved users → Escalate to incident response
Required Outputs
After completing this skill, you MUST report these outputs:
| Output | Description | |
|---|---|---|
FINDINGS | Detected lateral movement activity (events, processes, connections) | |
DETECTED_TECHNIQUES | MITRE techniques observed (e.g., T1021.002, T1047) | |
AFFECTED_HOSTS | Hosts involved in lateral movement (source and target systems) |
Key Indicators
| Technique | Indicator | Query Focus | |
|---|---|---|---|
| PsExec | PSEXESVC.exe service | Service installation events | |
| PsExec | services.exe spawning | Process parent-child | |
| WMI | WmiPrvSE.exe spawning | Process parent-child | |
| WMI | wmic /node: | Command line | |
| General | SMB port 445 | Network connections |
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationWarning, 60 of 100Marginal. 1 run. Evaluated 8 months ago.
Source
- SKILL.md in the repositoryCheckingskills/hunt-lateral-movement/SKILL.md
Popularity
- Repository stars
- 90
- Repository forks
- 24
- 7-day trend score
- 23
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 21 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dandye/ai-runbooks/hunt-lateral-movement)