No description
Find a file
dependabot[bot] b9efac4d78
chore(deps): bump github.com/CycloneDX/cyclonedx-go from 0.9.0 to 0.9.1 (#3242)
Bumps [github.com/CycloneDX/cyclonedx-go](https://github.com/CycloneDX/cyclonedx-go) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/CycloneDX/cyclonedx-go/releases)
- [Changelog](https://github.com/CycloneDX/cyclonedx-go/blob/master/.goreleaser.yml)
- [Commits](https://github.com/CycloneDX/cyclonedx-go/compare/v0.9.0...v0.9.1)

---
updated-dependencies:
- dependency-name: github.com/CycloneDX/cyclonedx-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-09-16 11:54:12 -04:00
.github chore(deps): bump github/codeql-action from 3.26.6 to 3.26.7 (#3241) 2024-09-16 11:54:01 -04:00
cmd/syft feat: --enrich flag for data enrichment feature enablement (#3182) 2024-09-12 10:45:18 -04:00
examples docs: add simplest example from regsitry (#2691) 2024-03-06 14:25:37 -05:00
internal chore(deps): update tools to latest versions (#3205) 2024-09-13 15:05:50 -04:00
schema Add the Ocaml ecosystem (#3112) 2024-09-10 10:35:18 -04:00
syft chore(deps): update CPE dictionary index (#3232) 2024-09-16 09:08:50 -04:00
test Slim down docker cache size (#3190) 2024-09-09 11:15:13 -04:00
.binny.yaml chore(deps): update tools to latest versions (#3231) 2024-09-16 09:09:11 -04:00
.bouncer.yaml chore(deps): update stereoscope to 487b11e5ba2622d976acda10c605da63b4fbbb0a (#3032) 2024-07-18 09:26:01 -07:00
.chronicle.yaml enforce breaking change bump major version (#2635) 2024-02-28 15:48:20 -05:00
.gitignore Internalize majority of cmd package (#2533) 2024-01-24 13:29:51 -05:00
.golangci.yaml chore(deps): update tools to latest versions (#3205) 2024-09-13 15:05:50 -04:00
.goreleaser.yaml chore(deps): update tools to latest versions (#2940) 2024-06-07 16:55:32 +00:00
artifacthub-repo.yml chore: claim artifacthub package ownership from developer-guy (#881) 2023-01-11 15:25:42 -05:00
CODE_OF_CONDUCT.md docs: CODE_OF_CONDUCT.md (#3046) 2024-07-17 14:33:17 -07:00
CONTRIBUTING.md feat: update golang to 1.19 (#1526) 2023-01-31 11:39:57 -05:00
CONTRIBUTORS.md Add cataloger for Swift Package Manager. (#1919) 2023-07-25 14:35:21 -04:00
DEVELOPING.md chore: fix some comments (#3114) 2024-08-12 12:08:04 -04:00
Dockerfile chore: pin and update all workflow dependencies; add permission scopes (#2138) 2023-09-15 14:18:42 -04:00
Dockerfile.debug chore: pin and update all workflow dependencies; add permission scopes (#2138) 2023-09-15 14:18:42 -04:00
go.mod chore(deps): bump github.com/CycloneDX/cyclonedx-go from 0.9.0 to 0.9.1 (#3242) 2024-09-16 11:54:12 -04:00
go.sum chore(deps): bump github.com/CycloneDX/cyclonedx-go from 0.9.0 to 0.9.1 (#3242) 2024-09-16 11:54:12 -04:00
install.sh add signature verification to install.sh (#2941) 2024-06-10 11:29:53 -04:00
LICENSE add apache v2 license 2020-06-24 14:37:00 -04:00
Makefile Slim down docker cache size (#3190) 2024-09-09 11:15:13 -04:00
README.md update-slack-to-discourse (#3111) 2024-08-12 11:49:10 +01:00
RELEASE.md switch from trigger-release target to release target (#1560) 2023-02-09 16:35:11 +00:00
SECURITY.md add security policy (#2835) 2024-05-02 14:45:17 +00:00
Taskfile.yaml chore: restore ci-check.sh script (#3218) 2024-09-10 15:19:05 -04:00

Cute pink owl syft logo

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.

 Validations   Go Report Card   GitHub release   GitHub go.mod Go version   License: Apache-2.0   Join our Discourse 

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.

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 <image>

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 <image> --scope all-layers

Output formats

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

syft <image> -o <format>

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)
  • 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)
  • Python (wheel, egg, poetry, requirements.txt)
  • Red Hat (rpm)
  • Ruby (gem)
  • Rust (cargo.lock)
  • Swift (cocoapods, swift-package-manager)
  • Wordpress plugins

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.