grype <image>Scans a container image (pulled from a registry or the local Docker daemon) and lists vulnerable packages with severity and fixed versions.
Example
grype nginx:1.27Anchore’s vulnerability scanner for container images and filesystems; pairs naturally with Syft SBOMs.
brew install grypegrype <image>Scans a container image (pulled from a registry or the local Docker daemon) and lists vulnerable packages with severity and fixed versions.
Example
grype nginx:1.27grype dir:<path>Scans a directory on disk, such as a project with lock files.
Example
grype dir:./appgrype sbom:<file>Scans an existing SBOM instead of the image — fast and repeatable.
Example
grype sbom:./sbom.spdx.jsongrype docker-archive:<file>Scans an image saved with docker save.
Example
grype docker-archive:image.targrype registry:<image>Pulls directly from a registry without needing a Docker daemon.
Example
grype registry:ghcr.io/org/app:latestgrype <image> --scope all-layersAlso reports packages removed in later layers but still present in the image.
Example
grype python:3.12 --scope all-layersgrype <image> --platform <os/arch>Scans a specific platform variant of a multi-arch image.
Example
grype alpine:3.20 --platform linux/arm64grype <image> --only-fixedShows only vulnerabilities that already have a fix available — the actionable list.
Example
grype node:20 --only-fixedgrype <image> --fail-on <severity>Exits with status 1 if anything at or above the severity is found, failing a CI job.
Example
grype app:latest --fail-on highgrype <image> --ignore-states <states>Hides findings whose fix state you have accepted.
Example
grype app:latest --ignore-states wont-fix,unknowngrype <image> -c <config>Uses a config file, for example with an ignore list of accepted CVEs.
Example
grype app:latest -c .grype.yamlgrype <image> -o jsonMachine-readable JSON with full match details.
Example
grype app:latest -o json > grype.jsongrype <image> -o sarifSARIF for GitHub code scanning and other tools.
Example
grype app:latest -o sarif > grype.sarifgrype <image> -o cyclonedxA CycloneDX document with vulnerability data.
Example
grype app:latest -o cyclonedxgrype <image> -o template -t <file>Renders a custom Go template, for example an HTML report.
Example
grype app:latest -o template -t html.tmpl > report.htmlgrype db statusShows the vulnerability database version and when it was built.
grype db updateDownloads the latest database.
grype db checkReports whether a newer database is available.
grype explain --id <cve> < <json>Explains why a CVE matched and which packages it affects.
Example
grype app:latest -o json | grype explain --id CVE-2024-3094Generates a software bill of materials (SBOM) from container images and filesystems in SPDX, CycloneDX and other formats.
Aqua’s all-in-one scanner for vulnerabilities, misconfigurations, secrets and licenses in container images, filesystems, repositories, IaC and Kubernetes.
An open-source service for static analysis of vulnerabilities in container images, typically used with registries via clairctl.