wazuh.blog/ knowledge base/ wazuh-ai
Wazuh AI.
A language model can classify Wazuh alerts, but its output is untrusted data. A safe setup has three parts: the alert goes to external analysis through the Integrator, the result comes back as a secondary alert with its own decoder and rule, and an automatic response waits for analyst approval.
Alert analysis by a model
- External alert analysis in Wazuh: the result as a secondary alert
Connect external alert analysis to Wazuh through the Integrator: custom- options, script arguments, the queue socket, and a decoder and rules for the result. - Wazuh Integrator and email: alerts outside the manager
Configuring wazuh-integratord and email in Wazuh: level, rule_id and group filters, custom- scripts, the email_maxperhour limit and email_alerts blocks.
Control over the response
- An approval gate before automatic response in Wazuh
Analyst approval before Active Response: PUT /active-response, RBAC on agents, and a single-use approval record with an expiry time, plus a gate script. - Wazuh active response: configuration, scripts and SSH brute force blocking
Wazuh 4.14 active response: command and active-response options, the script JSON protocol, stateful vs stateless, check_keys and an SSH block via firewall-drop.
Data for the analysis
- Wazuh alert triage: read the fields and recover context
How to read a Wazuh JSON alert: rule.level, groups, MITRE, decoder, location and firedtimes, and when to reach for the archives. With a triage checklist. - Archives vs alerts in Wazuh: what goes where
archives.log, archives.json and alerts.json: the logall, logall_json and log_alert_level options, Filebeat archives, wazuh-archives-* and file rotation.