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-detected keeps the rule from also firing on vulnerability-resolved events.

  • Severity values start with a capital letter: Critical, High, Medium, and Low.

  • 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

message

keyword

core

true

Hello World

Log message optimized for viewing in a log viewer.

checksum.hash.sha1

keyword

custom

true

SHA1 hash used as checksum of the data collected by the agent.

host.os.full

keyword

extended

true

Mac OS Mojave

Operating system name, including the version or code name.

host.os.kernel

keyword

extended

true

4.4.0-112-generic

Operating system kernel version as a raw string.

host.os.name

keyword

extended

true

Mac OS X

Operating system name, without the version.

host.os.platform

keyword

extended

true

darwin

Operating system platform (such centos, ubuntu, windows).

host.os.type

keyword

extended

true

macos

Which commercial OS family (one of: linux, macos, unix, windows, ios or android).

host.os.version

keyword

extended

true

10.14.1

Operating system version as a raw string.

package.architecture

keyword

extended

true

x86_64

Package architecture.

package.build_version

keyword

extended

true

36f4f7e89dd61b0988b12ee000b98966867710cd

Build version information

package.checksum

keyword

extended

true

68b329da9893e34099c7d8ad5cb9c940

Checksum of the installed package for verification.

package.description

keyword

extended

true

Open source programming language to build simple/reliable/efficient software.

Description of the package.

package.install_scope

keyword

extended

true

global

Indicating how the package was installed, e.g. user-local, global.

package.installed

date

extended

true

Time when package was installed.

package.license

keyword

extended

true

Apache License 2.0

Package license

package.name

keyword

extended

true

go

Package name

package.path

keyword

extended

true

/usr/local/Cellar/go/1.12.9/

Path where the package is installed.

package.reference

keyword

extended

true

https://golang.org

Package home page or reference URL

package.size

long

extended

true

62231

Package size in bytes.

package.type

keyword

extended

true

rpm

Package type

package.version

keyword

extended

true

1.12.9

Package version

state.document_version

integer

custom

true

Version of the document.

state.modified_at

date

custom

true

Date/time when the state was last modified.

vulnerability.category

keyword

extended

array

true

["Firewall"]

Category of a vulnerability.

vulnerability.classification

keyword

extended

true

CVSS

Classification of the vulnerability.

vulnerability.description

keyword

extended

true

In macOS before 2.12.6, there is a vulnerability in the RPC...

Description of the vulnerability.

vulnerability.detected_at

date

custom

true

Vulnerability's detection date.

vulnerability.enumeration

keyword

extended

true

CVE

Identifier of the vulnerability.

vulnerability.id

keyword

extended

true

CVE-2019-00001

ID of the vulnerability.

vulnerability.published_at

date

custom

true

Vulnerability's publication date.

vulnerability.report_id

keyword

extended

true

20191018.0001

Scan identification number.

vulnerability.scanner.condition

keyword

custom

true

The condition matched by the package that led the scanner to consider it vulnerable.

vulnerability.scanner.reference

keyword

custom

true

Scanner's resource that provides additional information, context, and mitigations for the identified vulnerability.

vulnerability.scanner.source

keyword

custom

true

The origin of the decision of the scanner (AKA feed used to detect the vulnerability).

vulnerability.scanner.vendor

keyword

extended

true

Tenable

Name of the scanner vendor.

vulnerability.score.base

float

extended

true

5.5

Vulnerability Base score.

vulnerability.score.environmental

float

extended

true

5.5

Vulnerability Environmental score.

vulnerability.score.temporal

float

extended

true

Vulnerability Temporal score.

vulnerability.score.version

keyword

extended

true

2.0

CVSS version.

vulnerability.severity

keyword

extended

true

Critical

Severity of the vulnerability.

vulnerability.under_evaluation

boolean

custom

true

Indicates if the vulnerability is awaiting analysis by the NVD.

wazuh.agent.build.original

keyword

core

true

metricbeat version 7.6.0 (amd64), libbeat 7.6.0 [6a23e8f8f30f5001ba344e4e54d8d9cb82cb107c built 2020-02-05 23:10:10 +0000 UTC]

Extended build information for the agent.

wazuh.agent.ephemeral_id

keyword

extended

true

8a4f500f

Ephemeral identifier of this agent.

wazuh.agent.groups

keyword

custom

array

true

["group1", "group2"]

List of groups the agent belongs to.

wazuh.agent.host.architecture

keyword

core

true

x86_64

Operating system architecture.

wazuh.agent.host.boot.id

keyword

extended

true

88a1f0ed-5ae5-41ee-af6b-41921c311872

Linux boot uuid taken from /proc/sys/kernel/random/boot_id

wazuh.agent.host.cpu.usage

scaled_float

extended

true

Percent CPU used, between 0 and 1.

wazuh.agent.host.disk.read.bytes

long

extended

true

The number of bytes read by all disks.

wazuh.agent.host.disk.write.bytes

long

extended

true

The number of bytes written on all disks.

wazuh.agent.host.domain

keyword

extended

true

CONTOSO

Name of the directory the group is a member of.

wazuh.agent.host.geo.city_name

keyword

core

true

Montreal

City name.

wazuh.agent.host.geo.continent_code

keyword

core

true

NA

Continent code.

wazuh.agent.host.geo.continent_name

keyword

core

true

North America

Name of the continent.

wazuh.agent.host.geo.country_iso_code

keyword

core

true

CA

Country ISO code.

wazuh.agent.host.geo.country_name

keyword

core

true

Canada

Country name.

wazuh.agent.host.geo.location

geo_point

core

true

{ "lon": -73.614830, "lat": 45.505918 }

Longitude and latitude.

wazuh.agent.host.geo.name

keyword

extended

true

boston-dc

User-defined description of a location.

wazuh.agent.host.geo.postal_code

keyword

core

true

94040

Postal code.

wazuh.agent.host.geo.region_iso_code

keyword

core

true

CA-QC

Region ISO code.

wazuh.agent.host.geo.region_name

keyword

core

true

Quebec

Region name.

wazuh.agent.host.geo.timezone

keyword

core

true

America/Argentina/Buenos_Aires

Time zone.

wazuh.agent.host.hostname

keyword

core

true

Hostname of the host.

wazuh.agent.host.id

keyword

core

true

Unique host id.

wazuh.agent.host.ip

ip

core

array

true

Host ip addresses.

wazuh.agent.host.mac

keyword

core

array

true

["00-00-5E-00-53-23", "00-00-5E-00-53-24"]

Host MAC addresses.

wazuh.agent.host.name

keyword

core

true

Name of the host.

wazuh.agent.host.network.egress.bytes

long

extended

true

The number of bytes sent on all network interfaces.

wazuh.agent.host.network.egress.packets

long

extended

true

The number of packets sent on all network interfaces.

wazuh.agent.host.network.ingress.bytes

long

extended

true

The number of bytes received on all network interfaces.

wazuh.agent.host.network.ingress.packets

long

extended

true

The number of packets received on all network interfaces.

wazuh.agent.host.os.family

keyword

extended

true

debian

OS family (such as redhat, debian, freebsd, windows).

wazuh.agent.host.os.full

keyword

extended

true

Mac OS Mojave

Operating system name, including the version or code name.

wazuh.agent.host.os.kernel

keyword

extended

true

4.4.0-112-generic

Operating system kernel version as a raw string.

wazuh.agent.host.os.name

keyword

extended

true

Mac OS X

Operating system name, without the version.

wazuh.agent.host.os.platform

keyword

extended

true

darwin

Operating system platform (such centos, ubuntu, windows).

wazuh.agent.host.os.type

keyword

extended

true

macos

Which commercial OS family (one of: linux, macos, unix, windows, ios or android).

wazuh.agent.host.os.version

keyword

extended

true

10.14.1

Operating system version as a raw string.

wazuh.agent.host.pid_ns_ino

keyword

extended

true

256383

Pid namespace inode

wazuh.agent.host.type

keyword

core

true

Type of host.

wazuh.agent.host.uptime

long

extended

true

1325

Seconds the host has been up.

wazuh.agent.id

keyword

core

true

8a4f500d

Unique identifier of this agent.

wazuh.agent.name

keyword

core

true

foo

Custom name of the agent.

wazuh.agent.type

keyword

core

true

filebeat

Type of the agent.

wazuh.agent.version

keyword

core

true

6.0.0-rc2

Version of the agent.

wazuh.cluster.name

keyword

custom

true

Wazuh cluster name.

wazuh.cluster.node

keyword

custom

true

Wazuh cluster node name.

wazuh.schema.version

keyword

custom

true

Wazuh schema version.