Grype
$ grype Official Low Riskgrype scans container images, local directories, and SPDX/CycloneDX SBOM files for known CVEs. Agents pair it with syft or use grype dir:. -o json -q --only-fixed to focus exclusively on actionable vulnerabilities with patched releases.
brew install grype Local CVE matching against SBOMs or project lockfiles runs fast in grype with structured -o json output and zero MCP overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports -o json, -o sarif, -q quiet mode, --only-fixed, and --fail-on <severity> exit gating.
- Native
-o json,-q, and--only-fixedfiltering
Strictly read-only against scanned directories, images, and SBOMs; only writes its local DB cache.
- Zero mutation of target codebases
Single Go binary via brew, go install, Docker, and GitHub releases.
- Cross-platform static binary
Pairs cleanly with syft SBOM pipelines and --only-fixed trims unactionable CVE noise.
- Fast SBOM-driven vulnerability matching
Official Anchore OSS project (anchore/grype) with continuous feed updates.
- Vendor-backed Apache-2.0 repository
Clear README and --help covering SBOM inputs, .grype.yaml ignores, and CI gating.
- Comprehensive README and CLI help
Security, Auth & Guardrails
None required for local directories and SBOMs; caches vulnerability DB locally under ~/.cache/grype.
100% free and open-source (Apache-2.0).
# Grype Agent Rules - Always pass `-o json -q` (and `--only-fixed` when prioritizing upgrades) to keep output concise and actionable. - Pair with `syft` SBOMs (`grype sbom:...`) when scanning the same artifact repeatedly.
Agent-Ready Command Recipes
Safe Read-Only Queries
grype dir:. -o json -q --only-fixed
Returns JSON matches limited to vulnerabilities that have an upstream fix available.
grype sbom:./sbom.spdx.json -o json -q
Evaluates a Syft/SPDX SBOM rapidly against the local vulnerability database.
Strengths for Agents
- +
--only-fixedand-o json -qdeliver actionable, machine-readable CVE remediation lists. - + Seamless integration with SPDX and CycloneDX SBOMs from
syft.
Caveats & Pitfalls
- ! Initial run fetches the vulnerability DB unless pre-cached or
GRYPE_DB_AUTO_UPDATE=falseis set.