Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Trivy Knowledge Patch?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/nevaberry-trivy-knowledge-patch-nevaberry-plugins)
---
name: trivy-knowledge-patch
description: Trivy
version: "0.76.2"
license: MIT
metadata:
author: Nevaberry
---
# Trivy compatibility guidance
Load this skill when upgrading Trivy, configuring scans, adapting report
consumers, or investigating dependency, misconfiguration, SBOM, and secret
scan behavior. Use the quick references below and the topic files for details.
## Reference index
| Reference | Topics |
| --- | --- |
| [CLI, reports, and runtime](references/cli-reports-and-runtime.md) | Commands, configuration, report fields, plugins, WebAssembly, release verification, security updates |
| [Dependencies and licenses](references/dependencies-and-licenses.md) | Java, Go, Python, JavaScript, Rust, .NET, Julia, Composer, license classification |
| [Images, registries, and OS](references/images-registries-and-os.md) | Registry access, layers, OS overrides, advisory matching, distributions, Kubernetes collection |
| [Misconfiguration and IaC](references/misconfiguration-and-iac.md) | Check metadata, ignores, Terraform, OpenTofu, cloud resources, Helm, Dockerfiles |
| [SBOM, VEX, and attestations](references/sbom-vex-and-attestations.md) | Package graphs, CycloneDX, SPDX, Sigstore bundles, VEX discovery and evaluation |
| [Secrets and filtering](references/secrets-and-filtering.md) | Exclusions, credential rules, match behavior, Rego finding filters |
## Breaking changes, deprecations, and changed defaults
### Commands and required files
Trivy 0.53.0 removed `trivy aws`. Remove that invocation from scripts when
upgrading from earlier releases. Cloud functionality is available through
`trivy cloud`.
Trivy fails if a file explicitly supplied through `--config` or `--ignorefile`
is missing. Trivy 0.58.0 handles empty ignore files.
`trivy sbom` rejects `--skip-dir` and `--skip-files`.
Trivy validates the URL passed to `--server`. Supply a scheme, for example
`--server http://localhost:4954`.
### Full package inventories in JSON
`--list-all-pkgs` defaults to `true`, so JSON reports include packages without
findings. To omit the full package list, set the flag explicitly to false:
```sh
trivy image --format json --list-all-pkgs=false alpine:3.22
```
### Misconfiguration checks and mappings
Deprecated misconfiguration checks are disabled by default. Check whether a
rule has been deprecated if it stops producing findings after an upgrade.
Individual checks can be disabled by check ID.
Update misconfiguration provider mappings to use `ID` in place of `AVDID`.
The `--skip-*` path filters apply to included modules as well as the root
configuration in misconfiguration scans.
### Report consumers and build integration
Data previously stored in SPDX `AttributionTexts` is written as annotations.
Update consumers that read that metadata. SPDX output uses `NOASSERTION` for
`licenseDeclared` and `licenseConcluded` on non-library packages.
The server's `/version` endpoint omits `JavaDB` and `CheckBundle`; account for
their absence. Trivy validates report template filename extensions and stops
forwarding WebAssembly module standard output to its own standard output.
Trivy's Docker image release configuration uses `dockers_v2`. Migrate
downstream copies of that release configuration to the new key.
### Kubernetes collection
Kubernetes scans cover multiple containers in a workload; Trivy 0.57.0 marks
this as a breaking change. Scans also cover controllers and discover
components from namespaced resources.
## Configure image access and vulnerability matching
`--distro` overrides automatic OS detection for vulnerability matching and
updates OS package PURLs to reflect the override. Use `--vuln-severity-source`
to choose the advisory source for severity ratings. Missing vulnerability
details result in `UNKNOWN` severity.
Container image scans can use configured registry mirrors and resolve a Docker
context to locate the daemon. GHCR artifact downloads use `GITHUB_TOKEN` when
set. `trivy registry login` authenticates without requesting a repository scope.
Use `--cacert` to supply a CA certificate file for TLS verification:
```sh
trivy image --cacert ./ca.pem registry.example.com/app:latest
```
Trivy accepts dual-stack ECR endpoints. Remote image retrieval rejects
unsupported artifact types; use a container image reference when the registry
also stores other artifacts. OCI artifact filenames are validated.
Trivy 0.58.0 uses `mirror.gcr.io` as the default registry for the `trivy-checks`
bundle. Account for that host when configuring registry access.
The common OS vulnerability detector skips advisory matching for packages
identified as third-party. Packages covered by a vulnerability driver's own
advisory feed remain eligible for matching. CentOS Stream scans can complete
while skipping OS vulnerability detection for that distribution.
## Resolve dependencies and licenses
Maven dependency resolution honors remote repositories, proxy configuration,
and the `<mirrors>` block in `settings.xml`. Mirrors can also be defined in
`trivy.yaml`. A remote Maven repository HTTP 429 causes a fatal scan error
when resolving dependencies from `pom.xml`.
Maven releases and snapshots default to enabled when the corresponding
`<enabled>` setting is omitted in repositories in `settings.xml` or `pom.xml`.
Dependencies from `pom.xml` can have empty versions when unresolved.
Python scans support uv projects, including development and optional
dependencies, Poetry v2, and PEP 751 `pylock.toml`. Pip requirement ranges use
the minimum version; comma-separated specifiers in one entry are supported.
JavaScript scanning reads `bun.lock` and multi-document `pnpm-lock.yaml` files.
pnpm package IDs use the lockfile snapshot string. Cargo scanning supports
workspace member globs and versions inherited from the workspace.
Go binary scans can read versions from the ELF symbol table with `-trimpath`
and recognize Go 1.26 version formats with `GOEXPERIMENT`. When `go.mod` has a
`toolchain` directive, that directive determines the `stdlib` package version.
License scans honor `--pkg-types` and custom license classifications, including
classifications for licenses identified from text. To ignore licenses in an
SPDX expression, list their SPDX IDs individually. Category detection treats
an expression joined by `WITH` as a single license.
## Evaluate infrastructure and suppress findings
Terraform module loading disables Git terminal prompts. Supply credentials for
private modules through noninteractive Git authentication. Plan scans can load
remote modules from the `.terraform` cache. Trivy preserves the original paths
of remote submodules loaded from that cache.
Missing variables are treated as unknown. Terraform analysis allows null values
only for variables. A `dynamic` block is not expanded when its `for_each` value
is unknown. Plan scans skip resource changes without an `after` value.
Terraform filesystem functions reject paths outside the permitted filesystem
scope. OpenTofu native file extensions, module detection, and language blocks
are supported. Ansible misconfiguration scanning has initial support.
Dockerfile and Helm scans honor inline ignore comments. A check alias in
`.trivyignore` can suppress its finding, and ignore rules match check IDs
case-insensitively. An ignore marker takes effect only when its value is known
and non-null. Helm path-scoped ignores honor the chart's subdirectory path.
Helm chart metadata is identified by the exact filename `Chart.yaml`. Once a
chart is detected, the scan includes `.yml` files in it. Use `sslCertDir` to
supply Helm with a directory of SSL certificates.
## Consume reports, SBOMs, and VEX
Use `ArtifactID` to identify a scan target across reports. Image artifact IDs
account for registry and repository; individual reports have UUIDv7 `ReportID`
values. Vulnerability fingerprints support correlation across reports.
JSON reports record the Trivy version; in client/server scans, they also include
the server version. `AnalyzedBy` identifies the analyzer that detected a package.
Container image reports include layer metadata and the image reference.
Request the full Kubernetes report with `trivy k8s --report all cluster`.
Kubernetes summary reports omit passed misconfiguration checks; table-format
scan reports include a summary alongside individual findings.
CycloneDX 1.7 is supported. Scanning CycloneDX and writing updated vulnerability
information back to CycloneDX preserves the input structure. Available CVSS v4
ratings are included in CycloneDX vulnerability output.
Image scans can use SBOMs packaged in Sigstore bundles. Trivy also supports
SPDX SBOM attestations. Trivy can discover OCI-hosted VEX and OpenVEX carried
in generic in-toto OCI referrers, and load external VEX referenced by CycloneDX.
Configure TLS separately for each VEX repository. Trivy loads documents from
within the repository directory and rejects non-local repository names.
Trivy retains vulnerability findings for packages whose VEX evaluation encounters
a dependency cycle. Visits are tracked separately for each dependency path,
so shared packages can be evaluated along each path.
## Scan secrets and filter findings
Secret scanner configuration can customize skipped directories, files, and
extensions. Secret scans skip their own configuration file and Python package
metadata directories ending in `.dist-info`. Length filtering means short
example values may stop producing findings.
Credential rules cover Azure credentials, Maven passwords and passphrases in
`settings.xml` and `settings-security.xml`, Symfony's default secret key,
OpenAI credentials, and stateless GitHub App installation tokens.
Rego ignore policies can filter findings by type. The experimental
`ExperimentalModifiedFindings` JSON collection can include modified license
and secret findings filtered by Rego.
## Update deployed binaries and containers
Upgrade to Trivy v0.76.2 and redeploy the official container image. It uses
Alpine 3.24.3 with fixes for `musl` and `musl-utils` and includes fixed `libcurl`
and `brotli-libs` from the Alpine `v3.24` repository.
Official v0.76.1 binaries use Go 1.27.3 with the certificate distrust mitigation
for CVE-2026-111943; official images include an updated Alpine CA trust store
rejecting affected chains. For source builds, use Go 1.27.3 or later and an
up-to-date runtime CA trust store. The runtime reference has the security
advisories, dependency fixes, and release signature bundle filenames.