# windows-evtx-and-powershell-audit-scripting

windows-evtx-and-powershell-audit-scripting is a Claude Code skill for building Windows log parsers and audit collectors. It activates for offline .evtx analysis or live event collection with PowerShell.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf (Devin Desktop), Claude.ai · ★ 73 repo stars
- Author: W4L33Dx
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/blue-team/security-automation-and-tool-development/windows-evtx-and-powershell-audit-scripting/SKILL.md
- Updated: 2026-11-15
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/windows-evtx-and-powershell-audit-scripting

## What it does

The skill guides Python parsers for Windows `.evtx` files and PowerShell scripts that collect event records. It covers extracting XML `EventData` fields from Sysmon and Security events, joining split Event ID 4104 ScriptBlocks by `ScriptBlockId`, and producing normalized JSONL.

Offline parsing uses the Python package `evtx` or `python-evtx`; live collection uses PowerShell’s `Get-WinEvent -FilterHashtable`. Live collection requires a Windows host. The skill directs that work through `Get-WinEvent` rather than reading a log file held open by the service.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill windows-evtx-and-powershell-audit-scripting -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/windows-evtx-and-powershell-audit-scripting/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/windows-evtx-and-powershell-audit-scripting/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill windows-evtx-and-powershell-audit-scripting -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/windows-evtx-and-powershell-audit-scripting/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill windows-evtx-and-powershell-audit-scripting -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/windows-evtx-and-powershell-audit-scripting/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install W4L33Dx/Cyber-Monster blue-team/security-automation-and-tool-development/windows-evtx-and-powershell-audit-scripting
```

2. **Manually: put the files in place**
- File: `.github/skills/windows-evtx-and-powershell-audit-scripting/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add W4L33Dx/Cyber-Monster --skill windows-evtx-and-powershell-audit-scripting -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/W4L33Dx/Cyber-Monster --path blue-team/security-automation-and-tool-development/windows-evtx-and-powershell-audit-scripting
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/windows-evtx-and-powershell-audit-scripting/SKILL.md` — The legacy .windsurf/skills/ path still works

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/W4L33Dx/Cyber-Monster/tree/HEAD/blue-team/security-automation-and-tool-development/windows-evtx-and-powershell-audit-scripting/SKILL.md

## When to use it
- parse an offline `.evtx` file into event records
- reassemble split Event ID 4104 ScriptBlocks
- extract XML `EventData` fields from Sysmon and Security logs
- collect live Windows audit events with PowerShell
- write normalized event data as JSONL

## Example prompts
- Write a Python parser to read this offline `.evtx` file and emit JSONL.
- Reassemble the Event ID 4104 ScriptBlock fragments using `ScriptBlockId`.
- Create a PowerShell collector for events with `Get-WinEvent -FilterHashtable`.

## Similar
- [powershell-windows](https://affpapa.org/en/nevibecode/skills/powershell-windows.md) — skill · 169 installs
- [windows-agent-shell](https://affpapa.org/en/nevibecode/skills/windows-agent-shell.md) — skill · ★ 741 repo stars
- [powershell-5.1-expert](https://affpapa.org/en/nevibecode/agents/powershell-51-expert.md) — subagent · 196 installs
- [powershell-security-hardening](https://affpapa.org/en/nevibecode/agents/powershell-security-hardening.md) — subagent · 194 installs
- [windows-hardening](https://affpapa.org/en/nevibecode/skills/windows-hardening.md) — skill · 435 installs
- [powershell-2025-changes](https://affpapa.org/en/nevibecode/skills/powershell-2025-changes.md) — skill · 174 installs

From the same set: [w4l33dx/cyber-monster](https://affpapa.org/en/nevibecode/by/w4l33dx/cyber-monster.md) — 61 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
