talira

A vulnerability scanner for container images and filesystems.

open sourceApache-2.0self-hostablefree

Grype is Anchore's open source command-line scanner that finds known vulnerabilities in container images (Docker, OCI and Singularity), directories and SBOMs, including SBOMs made by Anchore's Syft. It matches OS packages from Alpine, Debian, Ubuntu, RHEL, Amazon Linux, Wolfi and others, and language packages for Go, Java, JavaScript, Python, Ruby, Rust, .NET and PHP, against a free database Anchore builds from vendor feeds, GitHub Security Advisories and the NVD, enriched with EPSS scores and CISA's KEV catalog. Results come as a table, JSON, CycloneDX, SARIF or a template; --fail-on sets the exit code for CI, and OpenVEX documents and ignore rules filter findings. It's Apache-2.0, with commercial support and Anchore Enterprise from Anchore; compare Trivy and Docker Scout.

Ways to install

Problems it solves

  • scan a container image for known CVEs before we push it to production
  • fail the CI build when an image has a critical or high severity vulnerability
  • check an SBOM we already generated for vulnerable packages without rescanning the image
  • find vulnerable npm, PyPI, Maven, Go and Cargo dependencies in a project directory
  • upload container vulnerability findings to GitHub code scanning as SARIF
  • prioritise which CVEs to fix first using exploit likelihood and known-exploited lists
  • suppress vulnerabilities that don't affect us with a VEX document instead of ad-hoc ignore lists
  • only show vulnerabilities that already have a fix available
  • a free open source alternative to commercial container image scanners
  • scan images straight from a registry, a local Docker daemon or an OCI archive
  • explain why a specific CVE was reported for my image
  • import a vulnerability database file instead of having the scanner download it at scan time

Features

  • scans container images (Docker, OCI, Singularity), directories, and SBOMs (sbom: scheme or piped Syft JSON)
  • scans images from a local containers-storage store on Linux
  • OS package support: Alpine, Debian, Ubuntu, RHEL, Oracle Linux, Amazon Linux, Wolfi, Chainguard, SUSE and more
  • language ecosystems: Ruby, Java, JavaScript, Python, .NET, Go, PHP, Rust and more
  • data from OS vendor feeds, GitHub Security Advisories, NVD and Bitnami, enriched with EPSS and CISA KEV
  • output: table, JSON, CycloneDX (XML and JSON), SARIF, Go templates
  • --fail-on severity threshold sets exit code 2
  • --only-fixed, --only-notfixed and --ignore-states filters
  • OpenVEX documents with --vex
  • grype explain for CVE IDs
View 3 more
  • grype db commands: check, update, import, diff, search, status, providers
  • database checked and downloaded automatically, published free by Anchore
  • installs via script, Docker, Homebrew, MacPorts, Winget, Scoop, Snap, Arch package, .deb and .rpm

Limitations

  • Scans fail with a stale vulnerability database: by default Grype fails when its database is more than 5 days old3

Capabilities

Has a command line toolplan not known

Alternatives

The same job

These do what Grype does.

  1. Trivy Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
  2. Docker Scout Finds vulnerabilities, outdated packages and compliance problems in container images
  3. Clair Vulnerability Static Analysis for Containers
  4. bundler-audit Patch-level verification for Bundler
  5. OWASP Dependency-Check Software composition analysis that finds publicly disclosed vulnerabilities in a project's dependencies
  6. debsecan Debian Security Analyzer: lists the vulnerabilities that affect a particular Debian installation

Compare Grype with the top 3