本文へスキップ
Skillpedia
分析とスプレッドシート35k · #7948

hunting-for-anomalous-powershell-execution

できること

このツールは、Windowsのイベントログから悪意のあるPowerShellの動きを探します。実行されたスクリプトを分析し、コマンドを隠す試み、AMSIによるセキュリティの回避、怪しいコードのダウンロード、認証情報の盗難などを見つけ出します。

使う場面

  • ✓PowerShellが関係するセキュリティインシデントを調査するとき。
  • ✓怪しいPowerShellの動きを検知するルールを作成するとき。
  • ✓監視システムが、PowerShellを使った一般的な攻撃を検知できるかを確認するとき。

スキルのリンク

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-anomalous-powershell-execution/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“私のイベントログから、怪しいPowerShellの動きを検索してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このツールは、PowerShellが何を実行したかを記録したWindowsのイベントログファイル(.evtx)を読み込みます。エンコードされたコマンドや、セキュリティを回避しようとする操作など、既知の攻撃パターンを探します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Hunting for Anomalous PowerShell Execution

Overview

PowerShell Script Block Logging (Event ID 4104) records the full deobfuscated script text executed on a Windows endpoint, making it the primary data source for hunting malicious PowerShell. Combined with Module Logging (4103) and process creation events, analysts can detect encoded commands, AMSI bypass patterns, download cradles, credential theft tools, and fileless attack techniques even when the attacker uses obfuscation layers.

When to Use

  • When investigating security incidents that require hunting for anomalous powershell execution
  • 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

  • Windows Event Log exports (.evtx) from Microsoft-Windows-PowerShell/Operational
  • Python 3.8+ with python-evtx and lxml libraries
  • Script Block Logging enabled via Group Policy
  • Understanding of common PowerShell attack techniques

Steps

  1. Parse EVTX files extracting Event 4104 script block text and metadata
  2. Reassemble multi-part script blocks using ScriptBlock ID correlation
  3. Scan script text for AMSI bypass indicators and obfuscation patterns
  4. Detect encoded command execution and base64 payloads
  5. Identify download cradles, credential dumping, and lateral movement commands
  6. Score and prioritize findings by threat severity

Expected Output

{
  "total_events": 1247,
  "suspicious_events": 23,
  "amsi_bypass_attempts": 2,
  "encoded_commands": 8,
  "download_cradles": 5,
  "credential_access": 3
}
よくある質問

「スクリプトブロックロギング」とは何ですか?

PowerShellが実行したコマンドやスクリプトを詳しく記録するログのことです。攻撃者が内容を隠そうとしても、実際に何が実行されたかを確認できます。

AMSIとは何ですか?

AMSI(Antimalware Scan Interface)は、悪意のあるソフトウェアの検知やブロックを助けるWindowsのセキュリティ機能です。このツールは、AMSIを無効化したり欺いたりする試みを探します。

「ダウンロードクレードル」とは何ですか?

インターネットから別の悪意のあるプログラムをダウンロードして直接実行するためのコードの断片です。ファイルをディスクに保存せずに実行されることがあります。

詳細

作者による元の説明

Hunt for malicious PowerShell activity by analyzing Script Block Logging (Event 4104), Module Logging (Event 4103), and process creation events. The analyst parses Windows Event Log EVTX files to detect obfuscated commands, AMSI bypass attempts, encoded payloads, credential dumping keywords, and suspicious download cradles. Activates for requests involving PowerShell threat hunting, script block a

repo: mukul975/Anthropic-Cybersecurity-Skills

人気

GitHubのスター
35k
ランキング
#7948
ライセンス
Apache-2.0
更新日
2026/8/31

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル