meltedinhex/analyst-ai-pack / skills/hunting-wmi-event-subscription-persistence
hunting-wmi-event-subscription-persistence
VerifiedHunts for malicious WMI permanent event subscription persistence by correlating __EventFilter, CommandLineEventConsumer/ActiveScriptEventConsumer, and FilterToConsumerBinding records from Sysmon Event IDs 19/20/21 or WMI repository exports. Activates for requests to hunt WMI persistence, detect event consumer backdoors, or analyze WMI subscription telemetry.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.8 KB |
| references/api-reference.md | markdown | 1.1 KB |
| scripts/analyst.py | script | 2.9 KB |
references/api-reference.md
View on GitHub# API Reference: Hunting WMI Event Subscription Persistence
## Overview
`scripts/analyst.py` parses Sysmon WMI telemetry (Event IDs 19 filter / 20 consumer / 21 binding)
from CSV or JSON-lines, correlates the subscription triad, and flags consumers whose payload runs
scripts or encoded commands. It parses telemetry only and executes nothing.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | csv, json, file IO |
## Core functions
### `hunt(path)`
Returns parsed filters/consumers/bindings, suspicious consumers (with indicators and payload), and
whether a complete subscription was observed.
## Expected fields
- EID 19: `Name`, `Query`.
- EID 20: `Name`, `Destination`/`CommandLineTemplate`/`ScriptText`.
- EID 21: `Consumer`, `Filter`.
## Usage
```bash
python scripts/analyst.py hunt wmi_events.csv
```
## Sources
- MITRE ATT&CK T1546.003 WMI Event Subscription — https://attack.mitre.org/techniques/T1546/003/
- Sysmon WMI events 19/20/21 — https://learn.microsoft.com/sysinternals/downloads/sysmon
- WMI persistence triad (__EventFilter/__EventConsumer/__FilterToConsumerBinding) from WMI docs
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 |