# Trivy Operator integration

Integrations / Scanners. Breadcrumb: [Home](https://osty.dev/) / [Integrations](https://osty.dev/integrations) / Trivy Operator

Trivy Operator keeps scanning your cluster; Osty proves which of its findings matter. Osty resolves each advisory against Debian, Ubuntu, Alpine and RHEL security data and native-compiler call graphs, and suppresses a finding only on a provable backport, build-stage exclusion or unreachability. A native Trivy Operator collector is not shipped yet; this guide covers what runs today.

Table: How Osty classifies a scanner finding

| Osty classification | Evidence required | Still actionable? |
| --- | --- | --- |
| `ELIMINATED_DISTRO_BACKPORT` | A distro advisory resolves the installed package version as `FIXED_BACKPORT` or `NOT_AFFECTED`. | No |
| `ELIMINATED_BUILD_STAGE_ONLY` | The package is in the `BUILD_TIME` SBOM and absent from the `RUNTIME_IMAGE` SBOM. | No |
| `ELIMINATED_STATICALLY_UNREACHABLE` | A native compiler call graph proves the vulnerable symbol is unreachable. | No |
| `IMPORTED_UNCERTAIN` | Analysis failed or no analyzer exists, as for OS packages. | Yes |
| Actionable | None of the above. | Yes |

Explain one Trivy CVE against Osty's evidence:

```bash
osty explain --cve CVE-2024-5535 --cache /var/lib/osty/edge-cache.sqlite --json
```

## What ships today, and what does not?

Table: Trivy Operator integration status

| Piece | Status |
| --- | --- |
| `TRIVY` scanner kind in Osty's scanner observation store | Shipped. Raw severity is kept verbatim and normalised from the matched authoritative advisory. |
| Collector that reads `VulnerabilityReport` resources from the cluster | Not shipped. AWS Inspector is the scanner feed collected automatically today. |
| Osty's own OCI SBOM extraction for the same images | Shipped: `dpkg`, `apk`, RPM, `zstd` layers and in-image npm and PyPI metadata. |
| Offline per-advisory explanation with `osty explain --cve` | Shipped. |

## How do I check Trivy findings against Osty today?

List the CVE IDs Trivy Operator reports for a workload, then ask Osty for its evidence on each one. `osty explain` reads only the local signed edge cache and never calls the network.

Pull CVE IDs from Trivy Operator and explain each with Osty:

```bash
kubectl get vulnerabilityreports -n payments -o json \
  | jq -r '.items[].report.vulnerabilities[].vulnerabilityID' | sort -u > cves.txt
while read -r cve; do
  osty explain --cve "$cve" --cache /var/lib/osty/edge-cache.sqlite --json
done < cves.txt
```

For repository-level findings, the read-only X-Ray applies the same classification across lockfiles and reports how many raw findings each proof eliminated.

Read-only X-Ray with compiler reachability:

```bash
osty xray --repo . --reachability auto --format markdown --out /tmp/xray.md
```

## Why does Trivy report CVEs that a distro already fixed?

Distributions often backport a security fix into an older upstream version and bump only the package release, for example `1.1.1n-0+deb11u5`. A version-range match against the upstream fix version reports the CVE as open. Osty resolves the exact distro package version against the distro's own tracker, which records the fixed release.

Heuristic or Tree-sitter matches never suppress a finding of any severity in Osty, and a failed compiler run degrades loudly to `IMPORTED_UNCERTAIN`.

## Frequently asked questions

### Should I remove Trivy Operator when I adopt Osty?

No. Osty is designed to ingest existing scanners rather than replace them.

### Can Osty suppress a Trivy finding because the code looks unused?

No. Only native-compiler call graphs may prove unreachability; OS packages have no analyzer and stay actionable unless a backport is proven.

### Where does Osty get distro advisory data?

From signed advisory snapshots built from Debian, Ubuntu, Alpine and RHEL security trackers.

## Related pages

- [Plan](https://osty.dev/plan): Upgrade intelligence: distro backport normalization, ELF and glibc ABI floors, SPDX license shifts, breaking call sites and topological rollout waves.
- [Free X-Ray](https://osty.dev/xray): Free 10-minute read-only Day-1 X-Ray through a read-only GitHub App and cloud role: false positives, stale deploys and unowned workloads.
- [Osty vs Snyk](https://osty.dev/compare/osty-vs-snyk): Proof-based suppression compared with priority scores.
- [Kubernetes integration](https://osty.dev/integrations/kubernetes): Deploy `osty-edge` in the same cluster as Trivy Operator.

## 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.

Get a free X-Ray: https://osty.dev/xray

Written by Osty Engineering. Published 2026-11-29. Updated 2026-11-29.

Canonical: https://osty.dev/integrations/trivy-operator
