talira

CLI tool and library for generating a Software Bill of Materials from container images and filesystems

open sourceApache-2.0self-hostablefree

Syft is Anchore's open source command-line tool and Go library that generates a software bill of materials (SBOM) from container images (Docker, OCI and Singularity), filesystems and archives. It catalogs OS packages (apk, dpkg, RPM) and language packages for Go, Python, Java, JavaScript, Ruby, Rust, PHP, .NET and more, and writes CycloneDX (JSON or XML), SPDX (JSON or tag-value), its own Syft JSON or a template, several at once. It can convert between formats and create signed SBOM attestations in the in-toto format, and its SBOMs feed straight into Grype for vulnerability scanning. It's Apache-2.0, sponsored by Anchore.

Ways to install

Problems it solves

  • generate an SBOM for every container image we ship because a customer's security team asked for one
  • produce a CycloneDX or SPDX bill of materials from a Docker image in CI
  • list every package and library inside a container image, including OS packages and language dependencies
  • create an SBOM from a project directory or a tarball without building an image
  • attach a signed SBOM attestation to a container image
  • convert an SPDX SBOM to CycloneDX
  • generate an SBOM once and scan it for vulnerabilities later without pulling the image again
  • comply with US executive order SBOM requirements for software we sell to the government
  • inventory the software in images built with Buildah or Podman on a Linux build host

Features

  • scans container images (OCI, Docker, Singularity), directories and archives
  • catalogs apk, dpkg and RPM packages plus Go, Python, Java, JavaScript, Ruby, Rust, PHP, .NET and other ecosystems
  • output: table, Syft JSON, CycloneDX JSON (1.2 to 1.7) and XML, SPDX JSON (2.2 to 3.0) and tag-value, GitHub JSON, purls, templates
  • several -o outputs in one run
  • convert between SBOM formats
  • signed SBOM attestations in the in-toto format
  • scans images from a local containers-storage store on Linux
  • Go library for embedding SBOM generation
  • official installer script, Docker image, .deb and .rpm packages and release binaries for Linux, macOS and Windows

Limitations

  • SBOM format conversion is lossy and experimental: SPDX and CycloneDX can't hold all of Syft's metadata3

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what Syft does.

  1. Trivy Find vulnerabilities, misconfigurations, secrets, SBOM in containers, Kubernetes, code repositories, clouds and more
  2. Docker Scout Finds vulnerabilities, outdated packages and compliance problems in container images
  3. Dependency-Track Know exactly what is in your software: SBOM analysis for the software supply chain

Compare Syft with the top 3