Analyzing PowerShell Empire Artifacts

SkillMonitoring & ops

A 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.

Have Python 3.9 or newer available to the agent.

Analyzing PowerShell Empire ArtifactsStart free

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

  1. Have Python 3.9 or newer available to the agent.
  2. Ensure PowerShell Script Block Logging (Event ID 4104) is enabled via Group Policy, and Module Logging (Event ID 4103) for broader coverage.
  3. Give the agent access to the Windows Event Log or exported EVTX files to analyze.
  4. 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

  1. Default launcher — powershell -noP -sta -w 1 -enc followed by Base64 blob
  2. Stager indicators — System.Net.WebClient, DownloadData, DownloadString, FromBase64String
  3. Module signatures — Invoke-Mimikatz, Invoke-Kerberoast, Invoke-TokenManipulation, Invoke-PSInject, Invoke-DCOM
  4. User agent strings — default Empire user agents in HTTP listener configuration
  5. Staging URLs — /login/process.php, /admin/get.php and 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.

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