Analyzing PowerShell Empire Artifacts
SkillMonitoring & opsA skill for threat hunting that guides an agent through analyzing Windows PowerShell event logs for artifacts of the Empire post-exploitation framework. It checks Script Block Logging (Event ID 4104) and Module Logging (Event ID 4103) for known indicators and produces a structured JSON report of findings.
Use Analyzing PowerShell Empire Artifacts in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Analyzing PowerShell Empire Artifacts and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Analyzing PowerShell Empire Artifacts skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; ahel provides instructions and does not run this skill.
No other account needed.
Have Python 3.9 or newer available to the agent.
What your AI can do with it
- Detects the default Empire launcher string `powershell -noP -sta -w 1 -enc` in event
- Flags Base64-encoded payloads containing System.Net.WebClient, DownloadData
- Identifies known module invocations such as Invoke-Mimikatz, Invoke-Kerberoast
- Matches default Empire user agent strings and staging URL patterns
- Decodes Base64 payloads and builds a timeline of suspicious events
- Maps findings to MITRE ATT&CK techniques
Getting started
- Have Python 3.9 or newer available to the agent.
- Ensure PowerShell Script Block Logging (Event ID 4104) is enabled via Group Policy, and Module Logging (Event ID 4103) for broader coverage.
- Give the agent access to the Windows Event Log or exported EVTX files to analyze.
- Ask the agent to run the skill against those logs; it returns a JSON report with matched indicators, decoded payloads, a timeline, and MITRE ATT&CK mappings.
What this skill tells your AI
The instructions your AI receives, as published by mukul975/anthropic-cybersecurity-skills in skills/analyzing-powershell-empire-artifacts/SKILL.md and read by ahel’s review.
Overview
PowerShell Empire is a post-exploitation framework consisting of listeners, stagers, and agents. Its artifacts leave detectable traces in Windows event logs, particularly PowerShell Script Block Logging (Event ID 4104) and Module Logging (Event ID 4103). This skill analyzes event logs for Empire's default launcher string (powershell -noP -sta -w 1 -enc), Base64 encoded payloads containing System.Net.WebClient and FromBase64String, known module invocations (Invoke-Mimikatz, Invoke-Kerberoast, Invoke-TokenManipulation), and staging URL patterns.
When to Use
- When investigating security incidents that require analyzing powershell empire artifacts
- When building detection rules or threat hunting queries for this domain
- When SOC analysts need structured procedures for this analysis type
- When validating security monitoring coverage for related attack techniques
Prerequisites
- Python 3.9+ with access to Windows Event Log or exported EVTX files
- PowerShell Script Block Logging (Event ID 4104) enabled via Group Policy
- Module Logging (Event ID 4103) enabled for comprehensive coverage
Key Detection Patterns
- Default launcher —
powershell -noP -sta -w 1 -encfollowed by Base64 blob - Stager indicators —
System.Net.WebClient,DownloadData,DownloadString,FromBase64String - Module signatures — Invoke-Mimikatz, Invoke-Kerberoast, Invoke-TokenManipulation, Invoke-PSInject, Invoke-DCOM
- User agent strings — default Empire user agents in HTTP listener configuration
- Staging URLs —
/login/process.php,/admin/get.phpand similar default URI patterns
Output
JSON report with matched IOCs, decoded Base64 payloads, timeline of suspicious events, MITRE ATT&CK technique mappings, and severity scores.
Signals
- GitHub stars
- 34k
- Forks
- 4k
- Last commit
- Aug 2026
ahel review
K1info
remote-installer-piped-to-shell (in scripts/agent.py)K1info
remote-installer-piped-to-shell (in references/api-reference.md)
Automated review, not a security audit. Ruleset v1+k2.
Others that do the same job
Questions
- What log sources does it work with?
- It works with the Windows Event Log or exported EVTX files, covering Script Block Logging (Event ID 4104) and Module Logging (Event ID 4103).
- What are the prerequisites?
- Python 3.9 or newer, Script Block Logging (Event ID 4104) enabled via Group Policy, and Module Logging (Event ID 4103) enabled for comprehensive coverage.
Advanced
- Item type
- skill
- Key
analyzing-powershell-empire-artifacts-mukul975- Source
- github.com/mukul975/anthropic-cybersecurity-skills
github.com/mukul975/anthropic-cybersecurity-skills
Related picks
Skill · wshobson
The pick for Pythonpython-pro
Skill · jeffallan
The pick for Pythoncraft-php-guidelines
Skill · michtio
The pick for PHPfeature-flags-php
Skill · posthog
The pick for PHPgenerate-sandbox-policy
Skill · nvidia
The pick for Infrahttp-to-https
Skill · thedaviddias
The pick for Infra