Skip to content
Back to skills

Trivy Knowledge Patch

ASecurity

Trivy

  • 25 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentjavascriptpythonrustgojavaexpressdockerkubernetesawsazure

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 9 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Nevaberry/nevaberry-plugins --skill trivy-knowledge-patch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Trivy Knowledge Patch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Trivy Knowledge Patch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nevaberry-trivy-knowledge-patch/badge)](https://www.skillsdirectory.com/skills/nevaberry-trivy-knowledge-patch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: trivy-knowledge-patch
description: Trivy
version: "0.76.2"
license: MIT
metadata:
  author: Nevaberry
---


# Trivy Knowledge Patch

Use this skill when updating Trivy invocations, configuring scans, authoring
misconfiguration checks, or consuming reports, SBOMs, and VEX documents.
It covers command compatibility, artifact handling, dependency analysis,
misconfiguration evaluation, vulnerability matching, and output formats.
Load the reference matching the task for detailed behavior and version attribution.

## Reference index

| Reference | Topics |
| --- | --- |
| [Artifacts and registries](references/artifacts-and-registries.md) | Registry authentication and mirrors, image retrieval, layers, VM inputs, Kubernetes collection, release signatures |
| [CLI and runtime](references/cli-and-runtime.md) | Command and configuration changes, plugins, WebAssembly, diagnostics, database access, Go integration, security updates |
| [Dependencies and licenses](references/dependencies-and-licenses.md) | Maven, JARs, JavaScript, Python, Go, Cargo, Composer, .NET, package metadata, license expressions |
| [IaC and misconfigurations](references/iac-and-misconfigurations.md) | Check metadata and ignores, Rego, Terraform, OpenTofu, Helm, Ansible, Dockerfiles, cloud resources |
| [SBOM and reports](references/sbom-and-reports.md) | Package inventories, CycloneDX, SPDX, JSON, report identifiers, repository metadata, SARIF, JUnit, templates |
| [Secrets and VEX](references/secrets-and-vex.md) | Secret exclusions and credential rules, VEX discovery, repository configuration, dependency evaluation |
| [Vulnerabilities and OS](references/vulnerabilities-and-os.md) | Distribution overrides, severity sources, advisory matching, package providers, OS detection and lifecycles |

## Breaking changes and deprecations

- `trivy aws` was removed. Remove that invocation from scripts when upgrading
  from earlier releases.
- Trivy fails if a file explicitly supplied through `--config` or `--ignorefile`
  is missing. Empty ignore files are handled.
- `trivy sbom` rejects `--skip-dir` and `--skip-files`.
- `--list-all-pkgs` defaults to `true`, so JSON reports include packages without
  findings. Set it explicitly to false to omit the full package list:

```sh
trivy image --format json --list-all-pkgs=false alpine:3.22
```

- Deprecated misconfiguration checks are disabled by default. Check whether a
  rule has been deprecated if it stops producing findings after an upgrade.
- Update misconfiguration provider mappings to use `ID` in place of `AVDID`.
- In misconfiguration scans, `--skip-*` path filters apply to included modules
  as well as the root configuration.
- Kubernetes scans cover multiple containers in a workload; this was marked as
  a breaking change.
- SPDX metadata previously stored in `AttributionTexts` is written as annotations.
  Update consumers that read that metadata.
- The server's `/version` endpoint omits `JavaDB` and `CheckBundle`.
- Trivy 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.

## Validation and failure behavior

- Use a scheme in the URL passed to `--server`, such as
  `--server http://localhost:4954`; Trivy validates that URL.
- An HTTP 429 from a remote Maven repository causes a fatal scan error when
  resolving dependencies from `pom.xml`.
- Image scans fail early when the combined image layer size exceeds the scan
  limit. Remote image retrieval rejects unsupported artifact types; use a
  container image reference when scanning images from a registry containing
  other artifacts.
- OCI artifact filenames are validated, and invalid names are rejected.
- Report template filenames have their extensions validated when loaded from
  files. VEX repository configuration rejects non-local names.
- Terraform filesystem functions reject paths that escape the permitted
  filesystem scope during misconfiguration scans.

## Security maintenance

Official Trivy v0.76.1 binaries use Go 1.27.3 with the certificate distrust
mitigation for CVE-2026-111943. Official container images have an updated Alpine
CA trust store that rejects the affected certificate chains. Upgrade to v0.76.1
and redeploy containers. For source builds, use Go 1.27.3 or later with an
up-to-date runtime CA trust store.

Upgrade to Trivy v0.76.2 and redeploy the official container image for the Alpine
3.24.3 rebuild with fixes for `musl` and `musl-utils` (CVE-2026-107891), fixed
`libcurl` (24 CVEs, including high-severity CVE-2026-92392), and `brotli-libs`
(CVE-2026-111497) from the Alpine `v3.24` repository.
Trivy v0.76.2 uses `golang.org/x/net` v0.62.0 to fix CVE-2026-78661 and
CVE-2026-97045 in `golang.org/x/net/html`, and `github.com/go-jose/go-jose/v4`
v4.1.6 to fix GHSA-mgcc-cww5-fp2q.

## Scan selection and registry access

- `--distro` overrides automatic OS detection for vulnerability matching and
  updates OS package PURLs to reflect the override.
- `--vuln-severity-source` selects the advisory source for severity ratings.
  Missing vulnerability details result in `UNKNOWN` severity.
- 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.
- Container image scans can pull through configured registry mirrors and resolve
  a Docker context to locate the Docker 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
```

- Kubernetes scans emit the full report when requested with `--report all`,
  for example `trivy k8s --report all cluster`. Summary reports omit passed
  misconfiguration checks.
- Cloud functionality is available through `trivy cloud`.

## Misconfiguration evaluation and suppressions

- Disable individual checks by their check IDs. A check alias in `.trivyignore`
  can suppress the corresponding finding; ignore rules match check identifiers
  without regard to case.
- Dockerfile and Helm scans honor inline ignore comments. Path-scoped ignores
  honor the Helm chart's subdirectory path.
- An ignore marker takes effect only when its value is known and non-null.
  Boolean check metadata is evaluated as booleans.
- Check authors can provide `examples` metadata and declare a minimum Trivy
  version for running a check. Rego ignore policies can filter findings by type.
- Missing variables are unknown values. Terraform analysis permits null values
  only for variables, and skips `dynamic` block expansion when `for_each` is
  unknown.
- Terraform expressions are evaluated per module instance and repeated-block
  instance. A map used by `for_each` produces one resource instance per key.
- Git disables terminal prompts when loading Terraform modules; supply
  private-module credentials through noninteractive Git authentication.
- Terraform plan scans can load remote modules from the `.terraform` cache,
  preserving original remote submodule paths. Resource changes without an
  `after` value are skipped.
- Misconfiguration scans recognize OpenTofu file extensions and language blocks,
  and recognize `.tofu` files when detecting modules. Ansible misconfiguration
  scanning has initial support.
- Helm chart detection requires the exact filename `Chart.yaml`; once a chart is
  detected, scanning includes `.yml` files in it.
- Image misconfiguration checks give `.Config.User` precedence over `USER`
  instructions in `.History`. Image history scans skip `AVD-DS-0007`.

## Dependency and license workflows

- Maven resolution uses repositories declared in `settings.xml`; in both that
  file and `pom.xml`, releases and snapshots default to enabled when the
  corresponding `<enabled>` setting is omitted.
- Maven resolution honors proxies and `<mirrors>` in `settings.xml`. Define
  Maven repository mirrors in `trivy.yaml` to direct Java dependency resolution
  through those mirrors.
- Maven dependency resolution inherits properties from parent POM fields and
  propagates repositories declared in upper POMs to dependencies. Declared
  exclusions are preserved during dependency processing.
- Python scanning supports uv projects with development and optional dependencies,
  Poetry v2, and PEP 751 `pylock.toml`. Requirements use the minimum version from
  a range and accept comma-separated version specifiers in a single entry.
- JavaScript scanning reads `bun.lock` and multi-document `pnpm-lock.yaml` files.
  pnpm package IDs use the lockfile snapshot string; pnpm license matching uses
  the default package ID format, including for snapshot-specific IDs.
- Trivy can read version information from the ELF symbol table of Go binaries
  built with `-trimpath`. Go binary scans recognize the version format produced
  by Go 1.26 builds that use `GOEXPERIMENT`.
- .NET analysis builds `.deps.json` dependency graphs, identifies the root project
  from the graph, and detects runtimes bundled in self-contained deployments.
- 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.
  License category detection treats an expression joined by `WITH` as one license.

## SBOM and report consumers

- 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 generating Trivy version; client/server reports also
  include the server version.
- JSON can export modified findings through `ExperimentalModifiedFindings`,
  including license and secret findings filtered by Rego.
- CycloneDX supports specification 1.7 and available CVSS v4 vulnerability ratings.
  Scanning CycloneDX and writing updated vulnerability information to CycloneDX
  preserves the input SBOM structure.
- SPDX uses `NOASSERTION` for `licenseDeclared` and `licenseConcluded` on
  non-library packages, and can serialize SBOMs without a root component.
- SPDX output records licenses outside the SPDX License List in
  `hasExtractedLicensingInfos` and writes extracted license text verbatim.
- Image scans can use SBOMs packaged in Sigstore bundles, and Trivy supports SPDX
  SBOM attestations. SBOM discovery excludes PEP 770 SBOMs under `.dist-info/sboms/`.
- SARIF preserves original `shortDescription` and `fullDescription` text without
  HTML escaping. Git scan SARIF sets `ROOTPATH` to the repository root.

## Secret scans and VEX

- Secret scanner configuration customizes skipped directories, files, and file
  extensions. Secret scans skip their own configuration file and Python package
  metadata directories ending in `.dist-info`.
- Secret detection filters matches by length, so short example values may stop
  producing findings. Multiline matches have corrected finding line numbers.
- Secret rules cover Azure credentials, OpenAI credentials, Symfony's default
  secret key, stateless GitHub App installation tokens, and Maven passwords and
  passphrases in `settings.xml` and `settings-security.xml`.
- CycloneDX scans can load external VEX documents referenced by the SBOM.
  VEX discovery supports OCI artifacts and OpenVEX in generic in-toto OCI referrers.
- Configure TLS separately per VEX repository. VEX documents load from within
  their repository directory.
- OpenVEX statements can target components below the SBOM root product.
- VEX evaluation retains findings when it encounters a dependency cycle and
  tracks visits separately per dependency path for shared dependencies.

Files in this skill

  • SKILL.md10.6 KB
  • coverage.json1.7 KB
  • references/artifacts-and-registries.md4 KB
  • references/cli-and-runtime.md3.1 KB
  • references/dependencies-and-licenses.md8.3 KB
  • references/iac-and-misconfigurations.md8.1 KB
  • references/sbom-and-reports.md2.8 KB
  • references/secrets-and-vex.md2 KB
  • references/vulnerabilities-and-os.md3.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.