Skip to content

meltedinhex/analyst-ai-pack / skills/hunting-lateral-movement-over-smb-and-wmi

hunting-lateral-movement-over-smb-and-wmi

Verified

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 and WMI.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.7 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript3.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
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall