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

hunting-for-lateral-movement-via-wmi

できること

このツールは、WMIを使ってネットワーク上の他のコンピューターへ移動しようとした不審な動きを探すためのものです。イベントログを分析して、リモートでコマンドを実行した痕跡を見つけ出します。

使う場面

  • ✓侵入者がネットワーク内に入り込み、被害を広げている可能性があると疑うとき。
  • ✓セキュリティインシデントを調査して、どのように被害が起きたのかを把握したいとき。
  • ✓自分たちのセキュリティ対策が、この種の攻撃を検知できているかを確認したいとき。

スキルのリンク

https://github.com/mukul975/Anthropic-Cybersecurity-Skills/blob/main/skills/hunting-for-lateral-movement-via-wmi/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“イベントログからWMIを使った横方向の移動(ラテラルムーブメント)を探してください。”

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

仕組み

このツールは、Windowsとここで使うSysmonのイベント記録を調べ、WmiPrvSE.exeが cmd.exe や powershell.exe などの危険なプログラムを起動している箇所を探します。また、攻撃者が侵入状態を維持するために使う可能性のある不審な設定もチェックします。

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

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

Hunting for Lateral Movement via WMI

Overview

Windows Management Instrumentation (WMI) is commonly abused for lateral movement via wmic process call create or Win32_Process.Create() to execute commands on remote hosts. Detection focuses on identifying WmiPrvSE.exe spawning child processes (cmd.exe, powershell.exe) in Windows Security Event ID 4688 and Sysmon Event ID 1 logs, along with WMI-Activity/Operational events (5857, 5860, 5861) for event subscription persistence.

When to Use

  • When investigating security incidents that require hunting for lateral movement via wmi
  • 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 Security Event Logs with Process Creation auditing enabled (Event 4688 with command line)
  • Sysmon installed with Event ID 1 (Process Creation) configured
  • Python 3.9+ with python-evtx, lxml libraries
  • Understanding of WMI architecture and WmiPrvSE.exe behavior

Steps

Step 1: Parse Process Creation Events

Extract Event ID 4688 and Sysmon Event 1 entries from EVTX files.

Step 2: Detect WmiPrvSE Child Processes

Flag processes where ParentImage/ParentProcessName is WmiPrvSE.exe, indicating remote WMI execution.

Step 3: Analyze Command Line Patterns

Identify suspicious command lines matching WMI lateral movement patterns (cmd.exe /q /c, output redirection to admin$ share).

Step 4: Check WMI Event Subscriptions

Parse WMI-Activity/Operational log for event consumer creation indicating persistence.

Expected Output

JSON report with WMI-spawned processes, suspicious command lines, WMI event subscription alerts, and timeline of lateral movement activity.

よくある質問

WMIとは何ですか?

WMIは、コンピューターを管理するためのWindowsの仕組みです。攻撃者はこれを使うと、目立たずに他のコンピューター上でコマンドを実行できてしまいます。

「イベントログ」とは何ですか?

コンピューターが記録する日記のようなもので、どのような出来事が、誰によって、いつ起きたかが残されています。このツールはこの記録を読み取って、不審な動きを見つけます。

「横方向の移動(ラテラルムーブメント)」とは何ですか?

攻撃者が、最初に侵入したコンピューターから同じネットワーク内の他のコンピューターへ移動し、より多くの権限を得たり情報を盗んだりしようとすることです。

詳細

作者による元の説明

Detects WMI-based lateral movement (e.g. wmic process call create, Win32_Process.Create()) by analyzing Windows Event ID 4688 and Sysmon Event ID 1 for WmiPrvSE.exe spawning suspicious child processes like cmd.exe or powershell.exe, plus WMI-Activity/Operational events 5857/5860/5861 for subscription-based persistence. Use when hunting for remote code execution via WMI or investigating lateral mov

repo: mukul975/Anthropic-Cybersecurity-Skills

人気

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

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

0

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

コメント

  • …

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

似ているスキル