Syft logo

Syft Anchore Inc

Use this command to install Syft:
winget install --id=Anchore.Syft -e

Syft is a powerful and easy-to-use open-source tool for generating Software Bill of Materials (SBOMs) for container images and filesystems. It provides detailed visibility into the packages and dependencies in your software, helping you manage vulnerabilities, license compliance, and software supply chain security.

Syft is a powerful open-source tool designed to generate Software Bill of Materials (SBOMs) for container images and filesystems. It provides comprehensive visibility into software packages, dependencies, licenses, and vulnerabilities, enabling organizations to manage supply chain risks effectively.

Key Features:

  • Detailed SBOM generation for container images and filesystems.
  • Identification of open-source components, their versions, and associated vulnerabilities.
  • Support for multiple package managers across different ecosystems.
  • Integration with Anchore Engine for enhanced security scanning and compliance checks.
  • Lightweight design optimized for performance and scalability.

Audience & Benefit:
Ideal for DevOps teams, security engineers, and software supply chain managers who need to ensure license compliance, mitigate vulnerabilities, and maintain transparency in their software development lifecycle. Syft empowers organizations to achieve robust security posture while streamlining operations.

Available via winget for easy installation.

README

Syft

A CLI tool and Go library for generating a Software Bill of Materials (SBOM) from container images and filesystems. Exceptional for vulnerability detection when used with a scanner like Grype.

                    

syft-demo

Introduction

Syft is a powerful and easy-to-use open-source tool for generating Software Bill of Materials (SBOMs) for container images and filesystems. It provides detailed visibility into the packages and dependencies in your software, helping you manage vulnerabilities, license compliance, and software supply chain security.

Syft development is sponsored by Anchore, and is released under the Apache-2.0 License. For commercial support options with Syft or Grype, please contact Anchore.

Features

  • Generates SBOMs for container images, filesystems, archives, and more to discover packages and libraries
  • Supports OCI, Docker and Singularity image formats
  • Linux distribution identification
  • Works seamlessly with Grype (a fast, modern vulnerability scanner)
  • Able to create signed SBOM attestations using the in-toto specification
  • Convert between SBOM formats, such as CycloneDX, SPDX, and Syft's own format.

Installation

Syft binaries are provided for Linux, macOS and Windows.

Recommended

> bash > curl -sSfL https://raw.githubusercontent.com/anchore/syft/main/install.sh | sh -s -- -b /usr/local/bin >

Install script options:

  • -b: Specify a custom installation directory (defaults to ./bin)
  • -d: More verbose logging levels (-d for debug, -dd for trace)
  • -v: Verify the signature of the downloaded artifact before installation (requires cosign to be installed)

Homebrew

brew install syft

Scoop

scoop install syft

Chocolatey

The chocolatey distribution of Syft is community-maintained and not distributed by the Anchore team

choco install syft -y

Nix

Note: Nix packaging of Syft is community maintained. Syft is available in the stable channel since NixOS 22.05.

nix-env -i syft

... or, just try it out in an ephemeral nix shell:

nix-shell -p syft

Getting started

SBOM

To generate an SBOM for a container image:

syft 

The above output includes only software that is visible in the container (i.e., the squashed representation of the image). To include software from all image layers in the SBOM, regardless of its presence in the final image, provide --scope all-layers:

syft  --scope all-layers

Output formats

The output format for Syft is configurable as well using the -o (or --output) option:

syft  -o 

Where the formats available are:

Note that flags using the @ can be used for earlier versions of each specification as well.

Supported Ecosystems

  • Alpine (apk)
  • Bitnami packages
  • C (conan)
  • C++ (conan)
  • Dart (pubs)
  • Debian (dpkg)
  • Dotnet (deps.json)
  • Objective-C (cocoapods)
  • Elixir (mix)
  • Erlang (rebar3)
  • Go (go.mod, Go binaries)
  • Haskell (cabal, stack)
  • Java (jar, ear, war, par, sar, nar, native-image)
  • JavaScript (npm, yarn)
  • Jenkins Plugins (jpi, hpi)
  • Linux kernel archives (vmlinz)
  • Linux kernel modules (ko)
  • Nix (outputs in /nix/store)
  • PHP (composer, PECL, Pear)
  • Python (wheel, egg, poetry, requirements.txt)
  • Red Hat (rpm)
  • Ruby (gem)
  • Rust (cargo.lock, auditable binary)
  • Swift (cocoapods, swift-package-manager)
  • Wordpress plugins
  • Terraform providers (.terraform.lock.hcl)

Documentation

Our wiki contains further details on the following topics:

Contributing

Check out our contributing guide and developer docs.

Syft Team Meetings

The Syft Team hold regular community meetings online. All are welcome to join to bring topics for discussion.

Syft Logo

Syft Logo by Anchore is licensed under CC BY 4.0

Versions
v1.16.0
1.24.0
1.23.1
1.23.0
1.22.0
1.21.0
1.20.0
1.19.0
1.18.1
1.17.0
Website
License