Wazuh is an open source project that provides security visibility, compliance and infrastructure monitoring capabilities. The project was born as a fork of OSSEC HIDS and has evolved into a comprehensive solution by implementing new functionalities and integrating additional tools like OpenSCAP and Elasticsearch.
This manual describes how to configure and use each of Wazuh components, which consist of the Wazuh server, the Wazuh agent, and Elastic Stack.
The Wazuh server is based on a suite of applications where each application or component is designed to accomplished a certain task. These components work together to:
analyze data received from various logs,
trigger alerts when a log event matches a rule,
register new clients/agents, and
send data to the Elastic Stack server.
The Wazuh Manager receives and analyzes data from the agents using decoders and rules that have been created to trigger security alerts. The manager is also used to distribute configuration files to the agents, to monitor their status and to send control messages to trigger automatic actions at the agent level.
The Registration Service uses a secure mechanism to register agents without any intervention from server side.
The RESTful API provides an interface to manage and monitor the configuration of the manager and agents. It can be used to register agents, inspect the manager log messages, decoders and rules and provide useful information related to the agents, including their status, operating system details, and alerts related to file integrity monitoring and rootchecks.
Filebeat is used in distributed architectures (where the Wazuh server and Elastic Stack live in different systems) to forward alerts data to Logstash. This component has its own documentation developed by Elastic.
Elastic Stack is used to index, browse and visualize Wazuh alerts data. In addition, the Wazuh app for Kibana can be used to visualize configuration settings, rules, decoders, and agent’s status information. The dashboards used for this visualization include, but are not limited to policy, compliance and file integrity monitoring.
The Wazuh app is a Kibana plugin designed to display Wazuh related information providing a RESTful API web interface. This interface makes administration of the Wazuh Manager and Wazuh Agents easy and powerful.
Logstash is used to collect data coming from one or more Wazuh servers via Filebeat, feeding this data to the Elasticsearch cluster. In addition, it enriches alerts by adding Geolocation metadata. More information can be found at the Logstash official documentation.
Elasticsearch is a highly scalable full-text search and analytics engine. It is used to index alerts data and historical agents status information. More information can be found at the Elasticsearch official documentation.
Kibana is a flexible and intuitive web interface for mining, analyzing, and visualizing data. In combination with our Wazuh Kibana app, it is used as the Wazuh web user interface (WUI). More information can be found at the Kibana official documentation.
The Wazuh agent runs on monitored systems and is in charge of collecting log and event data, performing policy monitoring scans, detecting malware and rootkits and triggering alerts when monitored files are modified. It communicates with the Wazuh server through an encrypted and authenticated channel.
Rootcheck performs rootkit and malware detection on every system where the agent is installed.
Log monitoring/analysis collects and analyzes system logs looking for any suspicious activity.
Syscheck runs periodically to check for changes to any configured file (or registry entry on Windows).
OpenSCAP is designed to check for weak and vulnerable applications and configurations.