Wazuh Active Responseのロゴ

Wazuh Active Response

組織
gensecaihq
wazuh-active-response

Wazuhのアクティブレスポンスの実際の仕組みを解説します。コマンド、エージェント側のスクリプト、ディスパッチと実行の違い、永続性、影響範囲、事前チェック、検証時の注意点を取り上げ、封じ込めの計画と検証を支援します。対応アクションを提案または検証する前に必ず使用してください。

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

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

インストール

AIスキル「Wazuh Active Response」を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/wazuh-active-response
  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/wazuh-active-response .claude/skills/wazuh-active-response
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

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

関連するリクエストがあるとすぐに、モデルが自動的にWazuh Active Responseを読み込みます。

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

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

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

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

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

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

スキルの指示

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

Wazuh Active Response

Agents never execute actions. The response-planner proposes (propose_action); the autonomy policy and human approvers decide; the platform executor calls the Wazuh MCP action tool; the responder verifies. This skill explains what happens underneath so plans are realistic and verification is honest.

How Wazuh AR works

  1. The Wazuh API (via the MCP server) sends an active-response command to one or more agents.
  2. The agent runs a script of that name from its active-response bin directory. If the script isn't deployed on that agent, nothing happens on the host.
  3. The API returns as soon as the manager accepts and dispatches the command ("AR command was sent to the agent") — this is not proof of execution.
  4. The script logs its outcome; Wazuh turns that log into an alert in the active_response group.
  5. API-triggered AR is permanent: Wazuh ignores the timeout for API-triggered commands, so a block stays until explicitly removed (rollback), unlike rule-triggered AR with a timeout.

What each platform action sends

Platform actionMCP toolAR commandStock script?Rollback
block_ipwazuh_block_ip!firewall-drop (-srcip) on one agent or all_agentsYeswazuh_firewall_allow — per agent; needs an undo script configured on the MCP server
firewall_dropwazuh_firewall_drop!firewall-dropYeswazuh_firewall_allow
host_denywazuh_host_deny!host-deny (adds to /etc/hosts.deny, Linux)Yeswazuh_host_allow
disable_userwazuh_disable_user!disable-accountYes (Linux)wazuh_enable_user
isolate_hostwazuh_isolate_host!host-isolationNo — custom script requiredwazuh_unisolate_host
kill_processwazuh_kill_process!kill-process (PID)No — custom script requiredNone
quarantine_filewazuh_quarantine_file!quarantine (path)No — custom script requiredwazuh_restore_file
restart_wazuhwazuh_restartWazuh API restart of agent or managern/an/a
active_responsewazuh_active_responseAllowlisted command names onlyDependsDepends

If the org hasn't deployed the custom scripts, isolate/kill/quarantine will be "dispatched" and do nothing. Say so in the plan and prefer actions with stock scripts, or recommend a manual step.

Blast radius

  • block_ip with no agent means all_agents=true: fleet-wide and permanent. Name the agents that actually see the attacker (from the alerts) instead, unless the IP is confirmed malicious and internet-only. Fleet-wide blocks can only be rolled back agent by agent.
  • Never target the manager (agent 000) — the MCP server refuses it by default.
  • Protected targets (policy) are refused before execution; don't propose them.
  • Isolation cuts the host off except for the manager: confirm the business owner impact first.

Pre-checks (responder and response-planner)

  1. Agent connected? check_agent_health agent_id="<id>" — AR to a disconnected agent is queued or lost.
  2. Already done? wazuh_check_blocked_ip / wazuh_check_agent_isolation / wazuh_check_user_status before proposing a duplicate.
  3. Target still valid? For kill_process, confirm the PID with get_agent_processes (syscollector is a periodic inventory — PIDs can be stale or reused).
  4. Evidence preserved? Kill and quarantine destroy volatile evidence — record process details first.

Verification caveats

The wazuh_check_* tools infer state; they are not live host queries:

CheckEvidence it uses
wazuh_check_blocked_ipAR alert history in the active_response group for that IP — e.g. rule 601 (level 3, "Host Blocked by firewall-drop Active Response") or its JSON-log equivalent rule 651 (level 3); host-deny: rule 603 / rule 653 (level 3)
wazuh_check_agent_isolationAgent connectivity plus AR history mentioning isolation
wazuh_check_processSyscollector process inventory (periodic) — a killed PID can still appear until the next scan; read inventory_scan_time
wazuh_check_user_statusAR history mentioning the username
wazuh_check_file_quarantineA FIM "File deleted" alert — rule 553 (level 7) — for the exact path

Unblock evidence: rule 602 / rule 652 (level 3, "Host Unblocked by firewall-drop Active Response"). rule 658 (level 5) means the AR was activated but may not have had an effect — treat as not verified. No AR alert at all usually means the script didn't run (missing script, agent offline, AR disabled).

Report verification as verified / not verified / inconclusive with the evidence, never as "done" because the API said so.

Roles

  • response-planner: pick the least destructive action that contains the threat, order it (evidence → contain → eradicate), include rollback and blast radius in the rationale, then propose. Hand off to responder only via the platform (verification runs automatically after execution).
  • responder: run the matching wazuh_check_*, look for the AR alerts above, record the finding, and if something went wrong recommend rollback — hand off to response-planner for any new action.

Output

add_finding with action, target agent(s), AR command, stock/custom script status, pre-check results, verification evidence (rule and timestamp) and rollback path; refs such as MITRE-D3FEND:D3-ITF, NIST-800-61r3:Respond.

よくある質問

AIスキル「Wazuh Active Response」では何ができますか?

Wazuhのアクティブレスポンスの実際の仕組みを解説します。コマンド、エージェント側のスクリプト、ディスパッチと実行の違い、永続性、影響範囲、事前チェック、検証時の注意点を取り上げ、封じ込めの計画と検証を支援します。対応アクションを提案または検証する前に必ず使用してください。

TypingMindでWazuh Active Responseを使うメリットは何ですか?

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

TypingMindにWazuh Active Responseをインストールするにはどうすればよいですか?

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

Wazuh Active Responseを使えるAIモデルはどれですか?

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

Wazuh Active Responseで使えるAIモデルの数に制限はありますか?

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

AIスキル「Wazuh Active Response」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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