
Table of Contents
Requirements Link to Requirements
To install a Wazuh lab, certain requirements must be met as outlined on the official Wazuh documentation site. Below are the key requirements:
Operating System Link to Operating System
The central components of Wazuh require a 64-bit Intel or AMD Linux processor (x86_64/AMD64 architecture). Wazuh officially supports the following operating systems:
Operating System | Supported Versions |
---|---|
Amazon Linux | 2, 2023 |
CentOS | 7, 8 |
Red Hat Enterprise Linux | 7, 8, 9 |
Ubuntu | 16.04, 18.04, 20.04, 22.04, 24.04 |
Installing Wazuh Link to Installing Wazuh
To perform a quick installation of Wazuh, you can use the Wazuh installation assistant. Execute the following command:
1
curl -sO https://packages.wazuh.com/4.10/wazuh-install.sh && sudo bash ./wazuh-install.sh -a
If the system does not meet the installation requirements, an error message will appear, as shown below:
Once the installation is complete, the output will display access credentials and confirm a successful installation:
123456
INFO: --- Summary ---
INFO: You can access the web interface https://<WAZUH_DASHBOARD_IP_ADDRESS>
User: admin
Password: <ADMIN_PASSWORD>
INFO: Installation finished.
You now have installed and configured Wazuh.
Access the Wazuh web interface using the provided URL and credentials:
- Username: admin
- Password:
<ADMIN_PASSWORD>
Upon visiting the URL, you will see a login page:
Enter your credentials to access the Wazuh dashboard.
Wazuh Agent Link to Wazuh Agent
The Wazuh agent is a lightweight software component installed on endpoints such as computers or servers. It collects data like logs, security events, and system activity, sending this information to the central Wazuh manager for analysis. This enables real-time monitoring, detection, and response to security incidents.
Deploying the Wazuh Agent Link to Deploying the Wazuh Agent
On the Wazuh dashboard, click the three-line menu icon on the left-hand side and select Summary:
Click on Deploy new agent. If agents are already deployed, you will see their status (e.g., active or disconnected):
Fill in the required fields:
- Select the operating system of the endpoint (e.g.,
DEB amd64
for Ubuntu). - Assign the Wazuh Manager IP address (e.g.,
192.168.10.5
). - Optionally, specify an agent name.
- Select the operating system of the endpoint (e.g.,
Copy the generated command. For example:
BASH12wget https://packages.wazuh.com/4.x/apt/pool/main/w/wazuh-agent/wazuh-agent_4.10.1-1_amd64.deb \ && sudo WAZUH_MANAGER='192.168.10.5' WAZUH_AGENT_NAME='ubuntu-server' dpkg -i ./wazuh-agent_4.10.1-1_amd64.deb
Once downloaded, configure the agent by editing the configuration file:
BASH1sudo vim /var/ossec/etc/ossec.conf
Add the Wazuh Manager IP address (e.g.,
192.168.10.5
).Save the file and run the following commands to enable and start the Wazuh agent:
BASH123sudo systemctl daemon-reload sudo systemctl enable wazuh-agent sudo systemctl start wazuh-agent
Verify the agent’s status:
BASH1sudo systemctl status wazuh-agent
Navigate back to the Wazuh Manager dashboard. The agent should appear as active:
Click the agent name to view its events and additional details:
Event Analysis and Compliance Link to Event Analysis and Compliance
On the agent detail page, explore compliance checks such as PCI DSS. You can simulate activity like SSH and FTP logins to generate events.
Simulate failed SSH login attempts:
Simulate FTP logins:
Filter events by adjusting the time range (e.g., last 24 hours):
Conclusion Link to Conclusion
Congratulations! You have successfully set up a Wazuh lab and captured security events. This environment is now ready for further exploration and analysis.
Setup Wazuh Lab
© EveSunMaple | CC BY-SA 4.0