Wazuh 4 training: a free ten-part post series on wazuh.blog
Start of a free ten-part Wazuh 4 training: from the server and agents through decoders, rules and FIM to Active Response, Osquery and Sysmon.
Starting today I am publishing a series of ten posts on wazuh.blog that takes you through Wazuh 4, from the first dashboard login to integrations with Osquery, Sysmon and Docker. The order of topics follows the commercial training run by Wazuh, and I check every fact in the texts against the vendor documentation for version 4.14.
Where this series comes from
Wazuh sells live training in two variants, “Essential” and “Advanced”. According to the vendor page, the public course lasts 4 days of 6 hours each, runs online with a Wazuh instructor, and every attendee gets their own lab environment for the duration of the course plus one extra day. Private courses are available for groups of at least 5 people, with a syllabus based on the public course.
This series moves the same learning path to the blog and gives it to the community for free. The knowledge I gained while working with the training material is described here so that anyone can read it and repeat it in their own lab. There are two differences from the paid course:
- there is no certificate or proof of completion,
- there is no ready lab and no instructor: you build the environment yourself, and you can send questions through the contact page.
The series is not Wazuh Inc. material and does not replace the official course. Anyone who needs a certificate, instructor support or training for a team should choose the vendor course.
Lab environment
The course lab has five systems: a Wazuh manager, a Linux agent, a Windows agent, an indexer and a dashboard. This layout matches the four components described in the documentation: Wazuh indexer, Wazuh server, Wazuh dashboard and Wazuh agent. For the exercises in this series you need:
| System | Role in the series |
|---|---|
| Wazuh server, indexer and dashboard | one host with all central components, or three separate hosts |
| Linux agent | logs, FIM, rootcheck, Active Response, Osquery, Docker |
| Windows agent | MSI installation, Sysmon, Event Log channels |
I build my lab in the Polish cloud e24cloud.com, which has all the elements needed for such an environment.
The simplest way to get the central components is the quickstart installation: server, indexer and dashboard on one host, set up by the installation assistant. The documentation says this layout is usually enough to monitor up to 100 endpoints with 90 days of searchable data. Recommended hardware:
| Number of agents | CPU | RAM | Storage (90 days) |
|---|---|---|---|
| 1-25 | 4 vCPU | 8 GiB | 50 GB |
| 26-50 | 8 vCPU | 8 GiB | 100 GB |
| 51-100 | 8 vCPU | 8 GiB | 200 GB |
For a lab with two agents the first row is enough. The central components require 64-bit Linux on x86_64/AMD64 or AARCH64/ARM64. The list of recommended systems includes Amazon Linux 2 and 2023, CentOS Stream 10, Red Hat Enterprise Linux 7 to 10 and Ubuntu from 16.04 to 24.04. Installation is a single command:
# Download and run the Wazuh installation assistant (all central components on one host)
curl -sO https://packages.wazuh.com/4.14/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
At the end the assistant prints the interface address and the password of the admin user. Passwords of all indexer and API users are in the wazuh-passwords.txt file inside the wazuh-install-files.tar archive, which is created in the directory where the assistant runs:
# Print the generated passwords for indexer and API users
sudo tar -O -xvf wazuh-install-files.tar wazuh-install-files/wazuh-passwords.txt
On the first visit the browser warns that the certificate was issued by an untrusted authority. The documentation describes this as expected behavior. The vendor also recommends disabling the Wazuh package repository after installation, to avoid an accidental upgrade during the exercises:
# APT (Debian/Ubuntu): disable the Wazuh repository
sed -i "s/^deb /#deb /" /etc/apt/sources.list.d/wazuh.list
apt update
# Yum: disable the Wazuh repository
sed -i "s/^enabled=1/enabled=0/" /etc/yum.repos.d/wazuh.repo
The components connect on the default ports from the documentation: agent to server on 1514/TCP, agent enrollment on 1515/TCP, server API on 55000/TCP, indexer API on 9200/TCP, dashboard interface on 443/TCP. The data flow between them is described in the post on Wazuh architecture, and the installation of the latest 4.x release is covered by the post on upgrading to 4.14.
Plan of the ten parts
The order follows the course sessions. Each part combines a lecture with an exercise you can do in your own lab.
| Part | Topic | Scope |
|---|---|---|
| 1 | Server, dashboard and API | components, dashboard navigation, ossec.conf, enrollment password, API token and hardening, custom dashboard and PDF report |
| 2 | Agent enrollment | deployment variables, agent-auth, automatic enrollment, Windows agent |
| 3 | Upgrades and centralized configuration | remote agent upgrade, groups, agent.conf, verify-agent-conf, mass deployment |
| 4 | Log analysis | how the manager processes an event, retention, brute force attack, alert assessment, looking up rules |
| 5 | Decoders | decoder options, custom decoder, sibling decoders, dynamic JSON decoder |
| 6 | Rules | levels 0 to 16, rule groups, custom rules, modifying a built-in rule, evaluation order |
| 7 | File integrity monitoring | syscheck, realtime and whodata modes, FIM events |
| 8 | Inventory, vulnerabilities and rootkits | Syscollector, vulnerability detection, rootcheck |
| 9 | CDB lists and Active Response | watch lists, custom commands and responses, stateful and stateless commands, integrations |
| 10 | Osquery, Sysmon and Docker | Osquery integration on two agents, Sysmon on Windows, Docker monitoring |
Part one is published together with this post: Wazuh 4 training, part 1: server, dashboard and API. I will add the next parts to this table as links on the day they are published. All posts in the series carry the tag “Szkolenie Wazuh 4” and are collected on the Wazuh 4 page.
What is already on the blog
Some course topics already have separate, detailed articles on the blog. The series points to them instead of repeating their content:
- agent enrollment and its options: wazuh-agent-enrollment,
- groups and
agent.conf: wazuh-agent-groups, - testing decoders and rules: wazuh-logtest and wazuh-custom-decoders,
- rule levels: wazuh-rule-levels-and-thresholds,
- FIM: wazuh-fim-syscheck,
- vulnerabilities: wazuh-vulnerability-detection,
- CDB lists: wazuh-cdb-lists,
- Active Response: wazuh-active-response,
- Sysmon: wazuh-sysmon.
The training parts take you through each topic with exercises, while the articles above describe options and edge cases.
Who the training is for
The vendor course assumes familiarity with basic UNIX commands and requires no prior Wazuh knowledge. This series has the same requirements. It also helps to have:
rootorsudoaccess on the manager and the Linux agent,- an administrator account on the Windows agent,
curlandjqfor the API exercises.
Course goals that I carry over to the series: configuring and tuning Wazuh for your own needs, and practice in log analysis, file integrity monitoring, rootkit detection, policy enforcement, writing custom rules and decoders, Active Response and CDB lists.
What the series does not cover
- Wazuh 5. The 5.0 line has a different architecture (Sigma rules, Wazuh Common Schema) and I describe it separately under the Wazuh 5 tag.
- Wazuh Cloud. The course material includes command variants for the cloud version, while the posts describe a self-managed installation.
- Prices and dates of the vendor courses. The current ones are on the Wazuh website.