ghtier
← SBOM, signing and provenance

Syft

Generates SBOMs from container images, filesystems and archives.

github.com/anchore/syft ↗
Stars
★ 9,799
License
Apache-2.0
Language
Go
Last push
30 Oct 2026
OpenSSF Scorecard
8.7 / 10
ghtier ratingRated 5 of 5, Top pick5/5 · Top pick

The common default for generating SBOMs from images and directories, in SPDX and CycloneDX.

Note: this page is AI generated. Read the tool's own repository and documentation, linked at the bottom, before you rely on it.

How it works

Syft reads an image's layers or a directory and catalogs what is installed: OS packages from the package database, language packages from manifests and lockfiles, and some compiled binaries such as Go and Rust executables from their embedded build information.

It writes the result as SPDX, CycloneDX or Syft's own JSON. anchore/sbom-action runs it in a workflow, uploads the SBOM as an artifact and can attach it to a release.

What it catches

  • Packages bundled into an image that are not in your lockfile
  • OS packages left in base layers
  • Version differences between the lockfile and what was actually built

Run it

brew install syft
syft dir:. -o spdx-json=sbom.spdx.json
syft ghcr.io/my-org/my-image:tag -o cyclonedx-json

In GitHub Actions

- uses: anchore/sbom-action@<sha> # v0.24.3
  with:
    path: .
    format: spdx-json
    output-file: sbom.spdx.json

What leaves your machine

Scanning a directory reads local files. Scanning an image pulls it from its registry. It checks for a newer Syft release on start unless SYFT_CHECK_FOR_APP_UPDATE=false.

Limits

  • It lists components and does not judge them. Pair it with Grype, OSV-Scanner or Trivy for vulnerabilities.
  • Stripped or statically linked binaries can hide what they contain.
  • An SBOM only helps if it is signed or attested, kept with the artifact and read by something.

Related tools

GitHub stats as of 30 Oct 2026. How ratings work.