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

Syft

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

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

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

Generating local SBOMs directly via syft is fast, offline-capable, and produces standard JSON files.

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 spdx-json, -o cyclonedx-json, -o syft-json, -q, and deterministic stdout/file targets.

  • Multiple standardized JSON SBOM output formats and -q mode
Trust & Safety 23 / 25

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
Setup & Portability 14 / 15

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

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

Produces compliant SBOMs across npm, pip, Cargo, Go, OS packages, and containers in one pass.

  • Broad polyglot and OS package catalogers
Maintenance & Lineage 9 / 10

Official Anchore OSS project (anchore/syft) with wide supply-chain adoption.

  • Actively maintained Apache-2.0 project
Docs & Verifiability 9 / 10

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

Auth Modes
No Auth
Credential Storage

None required for local directories and archives; uses Docker auth only when pulling private registry images.

Side Effects
Read-Only Local Write
Cost & Quotas

100% free, offline for local scans, and open-source (Apache-2.0).

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

Print compact Syft JSON inventory for a workspace
syft dir:. -o syft-json -q

Catalogs detected dependencies and versions to stdout without writing files.

Controlled Writes & Previews

Write an SPDX JSON SBOM file for compliance or Grype scanning
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.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI