meltedinhex/analyst-ai-pack / skills/hunting-lateral-movement-over-smb-and-wmi
hunting-lateral-movement-over-smb-and-wmi
VerifiedHunts 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 and WMI.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.7 KB |
| references/api-reference.md | markdown | 1.2 KB |
| scripts/analyst.py | script | 3.3 KB |
references/api-reference.md
View on GitHub# API Reference: Hunting Lateral Movement Over SMB and WMI
## Overview
`scripts/analyst.py` parses Windows service-install (7045/4697) and process-creation telemetry (CSV
or JSON-lines) and flags PsExec-style service binaries, randomly named services launched from admin
shares, and `wmiprvse.exe`/`services.exe`-parented shells. It parses telemetry only and executes
nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | csv, json, regex, file IO |
## Core functions
### `hunt(path)`
Returns remote service installs, remote WMI shells, and a lateral-movement suspicion flag.
## Heuristics
- PsExec-like service names/binaries (`PSEXESVC`, `paexec`, `remcom`).
- Random short service name + admin-share image path.
- `wmiprvse.exe` spawning `cmd`/`powershell` (remote WMI exec).
## Usage
```bash
python scripts/analyst.py hunt events.csv
```
## Sources
- MITRE ATT&CK T1021.002 SMB/Windows Admin Shares; T1021.003 DCOM — https://attack.mitre.org/
- Windows Security Event 4624/4697 — https://learn.microsoft.com/windows/security/threat-protection/auditing/event-4624
- PsExec service-creation and WMIexec parent patterns from public detection research
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |