# Vulnerability Detection in Wazuh: where detected vulnerabilities come from

> Wazuh Vulnerability Detection: the Syscollector inventory, CVE correlation with CTI data, feed-update-interval, Active and Solved statuses and a Vim PoC test.

Published: 2026-11-12. Category: Configuration. Tags: Wazuh 4. URL: https://wazuh.blog/en/blog/wazuh-vulnerability-detection/ Polish original: https://wazuh.blog/blog/wazuh-vulnerability-detection/

Vulnerability Detection in Wazuh compares the system inventory with vulnerability information. To understand a result, you have to follow the whole chain: Syscollector, the manager, the CVE data source, the indexer and the dashboard views.

## The inventory as the basis of detection

The Wazuh agent collects data about the operating system and the installed packages and applications with Syscollector. It passes the inventory to the Wazuh server, where the Vulnerability Detection module analyzes it by correlating it with vulnerability information. A package is marked as vulnerable if its version falls within the range of versions affected by a given CVE.

The collected data is sent periodically to the Wazuh server and stored in a local SQLite database. The inventory of each agent is kept separately and updated.

Vulnerability information can come from the Wazuh Cyber Threat Intelligence (CTI) platform or from a locally maintained repository. CTI aggregates data from operating system vendors and public security databases. The listed sources include AlmaLinux, Amazon Linux, Arch Linux, Ubuntu, Debian, Fedora, Oracle Linux, Red Hat Enterprise Linux, Rocky Linux, SUSE Linux Enterprise, Microsoft Security Updates, NVD, OSV and CISA, among others.

The Vulnerability Detector Provider (VDP) component of the CTI platform pulls raw information from the vendors, normalizes it to the CVE JSON v5 format, sanitizes inconsistencies, typos and missing fields, and then merges the vendor content with internal intelligence. This is the content used for correlation with the inventory. An update of this content can trigger a re-evaluation of agent data.

## The data path and the result view

The simplified flow can be read in four steps:

1. Syscollector on the agent collects information about the system and packages.
2. The agent synchronizes the inventory with the manager.
3. The Vulnerability Detection module on the manager compares the data with CTI information or a local repository.
4. The detected inventory is passed to the Wazuh indexer, and the dashboard offers views of assets, vulnerabilities and alerts.

The example inventory document in the documentation has the index `wazuh-states-vulnerabilities-server`. It contains data about the agent, the operating system and the package, the CVE identifier, the classification, the score, the severity, the source and the match condition.

In the dashboard the Vulnerability Detection view has the tabs Dashboard, Inventory and Events. Dashboard presents a summary by severity, score and asset. Inventory shows the vulnerability inventory, and Events the alerts related to detecting or fixing a vulnerability. Example filter fields are `data.vulnerability.package.name` and `data.vulnerability.status`; the status can have the value `Active` or `Solved`.

An alert contains, among other things, the CVE, the rule description, the vulnerability description, the severity, the package name, the status and a link to Wazuh CTI. The documentation lists example document fields such as `package.name`, `package.version`, `vulnerability.id`, `vulnerability.severity`, `vulnerability.score.base`, `vulnerability.reference` and `vulnerability.scanner.source`.

## What triggers the evaluation and when an alert appears

The first inventory synchronization has different semantics from later changes. During the initial scan no alerts are generated for the operating system. Changes in the system version or patch state are not recognized as new events at that point.

Later scans can generate alerts about the operating system if a change in the system version or patch state is detected. For packages an alert appears only when a vulnerability is added to or removed from the inventory as a result of installing or removing a package, and the change is captured during a scheduled Syscollector scan. Package changes made while the agent is stopped do not generate alerts. There is also no alert when the change is detected only after the agent restarts.

A similar rule applies to CTI content updates. After a change of CVE definitions, translations or mapping rules, agents are evaluated again, but the initial synchronization triggered by this update does not generate alerts. An agent connecting to another manager node in a cluster also synchronizes its inventory, but its initial synchronization does not generate alerts.

When verifying, check separately whether the vulnerability is in Inventory and whether the event appeared in Events.

## Vulnerability Detection settings

The module is enabled by default. The main configuration block is in the manager's `ossec.conf`.

| Option | Default value | Allowed values and meaning |
| --- | --- | --- |
| `enabled` | `yes` | `yes` or `no`; enables or disables the module |
| `index-status` | `yes` | `yes` or `no`; enables indexing of the vulnerability inventory data |
| `feed-update-interval` | `60m` | A positive number with a time unit suffix, for example `2h`; minimum `60m` |
| `offline-url` | empty | `file://` with an absolute path or an `http://` or `https://` address |
| `interval` | Not specified | Deprecated; its presence causes a warning about an invalid element |
| `run_on_start` | Not specified | Deprecated; its presence causes a warning about an invalid element |
| `retry_interval` | Not specified | Deprecated; its presence causes a warning about an invalid element |
| `provider` | Not specified | Deprecated; its presence causes a warning about an invalid element |

An example of the default block:

```xml
<vulnerability-detection>
  <enabled>yes</enabled>
  <index-status>yes</index-status>
  <feed-update-interval>60m</feed-update-interval>
</vulnerability-detection>
```

A `feed-update-interval` value shorter than 60 minutes is raised to the minimum of 60 minutes. In Wazuh 4.8.0 the element name `<vulnerability-detector>` was changed to `<vulnerability-detection>`.

By default the module does not scan the manager host itself. To include it, change `vulnerability-detection.disable_scan_manager` in `/var/ossec/etc/internal_options.conf` from `1` to `0` and restart the manager:

```bash
# Apply the internal_options.conf change
sudo systemctl restart wazuh-manager
```

## The Syscollector inventory that feeds the analysis

The module uses the inventory passed by Syscollector. The options for collecting data about hardware, the operating system, the network, packages, ports, processes, users, groups, services and browser extensions default to `yes` and take `yes` or `no`.

| Syscollector option | Default value | Meaning as described in the documentation |
| --- | --- | --- |
| `disabled` | `no` | Determines whether Syscollector is disabled |
| `interval` | `1h` | Time between scans; a positive number with a time unit |
| `scan_on_start` | `yes` | Runs a scan after the service starts |
| `os` | `yes` | Collecting operating system information |
| `packages` | `yes` | Collecting package information |
| `hotfixes` | `yes` | Scan of installed Windows updates |
| `synchronization.max_eps` | `10` | Maximum event reporting throughput; range 0 to 1000000, the value 0 means the default value |

The `hotfixes` option is enabled by default, although it does not appear in the initial configuration. For Windows it makes it possible to take installed fixes into account. The module uses information provided by Microsoft to check whether a fix resolves a CVE, and updates the vulnerability status.

## Connection to the indexer

Results are passed to the Wazuh indexer through the indexer connector configuration on the manager. The documentation states that the connector is enabled by default in `/var/ossec/etc/ossec.conf`. The example block contains the indexer host and the paths of the CA certificate, the certificate and the key:

```xml
<indexer>
  <enabled>yes</enabled>
  <hosts>
    <host>https://192.0.2.10:9200</host>
  </hosts>
  <ssl>
    <certificate_authorities>
      <ca>/etc/filebeat/certs/root-ca.pem</ca>
    </certificate_authorities>
    <certificate>/etc/filebeat/certs/filebeat.pem</certificate>
    <key>/etc/filebeat/certs/filebeat-key.pem</key>
  </ssl>
</indexer>
```

The address `192.0.2.10` is an example. In `<host>` enter the IP address or host name of the Wazuh indexer node. In a cluster add a `<host>` entry for each node; the manager treats the first as the priority one and moves to the next if the first is unavailable. The certificate file names in the block should match the files in `/etc/filebeat/certs/`.

If you want to check how a vulnerability is tied to an asset, also read about [CVE correlation with the inventory](/en/blog/cve-asset-correlation/).

## Verification procedure

The documented proof of concept uses a monitored Red Hat Enterprise Linux 7 endpoint. In the example the Vim package in version `2:7.4.629-8` is installed and then removed. For the exercise you can use an isolated agent, for example `agent-01`.

1. Install the Vim version given in the PoC procedure on a test RHEL 7 system.
2. Wait about 10 minutes or until the configured Syscollector interval passes.
3. In the dashboard open Vulnerability Detection, go to Inventory and add a filter `package.name` with the operator `is` and the value `vim`.
4. Open Events and set the filter `data.vulnerability.package.name: vim AND data.vulnerability.status:Active`.
5. Remove the Vim package, wait for the next scan and change the filter to `data.vulnerability.package.name: vim AND data.vulnerability.status:Solved`.

## What the documentation does not specify

The documentation does not specify the exact time from CVE publication to detection, the current number of CVEs in CTI, the maximum size of the batch of agents re-evaluated after an update, or the effect of a feed update on network throughput. It gives no specific alert rule identifiers for the module, no agent-side Vulnerability Detection configuration, no technical mapping of Microsoft bulletins to CVEs and no procedure for backing up and restoring an offline repository. The index name shown in the example document is not a documented naming rule. It does not describe how the module behaves when the Syscollector option `os` or `packages` is set to `no`, or where the local SQLite database is located.

## Sources

- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/index.html
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/how-it-works.html
- https://documentation.wazuh.com/current/user-manual/capabilities/vulnerability-detection/configuring-scans.html
- https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/vuln-detector.html
- https://documentation.wazuh.com/current/user-manual/reference/ossec-conf/wodle-syscollector.html
- https://documentation.wazuh.com/current/proof-of-concept-guide/poc-vulnerability-detection.html
