Syft
$ syft Official Low Risksyft catalogs installed packages, lockfiles, and OS dependencies across repositories and container images into standard SPDX or CycloneDX JSON SBOMs. It runs read-only against targets and feeds downstream tools like grype and cosign.
brew install syft Generating local SBOMs directly via syft is fast, offline-capable, and produces standard JSON files.
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 spdx-json, -o cyclonedx-json, -o syft-json, -q, and deterministic stdout/file targets.
- Multiple standardized JSON SBOM output formats and
-qmode
Read-only inspection of source trees and containers; only writes an output file when =<path> is specified.
- Zero target modification; offline-first for local directories
Single static Go binary via brew, go install, Docker, and GitHub releases.
- Cross-platform static binary
Produces compliant SBOMs across npm, pip, Cargo, Go, OS packages, and containers in one pass.
- Broad polyglot and OS package catalogers
Official Anchore OSS project (anchore/syft) with wide supply-chain adoption.
- Actively maintained Apache-2.0 project
Clear README and CLI --help detailing output formats and source schemes (dir:, docker:, oci-archive:).
- Well-documented source schemes and SBOM formats
Security, Auth & Guardrails
None required for local directories and archives; uses Docker auth only when pulling private registry images.
100% free, offline for local scans, and open-source (Apache-2.0).
# Syft Agent Rules - Always pass `-q` and an explicit JSON format (`-o spdx-json`, `-o cyclonedx-json`, or `-o syft-json`). - Pipe `syft` stdout to `jq` on large images/monorepos so full SBOM documents do not overflow context.
Agent-Ready Command Recipes
Safe Read-Only Queries
syft dir:. -o syft-json -q
Catalogs detected dependencies and versions to stdout without writing files.
Controlled Writes & Previews
syft dir:. -o spdx-json=sbom.spdx.json -q
Exports a standard sbom.spdx.json artifact for downstream vulnerability or attestation steps.
Strengths for Agents
- + Supports SPDX JSON, CycloneDX JSON, and Syft JSON out of the box.
- + Works completely offline on local workspaces with zero credentials.
Caveats & Pitfalls
- ! Full SBOM JSON documents can exceed tens of thousands of lines—write to a file or summarize with
jq.