Parse Windows PowerShell Script Block Logs (Event ID 4104) from EVTX files to detect obfuscated commands, encoded payloads, and living-off-the-land techniques. Uses python-evtx to extract and reconstruct multi-block scripts, applies entropy analysis and pattern matching for Base64-encoded commands, Invoke-Expression abuse, download cradles, and AMSI bypass attempts.
Install
npx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-powershell-script-block-loggingnpx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-powershell-script-block-logging -a claude-code -gnpx skills add mukul975/Anthropic-Cybersecurity-Skills --skill analyzing-powershell-script-block-logging -a codex -ggemini skills install https://github.com/mukul975/Anthropic-Cybersecurity-Skills.git --path skills/analyzing-powershell-script-block-logginggh skill install mukul975/Anthropic-Cybersecurity-Skills analyzing-powershell-script-block-logginggit clone --depth 1 https://github.com/mukul975/Anthropic-Cybersecurity-Skills /tmp/mukul975__Anthropic-Cybersecurity-Skills
mkdir -p ~/.claude/skills ~/.agents/skills
cp -R /tmp/mukul975__Anthropic-Cybersecurity-Skills/skills/analyzing-powershell-script-block-logging ~/.claude/skills/analyzing-powershell-script-block-logging # Claude Code
cp -R /tmp/mukul975__Anthropic-Cybersecurity-Skills/skills/analyzing-powershell-script-block-logging ~/.agents/skills/analyzing-powershell-script-block-logging # Codex, Cursor, Gemini CLI, Copilot, OpenCode