bom
$ bom Foundation Low RiskKubernetes 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.
brew install bom Generating SPDX JSON manifests from local repositories or OCI images with bom runs natively on the local host without 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 --format spdx-json, --offline, -o / stdout, --log-level, and -e exit codes cleanly without interactive prompts.
--format spdx-jsonand stdout default onbom generate-eflag onbom validatefor non-zero CI failures
Read-only scanning of files and container images with explicit --offline flag to suppress network access.
- Zero code execution;
--offlineguarantees local-only resolution
Single static Go binary available via brew install bom, go install, and GitHub releases across OSes.
- Zero-dependency Go binary
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
Official Kubernetes SIG Release (kubernetes-sigs/bom) project under Apache-2.0.
- CNCF / Kubernetes SIG Release stewardship
Clear Cobra CLI --help output and GitHub README examples.
- Official docs in
kubernetes-sigs/bom
Security, Auth & Guardrails
Directory scanning needs no credentials; private container registry inspection uses standard Docker credentials in ~/.docker/config.json.
100% free and open-source (Apache-2.0).
# 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
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.
bom validate -f ./bin/app -e
Checks artifact hashes against the manifest and exits non-zero (-e) on mismatch.
Controlled Writes & Previews
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, andbom document outlinefor quick tree inspection.
Caveats & Pitfalls
- ! Focused on SPDX format (does not emit CycloneDX) and has fewer language-package parsers than
syftortrivy. - !
bom validateis marked experimental in upstream docs.