Vulnerabilities
The wazuh-states-vulnerabilities index stores the vulnerabilities that Wazuh detects in the packages of each endpoint, with the affected package, the CVE details, and the severity.
The following example shows a document from the wazuh-states-vulnerabilities index. It records a vulnerability in the python3-pip package of the Ubuntu endpoint:
{
"_index" : "wazuh-states-vulnerabilities",
"_id" : "003_5b3f27522bf23ee77f1c543392105c99ccc3cde7_CVE-2025-66471",
"_score" : 1.0,
"_source" : {
"package" : {
"path" : null,
"size" : 7026688,
"name" : "python3-pip",
"description" : "Python package installer",
"type" : "deb",
"version" : "24.0+dfsg-1ubuntu1.3",
"architecture" : "all"
},
"host" : {
"os" : {
"kernel" : "7.0.0-38-generic",
"name" : "Ubuntu",
"type" : "linux",
"version" : "24.04.4",
"platform" : "ubuntu",
"full" : "Ubuntu 24.04.4 LTS (Noble Numbat)"
}
},
"wazuh" : {
"schema" : {
"version" : "1.0.0"
},
"cluster" : {
"name" : "wazuh"
},
"agent" : {
"host" : {
"hostname" : "ubuntu-QEMU-Virtual-Machine",
"os" : {
"name" : "Ubuntu",
"type" : "linux",
"version" : "24.04.4 LTS (Noble Numbat)",
"platform" : "ubuntu"
},
"architecture" : "aarch64"
},
"name" : "Ubuntu",
"groups" : [
"default"
],
"id" : "003",
"version" : "v5.0.0"
}
},
"state" : {
"document_version" : 298,
"modified_at" : "2026-10-29T08:02:08.403Z"
},
"vulnerability" : {
"severity" : "High",
"detected_at" : "2026-10-29T08:01:38.721Z",
"score" : {
"version" : "4.0",
"base" : 8.9
},
"scanner" : {
"reference" : "https://cti.wazuh.com/vulnerabilities/cves/CVE-2025-66471",
"condition" : "Fixed in 24.0+dfsg-1ubuntu1.3+esm3",
"vendor" : "Wazuh",
"source" : "Canonical Security Tracker"
},
"id" : "CVE-2025-66471",
"category" : "Packages",
"published_at" : "2025-12-05T17:16:04Z",
"under_evaluation" : false
}
}
}
Example: Detect high-severity vulnerabilities, then list the ones still open
After the first full scan of an endpoint, the Wazuh manager sends a vulnerability event each time it detects a new vulnerability. The first scan indexes what it finds without sending events, so the rule doesn't flag those vulnerabilities. vulnerability.severity is in that event and in the wazuh-states-vulnerabilities index. A rule flags each new High vulnerability, then a query lists the High vulnerabilities still open in a package, highest score first.
Create the rule in Ruleset management > Detection > Rules. The rule's logsource.product must match the title of the integration you create it in. The events come from the built-in wazuh-vd integration, so create the rule in a custom integration titled wazuh-vd. Then promote it to the custom space and add it to a custom detector in Ruleset management > Detection > Detectors. In the query, replace <WAZUH_INDEXER_IP_ADDRESS>, <USERNAME>, and <PASSWORD> with your values. The highlighted lines show where vulnerability.severity is used and where it appears in the output.
1. Rule on vulnerability events
logsource:
product: wazuh-vd
level: high
status: experimental
enabled: true
detection:
condition: selection
selection:
event.dataset: wazuh.vd
event.action: vulnerability-detected
vulnerability.severity: High
metadata:
title: High vulnerability detected
author: Security Team
description: Detects a newly detected vulnerability with High severity.
2. Finding (excerpt)
{
"event": { "dataset": "wazuh.vd", "action": "vulnerability-detected" },
"vulnerability": {
"id": "CVE-2025-66418",
"severity": "High",
"score": { "base": 8.9 }
},
"package": { "name": "python3-pip", "version": "24.0+dfsg-1ubuntu1.3" },
"wazuh": {
"agent": { "name": "Ubuntu" },
"rule": { "title": "High vulnerability detected" }
}
}
3. Query on the state index
curl -k -u <USERNAME>:<PASSWORD> -X GET "https://<WAZUH_INDEXER_IP_ADDRESS>:9200/wazuh-states-vulnerabilities/_search?pretty" \
-H 'Content-Type: application/json' -d '
{
"query": { "bool": { "filter": [
{ "term": { "wazuh.agent.name": "Ubuntu" } },
{ "term": { "package.name": "python3-pip" } },
{ "term": { "vulnerability.severity": "High" } }
] } },
"sort": [ { "vulnerability.score.base": "desc" } ],
"_source": [ "vulnerability.id", "vulnerability.severity", "vulnerability.score.base", "package.name", "package.version" ]
}'
4. Result (excerpt)
"hits": [
{
"_index": "wazuh-states-vulnerabilities",
"_source": {
"vulnerability": {
"id": "CVE-2025-66471",
"severity": "High",
"score": { "base": 8.9 }
},
"package": { "name": "python3-pip", "version": "24.0+dfsg-1ubuntu1.3" }
}
}
]
Note
event.action: vulnerability-detectedkeeps the rule from also firing onvulnerability-resolvedevents.Severity values start with a capital letter:
Critical,High,Medium, andLow.A vulnerability stays in the state index until it's fixed, so the query shows what is still open, not only what is new.
Fields
Field |
Type |
Level |
Normalization |
Indexed |
Example |
Description |
|---|---|---|---|---|---|---|
|
|
|
|
|
Log message optimized for viewing in a log viewer. |
|
|
|
|
|
SHA1 hash used as checksum of the data collected by the agent. |
||
|
|
|
|
|
Operating system name, including the version or code name. |
|
|
|
|
|
|
Operating system kernel version as a raw string. |
|
|
|
|
|
|
Operating system name, without the version. |
|
|
|
|
|
|
Operating system platform (such centos, ubuntu, windows). |
|
|
|
|
|
|
Which commercial OS family (one of: linux, macos, unix, windows, ios or android). |
|
|
|
|
|
|
Operating system version as a raw string. |
|
|
|
|
|
|
Package architecture. |
|
|
|
|
|
|
Build version information |
|
|
|
|
|
|
Checksum of the installed package for verification. |
|
|
|
|
|
|
Description of the package. |
|
|
|
|
|
|
Indicating how the package was installed, e.g. user-local, global. |
|
|
|
|
|
Time when package was installed. |
||
|
|
|
|
|
Package license |
|
|
|
|
|
|
Package name |
|
|
|
|
|
|
Path where the package is installed. |
|
|
|
|
|
|
Package home page or reference URL |
|
|
|
|
|
|
Package size in bytes. |
|
|
|
|
|
|
Package type |
|
|
|
|
|
|
Package version |
|
|
|
|
|
Version of the document. |
||
|
|
|
|
Date/time when the state was last modified. |
||
|
|
|
|
|
|
Category of a vulnerability. |
|
|
|
|
|
Classification of the vulnerability. |
|
|
|
|
|
|
Description of the vulnerability. |
|
|
|
|
|
Vulnerability's detection date. |
||
|
|
|
|
|
Identifier of the vulnerability. |
|
|
|
|
|
|
ID of the vulnerability. |
|
|
|
|
|
Vulnerability's publication date. |
||
|
|
|
|
|
Scan identification number. |
|
|
|
|
|
The condition matched by the package that led the scanner to consider it vulnerable. |
||
|
|
|
|
Scanner's resource that provides additional information, context, and mitigations for the identified vulnerability. |
||
|
|
|
|
The origin of the decision of the scanner (AKA feed used to detect the vulnerability). |
||
|
|
|
|
|
Name of the scanner vendor. |
|
|
|
|
|
|
Vulnerability Base score. |
|
|
|
|
|
|
Vulnerability Environmental score. |
|
|
|
|
|
Vulnerability Temporal score. |
||
|
|
|
|
|
CVSS version. |
|
|
|
|
|
|
Severity of the vulnerability. |
|
|
|
|
|
Indicates if the vulnerability is awaiting analysis by the NVD. |
||
|
|
|
|
|
Extended build information for the agent. |
|
|
|
|
|
|
Ephemeral identifier of this agent. |
|
|
|
|
|
|
|
List of groups the agent belongs to. |
|
|
|
|
|
Operating system architecture. |
|
|
|
|
|
|
Linux boot uuid taken from /proc/sys/kernel/random/boot_id |
|
|
|
|
|
Percent CPU used, between 0 and 1. |
||
|
|
|
|
The number of bytes read by all disks. |
||
|
|
|
|
The number of bytes written on all disks. |
||
|
|
|
|
|
Name of the directory the group is a member of. |
|
|
|
|
|
|
City name. |
|
|
|
|
|
|
Continent code. |
|
|
|
|
|
|
Name of the continent. |
|
|
|
|
|
|
Country ISO code. |
|
|
|
|
|
|
Country name. |
|
|
|
|
|
|
Longitude and latitude. |
|
|
|
|
|
|
User-defined description of a location. |
|
|
|
|
|
|
Postal code. |
|
|
|
|
|
|
Region ISO code. |
|
|
|
|
|
|
Region name. |
|
|
|
|
|
|
Time zone. |
|
|
|
|
|
Hostname of the host. |
||
|
|
|
|
Unique host id. |
||
|
|
|
|
|
Host ip addresses. |
|
|
|
|
|
|
|
Host MAC addresses. |
|
|
|
|
Name of the host. |
||
|
|
|
|
The number of bytes sent on all network interfaces. |
||
|
|
|
|
The number of packets sent on all network interfaces. |
||
|
|
|
|
The number of bytes received on all network interfaces. |
||
|
|
|
|
The number of packets received on all network interfaces. |
||
|
|
|
|
|
OS family (such as redhat, debian, freebsd, windows). |
|
|
|
|
|
|
Operating system name, including the version or code name. |
|
|
|
|
|
|
Operating system kernel version as a raw string. |
|
|
|
|
|
|
Operating system name, without the version. |
|
|
|
|
|
|
Operating system platform (such centos, ubuntu, windows). |
|
|
|
|
|
|
Which commercial OS family (one of: linux, macos, unix, windows, ios or android). |
|
|
|
|
|
|
Operating system version as a raw string. |
|
|
|
|
|
|
Pid namespace inode |
|
|
|
|
|
Type of host. |
||
|
|
|
|
|
Seconds the host has been up. |
|
|
|
|
|
|
Unique identifier of this agent. |
|
|
|
|
|
|
Custom name of the agent. |
|
|
|
|
|
|
Type of the agent. |
|
|
|
|
|
|
Version of the agent. |
|
|
|
|
|
Wazuh cluster name. |
||
|
|
|
|
Wazuh cluster node name. |
||
|
|
|
|
Wazuh schema version. |