What do you want to do?
3 use cases
-
List every package inside a container image
Point Syft at an image and see all the packages it contains in one command.
View prompt
Using anchore/syft, install it with `curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin`, run `syft alpine:latest` against <my image>, and summarise the packages by ecosystem.
-
Export an SBOM in SPDX and CycloneDX formats
Write SPDX and CycloneDX SBOM files in a single run so customers and auditors can each get their format.
View prompt
Use anchore/syft to scan <my project or image> and write both an SPDX JSON and a CycloneDX JSON SBOM with the flags `-o spdx-json=./spdx.json -o cyclonedx-json=./cdx.json`, then confirm both files exist and count the packages in each.
-
Scan images built with Podman or Buildah
Inventory a locally built image straight from containers-storage without pushing it anywhere.
View prompt
With anchore/syft on Linux, run `syft --from containers-storage localhost/myimage:latest` for my local image <name> (use `podman unshare syft --from containers-storage localhost/myimage:latest` if rootless) and report the package count.
Quick start with Syft
- Check you have what it needs: A Linux or macOS shell with curl and sudo, or another install method from the Syft docs; A container image reference or a project directory to scan; Grype is optional, only for the vulnerability scanning step.
- Open anchore/syft on GitHub and read the README and license.
- Install Syft with
curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin - Run
syft alpine:latest, replacing alpine:latest with your own image reference - Read the package list that Syft prints
- Run
syft ./my-projecton a directory to inventory a project the same way
These steps come from our top use case, List every package inside a container image, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for anchore/syft
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDevOps and security engineers who need an inventory of what is inside a container image or project directory.
- Why it is hot9.8k stars, talked about in 2 AI sources we track
- LanguageGo
- Sourcegithub.com/anchore/syft ยท Back to Hot repos
Requirements
- A Linux or macOS shell with curl and sudo, or another install method from the Syft docs
- A container image reference or a project directory to scan
- Grype is optional, only for the vulnerability scanning step
Add this badge to your README
Maintain Syft? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/anchore-syft/?utm_source=github&utm_medium=badge&utm_campaign=anchore-syft)
HTML
<a href="https://dedupedai.com/use-cases/anchore-syft/?utm_source=github&utm_medium=badge&utm_campaign=anchore-syft"><img src="https://dedupedai.com/badge/anchore/syft.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Syft
What is Syft?
Syft is a CLI tool and Go library that generates a Software Bill of Materials (SBOM) from container images and filesystems. It supports dozens of packaging ecosystems, outputs CycloneDX, SPDX and Syft JSON, can convert between SBOM formats, and pairs with Grype for vulnerability detection. It is Apache-2.0 licensed. It is an open-source project on GitHub: https://github.com/anchore/syft.
How do I use Syft?
Install Syft with curl -sSfL https://get.anchore.io/syft | sudo sh -s -- -b /usr/local/bin; then run syft alpine:latest, replacing alpine:latest with your own image reference; read the package list that Syft prints. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Syft for?
DevOps and security engineers who need an inventory of what is inside a container image or project directory.
What can I do with Syft?
3 use cases so far, for example: List every package inside a container image; Export an SBOM in SPDX and CycloneDX formats; Scan images built with Podman or Buildah. Each has steps and a copy-paste agent prompt.
What do I need to run Syft?
A Linux or macOS shell with curl and sudo, or another install method from the Syft docs; A container image reference or a project directory to scan; Grype is optional, only for the vulnerability scanning step.
What are alternatives to Syft?
Other hot AI repos in Security and science: Failproofai, Codex Security, Chgnet, Semgrep, Mace.
Is Syft safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.