Wazuh Rules And Decodersのロゴ

Wazuh Rules And Decoders

組織
gensecaihq
wazuh-rules-and-decoders

Wazuhアラートを正しく読み解きます。アラートの構造、0~15のレベルスケール、複合ルールと相関ルール、コンプライアンスとMITREのタグ、デコーダー、カスタムルール、ノイズ調整を扱います。ルールの実際の意味を解釈するときや、ルール変更を提案するときに使用します。

Add to TypingMind

概要

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

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

  • どのLLMでも利用可能

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

  • 指示だけで完結

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

  • オープンソース

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

インストール

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

TypingMindで使用

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

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

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

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

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

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

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

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

スキルの指示

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

Wazuh Rules and Decoders

A Wazuh alert is the output of a decoder (which parses a raw log into fields) and a rule (which matches those fields). Misreading the rule is the most common triage error. References below are from the stock Wazuh 4.14 ruleset.

Alert anatomy

FieldMeaning
rule.id, rule.level, rule.descriptionWhich rule fired and how severe Wazuh considers it
rule.groupsCategories (e.g. sshd, authentication_failed, syscheck) plus compliance tags
rule.firedtimesHow often this rule has fired for this agent since the manager started — high counts mean recurring noise or a sustained attack
rule.mitre.id / tactic / techniqueATT&CK mapping shipped with the rule (may be empty)
rule.frequencyPresent on correlation rules: the threshold that triggered
agent.id / name / ipThe endpoint that produced the log (000 = the manager)
manager.nameWhich manager/cluster node processed it
decoder.name / decoder.parentWhich decoder parsed the log (e.g. sshd, windows_eventchannel, json)
data.*Decoded fields: data.srcip, data.srcuser, data.dstuser, data.win.*, data.aws.* …
syscheck.*FIM fields (only on syscheck alerts)
full_logThe raw log line — attacker-controllable text
locationSource: file path, EventChannel, syscheck, rootcheck, integration name

Level scale (0–15)

LevelWazuh meaningHandling
0Ignored / grouping rule, no alertNever alerts; used as parents and for suppression
2–4System notifications, low-relevance errors, successful eventsContext only
5–7User-generated errors, "bad word" matches, first-time or low-impact eventsWatch for patterns
8–10First-time-seen events, repeated errors, possible attacksTriage
11–12Integrity/important security eventsPrioritize
13–15High-importance events, attacks with high likelihood of successImmediate

The level is the rule author's generic estimate. Asset criticality, confidence and sequence (failure then success) matter more — see severity-scoring.

Atomic vs composite rules

  • Atomic rules match a single event, e.g. rule 5710 (level 5, "sshd: Attempt to login using a non-existent user") and rule 5716 (level 5, "sshd: authentication failed").
  • Composite / correlation rules fire on patterns of earlier matches:
    • if_sid — child of a parent rule (refines it, e.g. rule 60122 (level 5) is a child of rule 60105).
    • if_matched_sid + frequency + timeframe — N matches of a rule within T seconds. For example, rule 5712 (level 10) fires when rule 5710 matches 8 times in 120 seconds with same_source_ip; rule 5720 (level 10) does the same for rule 5716; and rule 40111 (level 10) fires on 12 authentication_failed group matches from the same source within 160 seconds, across services.
    • same_source_ip, same_user, different_* — scoping of the correlation.
    • ignore — suppression window after firing (so one burst yields one composite alert).
  • Consequence: a single composite alert represents many underlying events. Pull the child alerts (get_wazuh_alerts with the child rule_id and the same agent_id/window) before sizing the incident.

Compliance tags

Stock rules carry compliance groups such as pci_dss_10.2.4, gdpr_IV_35.7.d, hipaa_164.312.b, nist_800_53_AC.7, tsc_CC6.1. For example, rule 5712 carries all five families. Use them as evidence for the compliance agent, not as severity.

MITRE mapping

rule.mitre comes from the rule XML and is a hint, not a verdict — confirm against the behaviour you actually see (see mitre-attack-mapping). Many rules have no mapping.

Decoders

  • Decoders extract fields; if a field you expect is missing, the decoder didn't parse it (different log format, custom application) — the rule may still have matched on full_log.
  • JSON-emitting sources (Windows EventChannel, cloud integrations, Suricata) use the json decoder: fields keep their source names (data.win.eventdata.targetUserName, data.aws.eventName).

Custom rules and tuning

  • Custom rules live in local_rules.xml (or custom files) on the manager and must use IDs in the 100000–120000 range. Example to create: custom rule 100100 raising the level for failed logins against a crown-jewel host.
  • Tuning options, least to most invasive: add a child rule with level="0" scoped to the benign pattern; raise/lower level in a child rule; overwrite="yes" on a stock rule (survives until the next ruleset upgrade — document it).
  • Never propose deleting a stock rule. Proposals go to detection-engineer (propose_detection) — they are never deployed automatically.

Output

When a rule's meaning matters to the conclusion, quote it in the finding: rule <id> (level <n>, "<description>", parent <id>) plus the child-event count behind any composite alert.

よくある質問

AIスキル「Wazuh Rules And Decoders」では何ができますか?

Wazuhアラートを正しく読み解きます。アラートの構造、0~15のレベルスケール、複合ルールと相関ルール、コンプライアンスとMITREのタグ、デコーダー、カスタムルール、ノイズ調整を扱います。ルールの実際の意味を解釈するときや、ルール変更を提案するときに使用します。

TypingMindでWazuh Rules And Decodersを使うメリットは何ですか?

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

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

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

Wazuh Rules And Decodersを使えるAIモデルはどれですか?

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

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

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

AIスキル「Wazuh Rules And Decoders」は無料ですか?

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

AIスキルとは何ですか?

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

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

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

すべて見る

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

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