Vulnerability detection

Wazuh uses the Vulnerability Detection module to identify vulnerabilities in applications and operating systems running on endpoints.

This use case shows how Wazuh detects unpatched Common Vulnerabilities and Exposures (CVEs) in the monitored endpoint.

For more information on this capability, check the vulnerability detection section of the documentation.




Debian 12

The vulnerability detection module checks for vulnerabilities in the operating system and installed applications in this Linux endpoint.


The Vulnerability Detection module is enabled by default. You can perform the following steps on the Wazuh server to ensure that the Wazuh Vulnerability Detection module is enabled and properly configured.

  1. Open the /var/ossec/etc/ossec.conf file on the Wazuh server. Check the following settings.

    • Vulnerability Detection is enabled.

    • The indexer connection is properly configured.

      By default, the indexer settings have one host configured. It's set to as highlighted below.


      Replace with your Wazuh indexer node IP address or hostname. You can find this value in the Filebeat config file /etc/filebeat/filebeat.yml.

      Ensure the Filebeat certificate and key name match the certificate files in /etc/filebeat/certs.

      If you have a Wazuh indexer cluster, add a <host> entry for each one of your nodes. For example, in a two-nodes configuration:


      Vulnerability detection prioritizes reporting to the first node in the list. It switches to the next node in case it's not available.

  2. If you made changes to the configuration, restart the Wazuh manager.

    $ sudo systemctl restart wazuh-manager

Test the configuration


The time it takes to detect vulnerabilities depends on the interval value for Syscollector configured in the ossec.conf file. To reduce the waiting times in this test, check System inventory capability configuration.

  1. Install a vulnerable version of Vim such as 2:9.0.1378-2 or earlier in the Debian endpoint. Wait for syscollector to run a new scan.

  2. Remove the Vim package to fix the vulnerability. Wait for syscollector to run a new scan.

Visualize the alerts

You can visualize the detected vulnerabilities in the Wazuh dashboard. To see a list of active vulnerabilities, go to Vulnerability Detection and select Inventory. Add a filter in the search bar to query all active vulnerabilities for the Vim package.


To see vulnerability alerts for the last system inventory scan, switch to Events. Add filters in the search bar to query vulnerability alerts for Vim.

  • Active vulnerability alerts – vim AND data.vulnerability.status:Active

  • Solved vulnerability alerts – vim AND data.vulnerability.status:Solved