Skip to content

Integrations / Scanners

Wazuh integration

Osty treats Wazuh as a host inventory and vulnerability feed. The osty-edge Wazuh collector pages through the manager API inside your VPC, records each agent's OS release, packages, executables and findings as WAZUH scanner observations with raw severity kept verbatim, then checks every finding against distro backport records. Runtime-config wiring is not exposed yet.

Written by Osty EngineeringPublished Updated

What the Wazuh collector reads from the manager API
Wazuh API callWhat Osty recordsCollector rule
POST /security/user/authenticateA bearer token for later calls.Basic auth with the configured user; one re-authentication on HTTP 401.
GET /agentsAgent ID, name, IP, status and groups.Paged with offset and limit=500; the manager agent 000 is skipped.
GET /syscollector/<agent>/osOS release, kernel and architecture.A distro Osty cannot normalise keeps the host but skips its packages, with an issue.
GET /syscollector/<agent>/packagesA HOST_LIVE SBOM and the host's glibc version.Only deb, apk or rpm packages that match the host's distro.
GET /vulnerability/<agent>WAZUH scanner observations.SOLVED findings are dropped; the Wazuh severity string is kept verbatim.
GET /syscheck/<agent>?type=fileLive files with SHA-256 digests and the executable bit.Files without a valid SHA-256 are reported as issues, never guessed.
Explain one Wazuh CVE against Osty's distro evidence
osty explain --cve CVE-2024-5535 --cache /var/lib/osty/edge-cache.sqlite --json

What ships today, and what does not?

Wazuh integration status
PieceStatus
Wazuh manager API collector in osty-edgeImplemented and tested in the osty-edge source tree (internal/edge/collectors/wazuh).
Reconciler mapping Wazuh hosts to workloads and WAZUH scanner observationsImplemented (ADR-0009).
A collectors.wazuh block for osty-edge serve --runtime-configNot exposed in this release. The collectors block accepts kubernetes, aws and gcp today.
Offline per-advisory explanation with osty explain --cveShipped.

Until the runtime config exposes the collector, a running edge does not poll Wazuh on its own. The checks later on this page run today against the same API the collector reads.

How does the collector walk the Wazuh manager API?

  1. 01It authenticates once with the configured user and password, then sends the token as a bearer header. On HTTP 401 it re-authenticates once and retries.
  2. 02It lists every agent, 500 per page by default, advancing offset until it has read total_affected_items. Any failed_items in a response fail the collection instead of being skipped.
  3. 03For each agent except the manager (000), it reads OS inventory, packages, open vulnerabilities and file integrity records.
  4. 04Each response body is capped at 64 MiB. When a CA certificate is configured, TLS is pinned to it with TLS 1.2 as the minimum.

The collector is part of osty-edge, which runs inside your network, so Wazuh credentials and raw host data stay in the VPC.

How are Wazuh hosts keyed and kept in the lineage graph?

  • Each host gets the external key wazuh:<manager>:<agent-name>, so the same agent keeps one identity across collections.
  • The environment comes from the first agent group mapped to PROD, STAGING, DEV or CI, then from the collector default.
  • A host stays in the graph for 30 days after it was last seen (EphemeralPresenceTTL), the presence window ADR-0026 sets for Wazuh hosts, so an agent that goes offline does not drop out of blast-radius reports.
  • The glibc version comes from the libc6 package on Debian and Ubuntu or glibc on RHEL, which feeds Osty's ELF ABI floor checks for upgrades on that host.
  • Executables and shared libraries from file integrity records are matched against artifacts signed by osty stamp, tying the host back to a commit and owner. A host whose name and IP match a Kubernetes pod attaches to that workload instead.

How are Wazuh findings normalised?

Each open Wazuh finding becomes a row in scanner_observations with scanner_kind = WAZUH, the advisory key, package name, installed version and the Wazuh severity in raw_severity exactly as Wazuh reported it. Osty derives the normalised severity from the matched authoritative advisory, not from Wazuh's label, and logs a structured issue when no advisory matches (ADR-0009).

A Wazuh condition of the form Package less than <version> sets the fixed version and marks the finding fixable. Osty then resolves the installed package against the Debian Security Tracker, Ubuntu USN and OVAL, Alpine SecDB or Red Hat CSAF. A finding is eliminated only when the distribution records the fix as a backport or marks the version not affected; everything else stays actionable and can join a remediation wave for the owning repository.

How do I check Wazuh findings against Osty today?

Call the same endpoints the collector reads, with the same read-only API user you plan to give it, and confirm your manager version serves each one. Then ask Osty for its evidence on every open CVE. osty explain reads only the local signed edge cache and never calls the network.

Read the Wazuh API the way the collector doesbash
WAZUH_API=https://wazuh-manager.internal.acme.dev:55000
TOKEN=$(curl -sS --cacert wazuh-root-ca.pem -u "$WAZUH_USER:$WAZUH_PASSWORD" -X POST "$WAZUH_API/security/user/authenticate?raw=true")
curl -sS --cacert wazuh-root-ca.pem -H "Authorization: Bearer $TOKEN" "$WAZUH_API/agents?offset=0&limit=500" | jq '.data.total_affected_items'
curl -sS --cacert wazuh-root-ca.pem -H "Authorization: Bearer $TOKEN" "$WAZUH_API/syscollector/001/os?offset=0&limit=500" | jq '.data.affected_items[0].os'
curl -sS --cacert wazuh-root-ca.pem -H "Authorization: Bearer $TOKEN" "$WAZUH_API/vulnerability/001?offset=0&limit=500" | jq -r '.data.affected_items[] | select(.status != "SOLVED") | .cve' | sort -u > cves.txt
Explain each open Wazuh CVE with Ostybash
while read -r cve; do
  osty explain --cve "$cve" --cache /var/lib/osty/edge-cache.sqlite --json
done < cves.txt

Frequently asked questions

Does Osty replace Wazuh?

No. Wazuh stays your host agent, SIEM and vulnerability detector. Osty reads its inventory and findings, proves which findings matter and ships the fixes.

Does Osty change Wazuh's severity values?

No. The Wazuh severity is stored verbatim in raw_severity. Osty's normalised severity comes from the matched authoritative advisory and is stored separately.

Why do Wazuh hosts stay in Osty after the agent disconnects?

Hosts keep a 30-day presence window, so a host that is offline during a collection still appears in blast-radius and stale-deploy reports.

See your fleet in 10 minutes

Connect a read-only GitHub App and cloud role. Osty installs nothing in your environment and writes nothing to your repositories, and the report shows false positives, stale deploys and unowned workloads.