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

bom

$ bom Foundation Low Risk
Kubernetes SIG Release · Security & Secrets · Apache-2.0 · macos / linux / windows

Kubernetes SIG Release's bom generates SPDX-compliant SBOMs (spdx-json or tag-value) from container images, local directories, files, and archives, and prints dependency trees via bom document outline. It supports --offline scanning from local Go/project caches and -o / stdout output.

FCRS-1.0 Score
85 /100
Good
Medium Confidence
Zero-Friction Install
brew install bom
CLI vs MCP Decision CLI Only

Generating SPDX JSON manifests from local repositories or OCI images with bom runs natively on the local host without 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 21 / 25

Supports --format spdx-json, --offline, -o / stdout, --log-level, and -e exit codes cleanly without interactive prompts.

  • --format spdx-json and stdout default on bom generate
  • -e flag on bom validate for non-zero CI failures
Trust & Safety 23 / 25

Read-only scanning of files and container images with explicit --offline flag to suppress network access.

  • Zero code execution; --offline guarantees local-only resolution
Setup & Portability 14 / 15

Single static Go binary available via brew install bom, go install, and GitHub releases across OSes.

  • Zero-dependency Go binary
Utility & Efficiency 11 / 15

Clean SPDX specialist especially well-integrated with Go modules and Kubernetes release pipelines, though narrower ecosystem coverage than syft.

  • SPDX generation, outline inspection, and artifact validation
Maintenance & Lineage 9 / 10

Official Kubernetes SIG Release (kubernetes-sigs/bom) project under Apache-2.0.

  • CNCF / Kubernetes SIG Release stewardship
Docs & Verifiability 7 / 10

Clear Cobra CLI --help output and GitHub README examples.

  • Official docs in kubernetes-sigs/bom

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Directory scanning needs no credentials; private container registry inspection uses standard Docker credentials in ~/.docker/config.json.

Side Effects
Read-Only Local Write
Cost & Quotas

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

Copyable Guardrail for CLAUDE.md / AGENTS.md
# bom Agent Rules
- Pass `--format spdx-json` when generating SBOMs so downstream tools and agents receive machine-readable JSON.
- Use `--offline` on air-gapped or local-only directory scans to avoid unexpected network lookups.
- Pass `-e` (`--exit-code`) on `bom validate` so validation failures propagate to exit codes.

Agent-Ready Command Recipes

Safe Read-Only Queries

Outline an SPDX SBOM tree
bom document outline sbom.spdx.json --depth 2

Prints a compact 2-level hierarchy of packages and files from an SPDX manifest without writing files.

Verify build artifacts against an SPDX SBOM
bom validate -f ./bin/app -e

Checks artifact hashes against the manifest and exits non-zero (-e) on mismatch.

Controlled Writes & Previews

Generate an SPDX JSON SBOM offline
bom generate --offline --format spdx-json --dir . --output sbom.spdx.json

Generates an SPDX JSON SBOM from local workspace files and cached dependencies without network calls.

Strengths for Agents

  • + Official Kubernetes SIG Release SPDX tool with single-binary Go portability.
  • + Supports --format spdx-json, --offline, and bom document outline for quick tree inspection.

Caveats & Pitfalls

  • ! Focused on SPDX format (does not emit CycloneDX) and has fewer language-package parsers than syft or trivy.
  • ! bom validate is marked experimental in upstream docs.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI