Ir Playbook Lateral Movementのロゴ

Ir Playbook Lateral Movement

組織
gensecaihq
ir-playbook-lateral-movement

ラテラルムーブメントに対応するインシデント対応プレイブックです。SMB/管理共有、WinRM/PowerShellリモート操作、RDP、SSH、PsExec/WMIによるリモート実行、パス・ザ・ハッシュ、リモートサービス/タスクを対象とします。Wazuhが内部間の認証やリモート実行の連鎖(例:ルール92652、92653、92650、92068、91823、または内部ソースからのSSH成功ルール5715)を示した場合に使用します。

Add to TypingMind

概要

公開者gensecaihq
リポジトリWazuh-Autopilot
スキル名ir-playbook-lateral-movement
スター
61
フォーク
15
同梱ファイル
1
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 1個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    gensecaihqがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Ir Playbook Lateral Movement」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/ir-playbook-lateral-movement
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gensecaihq/Wazuh-Autopilot.git /tmp/Wazuh-Autopilot
mkdir -p .claude/skills
cp -r /tmp/Wazuh-Autopilot/backend/app/skills/ir-playbook-lateral-movement .claude/skills/ir-playbook-lateral-movement
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでIr Playbook Lateral Movementを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にIr Playbook Lateral Movementを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Ir Playbook Lateral Movementは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

IR Playbook — Lateral Movement

Severity critical: lateral movement means an adversary already has a foothold and valid credentials. Correlate across hosts before containment. Rule IDs are from the stock Wazuh 4.14 ruleset (levels official); several need Sysmon or PowerShell script-block logging on the endpoints. Full procedure: references/playbook.md.

1. Detection signals

TechniqueWazuh rules (level)Needs
T1550.002 Pass-the-hash (NTLM remote logon)rules 92652 (L6), 92657 (L6, NTLM + RDP)Security log, Event ID 4624 logon type 3/10
T1021.001 RDPrule 92653 (L3, RDP logon), rule 92656 (L15, RDP from loopback — tunnelling)Security log
T1021.002 SMB / admin sharesrules 92105 (L3), 92106 (L3); rule 92650 (L12, service binary in Windows root — dropped via admin share); rules 92202, 92218 (L6, executable dropped in Windows root)Sysmon Event ID 3 / 11
T1569.002 PsExec / remote servicerule 92068 (L3, PsExec execution); rule 61138 (L5, new service, Event ID 7045)Sysmon Event ID 1, System log
T1021.006 WinRM / PS remotingrule 92110 (L4, WinRM network activity); rule 91823 (L14, Invoke-Command on a remote computer); rule 92220 (L6, binary dropped by WinRM process)Sysmon, PowerShell/Operational
T1047 WMIrule 92070 (L6, WMI spawned PowerShell); rule 92071 (L12, WMI PowerShell with base64)Sysmon Event ID 1
T1053.005 Scheduled taskrule 60228 (L4, Event ID 4698)Security log
T1003.001 Credential access before movementrules 92900 (L12), 92403 (L12) — LSASS accessedSysmon Event ID 10 / 8
T1021.004 SSH (Linux)rule 5715 (L3, success) from an internal source after rules 5716, 5760 (L5) failures; rule 92603 (L6, file copied in via SCP); rule 92602 (L12, Impacket signature)sshd logs, auditd
Account manipulation during spreadrules 60109 (L8, account created/enabled), 60154 (L12, Administrators group changed)Security log

High-confidence patterns: one account authenticating to ≥3 hosts within 10 min; workstation-to-workstation admin logons; service accounts used interactively; logons outside the account's baseline. Wazuh has no stock rule for the fan-out pattern — create it as custom rule 100230 (frequency rule over group authentication_success, <same_field>dstuser</same_field>, <different_field>agent.id</different_field>; validate with wazuh-logtest). Explicit-credential logons (Event ID 4648) have no stock rule either; add custom rule 100231 if you rely on them.

2. Triage / investigation (investigation agent)

  1. Scope: search_security_events for the account and the source host across all agents (time_range: "24h", then "7d"); get_wazuh_alerts with rule_groups: ["authentication_success","sysmon_eid3_detections","sysmon_eid1_detections"] on each suspected host. search_cases for the host/account first.
  2. Answer:
    • Which account, which source host? Admin jump host (expected) or workstation?
    • How many destinations, over what window? Any domain controllers or crown-jewel servers?
    • Which technique (SMB, WinRM, RDP, WMI, PsExec, SSH)?
    • Initial compromise on the source (phishing, brute force, malware)? If brute force → ir-playbook-bruteforce.
  3. On each touched host (DCs and servers first):
    • get_agent_processes: psexesvc, wmiprvse children, wsmprovhost, unusual powershell, credential tools.
    • get_agent_ports: new listeners, RDP/WinRM exposure, outbound C2.
    • check_agent_health: agents stopped or tampered with during the spread.
    • Hand off to threat-intel for hashes/external C2 reputation.
  4. add_entities (account = compromised, source host, each destination host with agent_id), link_mitre, update_case severity critical unless proven sanctioned (change ticket, jump host, known admin).
  5. add_finding: host-hop timeline, compromised accounts, confirmed/suspected hosts, first hop time, and a containment recommendation to response-planner.

3. Response (response-planner)

Check current state first (wazuh_check_agent_isolation, wazuh_check_user_status), then propose:

SituationProposal
Source host confirmed compromisedpropose_action(type="isolate_host", target=<src id>, params={"agent_id": <src id>}) (D3-NI)
Compromised account active on a hostpropose_action(type="disable_user", params={"agent_id": <host>, "username": <account>}) (D3-AL)
Remote-execution tooling runningpropose_action(type="kill_process", params={"agent_id": <host>, "process_id": <pid>})
External C2 seen from touched hostspropose_action(type="block_ip", params={"ip_address": <c2>, "all_agents": true})
Destination hosts with confirmed attacker activityisolate_host per host, ordered by criticality

Sequencing: isolate the source before killing processes; disable accounts after isolation so the attacker can't pivot during the change; never isolate domain controllers without a human decision (keep DCs in protected targets). Domain-level account disable, krbtgt reset and GPO changes are human tasks — add_finding with owner and urgency.

4. Eradication and recovery

  • Reset credentials for every account in the chain (krbtgt twice if Kerberos abuse is suspected).
  • Remove persistence created during movement (services, scheduled tasks, WMI subscriptions — rules 89501, 89502 flag WMI consumers).
  • Rebuild or clean isolated hosts; un-isolation is a human-approved rollback in the approvals UI.
  • Tighten: LAPS, tiered admin model, block workstation-to-workstation SMB/RDP, restrict WinRM.

5. Verification

The responder verifies each executed action (wazuh_check_agent_isolation, wazuh_check_user_status, wazuh_check_process) and records verification findings.

6. Evidence and records

  • Findings with standard_refs such as MITRE-ATTACK:T1021.002, MITRE-ATTACK:T1550.002, NIST-800-61r3:Respond.
  • Preserve references to Event IDs 4624, 4648, 4672, 7045 and 4698 before hosts are reimaged.
  • Coverage gaps (no Sysmon, no script-block logging, no fan-out rule) → hand off to detection-engineer.
  • Hand off to reporting for the incident report with blast radius and credential-reset status.

Escalation

ConditionEscalate to
Domain controller touched or domain admin usedIR lead + identity team (human)
> 10 hosts touchedMajor incident process
Ransomware precursors (backup/VSS tampering)ir-playbook-ransomware immediately

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Ir Playbook Lateral Movement」では何ができますか?

ラテラルムーブメントに対応するインシデント対応プレイブックです。SMB/管理共有、WinRM/PowerShellリモート操作、RDP、SSH、PsExec/WMIによるリモート実行、パス・ザ・ハッシュ、リモートサービス/タスクを対象とします。Wazuhが内部間の認証やリモート実行の連鎖(例:ルール92652、92653、92650、92068、91823、または内部ソースからのSSH成功ルール5715)を示した場合に使用します。

TypingMindでIr Playbook Lateral Movementを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Ir Playbook Lateral Movementはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにIr Playbook Lateral Movementをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/ir-playbook-lateral-movementを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Ir Playbook Lateral Movementを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Ir Playbook Lateral Movementで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもIr Playbook Lateral Movementを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Ir Playbook Lateral Movement」は無料ですか?

はい。gensecaihqがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇