Wazuh is an open-source Security Information and Event Management (SIEM) tool that provides:
- Log analysis
- File Integrity Monitoring (FIM)
- Intrusion Detection System (IDS)
- Threat intelligence integration
- Incident response and compliance reporting
This guide documents the setup, configuration, and usage of Wazuh in a lab environment with:
- Wazuh Server (10.136.195.223)
- Windows 11 Agent (10.136.195.254)
- Kali Linux Attacker (10.136.195.74)
-
Install Wazuh server:
curl -sO https://packages.wazuh.com/4.x/wazuh-install.sh sudo bash wazuh-install.sh -a -
Start services:
sudo systemctl enable --now wazuh-manager
-
Download Wazuh agent MSI installer from:
Wazuh Downloads -- https://wazuh.com/install/ -
Install and configure ossec.conf:
<client> <server> <address>10.136.195.223</address> <port>1514</port> <protocol>tcp</protocol> </server> </client> -
Register the agent with Wazuh server.
Enable and configure in ossec.conf:
<syscheck>
<disabled>no</disabled>
<frequency>43200</frequency>
<directories realtime="yes">C:\Users\Public\</directories>
<windows_registry>HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run</windows_registry>
</syscheck>
Detects unauthorized file or registry changes.
Alerts appear in Wazuh Dashboard β Security Events.
To monitor DVWA (installed on Windows with XAMPP):
<localfile>
<location>C:\xampp\apache\logs\access.log</location>
<log_format>apache</log_format>
</localfile>
<localfile>
<location>C:\xampp\apache\logs\error.log</location>
<log_format>apache</log_format>
</localfile>
This lets Wazuh detect web attacks (SQLi, XSS, brute force).
Using Kali Linux:
-
Perform SQL Injection on DVWA:
' OR 1=1 -- -
Perform Brute Force with Hydra:
hydra -l admin -P /usr/share/wordlists/rockyou.txt 10.136.195.254 http-get /dvwa/login.php -
Perform XSS:
<script>alert('XSS')</script>
-
Alerts generated in
/var/ossec/logs/alerts/alerts.json on server. -
Also visible in
Wazuh Dashboard β Security Events.
β
Agent connectivity (Windows β Wazuh Server)
β
File Integrity Monitoring (FIM)
β
Apache Log monitoring (DVWA attacks)
β
SIEM correlation with attack logs
β
Alert visualization in Wazuh Dashboard
Wazuh Official Website
Wazuh Documentation
Wazuh GitHub Repository
Wazuh Installation Guide
Wazuh Agent Documentation
File Integrity Monitoring (FIM) with Wazuh
Log Data Collection
Threat Detection and Response
Wazuh Forum (Community Support)