Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Grype

$ grype Official Low Risk
Anchore · Security & Secrets · Apache-2.0 · macos / linux / windows

grype 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.

FCRS-1.0 Score
91 /100
Excellent
Medium Confidence
Zero-Friction Install
brew install grype
CLI vs MCP Decision CLI Preferred vs MCP

Local CVE matching against SBOMs or project lockfiles runs fast in grype with structured -o json output and zero MCP overhead.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
✓ Read-Only Mode
— NO_COLOR Clean
— Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 23 / 25

Supports -o json, -o sarif, -q quiet mode, --only-fixed, and --fail-on <severity> exit gating.

  • Native -o json, -q, and --only-fixed filtering
Trust & Safety 23 / 25

Strictly read-only against scanned directories, images, and SBOMs; only writes its local DB cache.

  • Zero mutation of target codebases
Setup & Portability 14 / 15

Single Go binary via brew, go install, Docker, and GitHub releases.

  • Cross-platform static binary
Utility & Efficiency 13 / 15

Pairs cleanly with syft SBOM pipelines and --only-fixed trims unactionable CVE noise.

  • Fast SBOM-driven vulnerability matching
Maintenance & Lineage 9 / 10

Official Anchore OSS project (anchore/grype) with continuous feed updates.

  • Vendor-backed Apache-2.0 repository
Docs & Verifiability 9 / 10

Clear README and --help covering SBOM inputs, .grype.yaml ignores, and CI gating.

  • Comprehensive README and CLI help

Security, Auth & Guardrails

Auth Modes
No Auth
Credential Storage

None required for local directories and SBOMs; caches vulnerability DB locally under ~/.cache/grype.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free and open-source (Apache-2.0).

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Scan current directory for actionable CVEs as JSON
grype dir:. -o json -q --only-fixed

Returns JSON matches limited to vulnerabilities that have an upstream fix available.

Scan an existing SBOM file without re-indexing
grype sbom:./sbom.spdx.json -o json -q

Evaluates a Syft/SPDX SBOM rapidly against the local vulnerability database.

Strengths for Agents

  • + --only-fixed and -o json -q deliver 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=false is set.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI