grype
TLDR
Scan container image
SYNOPSIS
grype [options] source
DESCRIPTION
grype is a vulnerability scanner for container images and filesystems. It identifies known security vulnerabilities in packages and dependencies by comparing against vulnerability databases.
The tool integrates with CI/CD pipelines and produces reports in various formats. It works with the same sources as Syft for comprehensive software composition analysis.
PARAMETERS
-o, --output format
Output format (table, json, cyclonedx, sarif).--only-fixed
Show only vulnerabilities with fixes.--fail-on severity
Fail if vulnerability at severity found.--add-cpes-if-none
Generate CPEs if missing.-q, --quiet
Suppress output.--by-cve
Group by CVE.--db location
Database location.--exclude glob
Exclude paths.
SOURCE TYPES
image: Container image
dir:: Local directory
file:: Single file
sbom:: SBOM file
registry:: Remote registry
CAVEATS
Database updates needed regularly. False positives possible. Coverage depends on ecosystem. Large images scan slowly.
HISTORY
grype was created by Anchore as part of their open source security tooling alongside Syft. It emerged around 2020 to address container security scanning needs with a focus on accuracy and integration.


