Wazuh is a free, open source and enterprise-ready security monitoring solution for threat detection, integrity monitoring, incident response and compliance.
Security Onion utilizes Wazuh as a Host Intrusion Detection System (HIDS) on each of the Security Onion nodes.
The Wazuh components include:
manager - runs inside of
so-wazuh Docker container and performs overall management of agents
API - runs inside of
so-wazuh Docker container and allows for remote management of agents, querying, etc.
agent - runs directly on each host and monitors logs/activity and reports to
The Wazuh API runs at TCP port
55000 locally, and currently uses the default credentials of
password:bar for authentication. Keep in mind, the API port is not exposed externally by default. Therefore, firewall rules need to be in place to reach the API from another location other than the Security Onion node on which the targeted Wazuh manager is running.
Since the manager runs inside a Docker container, many of the Wazuh binaries that you might want to run will need to be run inside the Docker container. For example, to run
The main configuration file for Wazuh is
If you want to send Wazuh logs to an external syslog collector, please see the Syslog Output section.
Sometimes, Wazuh may recognize legitimate activity as potentially malicious and engage in Active Response to block a connection. This may result in unintended consequences such as blocking of trusted IPs. To prevent this from occurring, you can add your IP address to a safe list and change other settings in
/opt/so/conf/wazuh/ossec.conf in the
<!-- Active response --> section. so-allow does this for you automatically when you allow analyst connections.
You can add new rules and modify existing rules in
It is important to ensure that you download the agent that matches the version of your Wazuh server. For example, if your Wazuh server is version 3.13.1, then you will want to deploy Wazuh agent version 3.13.1.
You can verify the version of your current Wazuh server using the following command:
sudo docker exec -it so-wazuh dpkg -l |grep wazuh
Please keep in mind that when you run
manage_agents you will need to do so inside the
so-wazuh container like this:
You also may need to run so-allow to allow traffic from the IP address of your Wazuh agent(s).
Maximum Number of Agents¶
Security Onion is configured to support a maximum number of
14000 Wazuh agents reporting to a single Wazuh manager.
If you would like to automate the deployment of Wazuh agents, the Wazuh server includes
ossec-authd. You can read more about
ossec-authd at https://documentation.wazuh.com/3.13/user-manual/reference/daemons/ossec-authd.html.
ossec-authd, be sure to add a firewall exception for agents to access port
1515/tcp on the Wazuh manager node by running so-allow and choosing the