Analyzing powershell empire artifacts

From killvxk/cybersecurity-skills-zh · View interactive version

Analyzing powershell empire artifacts is an AI agent skill from the GitHub repository killvxk/cybersecurity-skills-zh. 通过识别 Base64 编码的启动器模式、默认 User-Agent、暂存 URL 结构、stager IOC 以及脚本块日志事件中已知的 Empire 模块签名,检测 Windows 事件日志中的 PowerShell Empire 框架工件。

How to use this skill

Skill file

分析 PowerShell Empire 工件

概述

PowerShell Empire 是一个由监听器(listener)、stager 和 agent 组成的后渗透框架。其工件在 Windows 事件日志中留有可检测的痕迹,尤其是 PowerShell 脚本块日志(Script Block Logging,事件 ID 4104)和模块日志(Module Logging,事件 ID 4103)。本技能分析事件日志中 Empire 的默认启动器字符串(powershell -noP -sta -w 1 -enc)、包含 System.Net.WebClient 和 FromBase64String 的 Base64 编码 payload、已知模块调用(Invoke-Mimikatz、Invoke-Kerberoast、Invoke-TokenManipulation)以及暂存 URL 模式。

前置条件

关键检测模式

  1. 默认启动器 — powershell -noP -sta -w 1 -enc 后跟 Base64 编码块
  2. Stager 失陷指标 — System.Net.WebClient、DownloadData、DownloadString、FromBase64String
  3. 模块签名 — Invoke-Mimikatz、Invoke-Kerberoast、Invoke-TokenManipulation、Invoke-PSInject、Invoke-DCOM
  4. User-Agent 字符串 — HTTP 监听器配置中的默认 Empire User-Agent
  5. 暂存 URL — /login/process.php、/admin/get.php 及类似的默认 URI 模式

输出

JSON 报告,包含匹配的 IOC、解码后的 Base64 payload、可疑事件时间线、MITRE ATT&CK 技术映射以及严重性评分。

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.