PROVIDER - Vulnerability scanning for images and filesystems
Grype
Grype scans images, directories and SBOMs, reusing Syft inventories with an auto-updating vulnerability database and severity thresholds for CI gates across 5+ output formats; it gives no fix advice and coverage depends on upstream feed timing.
4.3pts
Service Overview
Grype is Anchore's open source vulnerability scanner, designed to pair with the same project's Syft SBOM generator. It reads an image or dependency inventory, compares it with a vulnerability database and reports findings with severities.
In the development tools category it covers supply chain scanning: unlike Hadolint, which reviews Dockerfile style, Grype asks what packages an image actually contains and whether they carry known vulnerabilities.
Key Strengths
- Flexible targets: images, directories and SBOMs
- Syft synergy: reuses SBOMs to avoid duplicate parsing
- Automatic database updates: offline runs fall back to a local cache
- Gate friendly: failure thresholds by severity
- Rich output: 5+ formats fit different systems
Product Ecosystem
Platform capabilities
Image and directory scanning, SBOM consumption, database updates, severity thresholds, ignore rules and multi-format reports.
Integrations
Works with Syft, GitHub Actions, GitLab CI, Kubernetes admission control and Anchore Enterprise.
Typical scenarios
Pre-release image scans, CI security gates, SBOM vulnerability checks and base image version governance.
Limitations
- Point-in-time data: new disclosures require rescans
- No fix advice: version selection stays manual
- Slower first runs: multi-layer images take time
- Limited advanced policy: complex governance needs the commercial edition
Use Cases
- Image release gates (★★★★★): cheap in combination with CI
- SBOM vulnerability checks (★★★★★): consume inventories directly
- Base image governance (★★★★☆): compare candidates by finding counts
- Runtime protection (★★☆☆☆): pair with runtime security products
Pricing
| Item | Price | Notes |
|---|---|---|
| Grype itself | $0 | Apache 2.0 open source, commercial use allowed |
| Vulnerability database | $0 | Public feeds sync for free |
| Anchore Enterprise | Contact sales | Policy engine and central governance |
FAQ
How does Grype differ from Trivy?
Capabilities are close; Grype integrates tightly with the Syft SBOM ecosystem, while Trivy covers more ground including configuration scanning.
Can I scan an SBOM without the image?
Yes, pass sbom: as the input to compare an inventory against the database.
How do I ignore accepted risks?
Add ignore rules by CVE identifier or package name in .grype.yaml.
How does offline use work?
Update the database beforehand and point scans at the local database path.
Code Examples
# Scan an image with a severity threshold
grype nginx:1.25 --fail-on high
# Generate an SBOM first, then scan it for reuse
syft nginx:1.25 -o cyclonedx-json=sbom.json
grype sbom:sbom.json -o sarif > report.sarif
# Scan a local directory
grype dir:. --only-fixed
# .grype.yaml
fail-on-severity: high
ignore:
- vulnerability: CVE-2024-0000
reason: "unreachable code path"
Community & Resources
- Source repository: https://github.com/anchore/grype
- Syft project: https://github.com/anchore/syft
- Documentation: https://oss.anchore.com/docs/
Articles
- 01 GitLab CI/CD Best Practices: From Beginner to Production-Grade Pipelines 07-18
- 02 Prometheus Monitoring System Setup: From Metric Collection to Alert Notifications 07-18
- 03 Ansible Automation Ops Guide: From Configuration Management to Application Deployment 07-18
- 04 Docker Beginner Tutorial: From Installation to Containerized Web Deployment 07-18
- 05 Developer Tools Panorama: What Version Control, Package Managers, CI/CD and Containers Solve 08-12
- 06 Upgrading SVN to 1.8 on CentOS 7 04-02
- 07 Git for Beginners: Working Directory, Staging Area, Repository and Core Commands 08-12
- 08 GitHub Actions CI/CD Tutorial: Automated Build, Test, and Deployment 07-18
- 09 GitHub Copilot Code Review Is Now Generally Available 08-05
- 10 API Integration Guide: REST vs GraphQL Comparison and Selection 07-18