Wazuh Rules And Decoders logo

Wazuh Rules And Decoders

Organization
gensecaihq
wazuh-rules-and-decoders

Read Wazuh alerts correctly — alert anatomy, the 0–15 level scale, composite and correlation rules, compliance and MITRE tags, decoders, custom rules and noise tuning; use when interpreting what a rule really means or when proposing rule changes.

Overview

Publishergensecaihq
RepositoryWazuh-Autopilot
Skill namewazuh-rules-and-decoders
Stars
61
Forks
15
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by gensecaihq on GitHub. Read the source before you install it.

Installation

Install the Wazuh Rules And Decoders AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/wazuh-rules-and-decoders
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

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
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wazuh Rules And Decoders in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wazuh Rules And Decoders on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wazuh Rules And Decoders is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Frequently asked questions

What does the Wazuh Rules And Decoders AI skill do?

Read Wazuh alerts correctly — alert anatomy, the 0–15 level scale, composite and correlation rules, compliance and MITRE tags, decoders, custom rules and noise tuning; use when interpreting what a rule really means or when proposing rule changes.

Why use Wazuh Rules And Decoders on TypingMind?

Because you install it once and use it with any model. Wazuh Rules And Decoders is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wazuh Rules And Decoders in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/wazuh-rules-and-decoders. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Wazuh Rules And Decoders?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wazuh Rules And Decoders?

As many as you like. As long as a model supports skills, you can use Wazuh Rules And Decoders with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wazuh Rules And Decoders AI skill free?

Yes. It is published on GitHub by gensecaihq under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇