grype README

The project's README from github.com/anchore/grype. As one markdown file: README.md.

Grype logo

Grype

A vulnerability scanner for container images and filesystems.

 Static Analysis + Unit + Integration   Validations   Go Report Card   GitHub release   GitHub go.mod Go version   License: Apache-2.0   Join our Discourse   Follow on Mastodon 

grype-demo

Features

[!TIP] New to Grype? Check out the Getting Started guide for a walkthrough!

Installation

The quickest way to get up and going:

curl -sSfL https://get.anchore.io/grype | sudo sh -s -- -b /usr/local/bin

[!TIP] See Installation docs for more ways to get Grype, including Homebrew, Docker, Chocolatey, MacPorts, and more!

The basics

Scan a container image or directory for vulnerabilities:

# container image
grype alpine:latest

# directory
grype ./my-project

Scan an SBOM for even faster vulnerability detection:

# scan a Syft SBOM
grype sbom:./sbom.json

# pipe an SBOM into Grype
cat ./sbom.json | grype

[!TIP] Check out the Getting Started guide to explore all of the capabilities and features.

Want to know all of the ins-and-outs of Grype? Check out the CLI docs and configuration docs.

Contributing

We encourage users to help make these tools better by submitting issues when you find a bug or want a new feature. Check out our contributing overview and developer-specific documentation if you are interested in providing code contributions.

Grype development is sponsored by Anchore, and is released under the Apache-2.0 License. The Grype logo by Anchore is licensed under CC BY 4.0

For commercial support options with Syft or Grype, please contact Anchore.

Come talk to us!

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

grype (anchore/grype)

Searching Database…

13.1K ·GitHub
这是什么?Grype 是一款命令行漏洞扫描工具,可检查容器镜像、文件系统和 SBOM 中是否存在已知的安全漏洞。
这是命令行工具,还是我可以在代码里导入的库?它是一款用 Go 编写的独立命令行工具,你可以对镜像、目录或 SBOM 文件运行它,它不是可以导入的库。
我该如何安装 Grype?你可以运行 README 中的一行快速安装脚本,也可以按照 Installation 文档的说明,通过 Homebrew、Docker、Chocolatey 或 MacPorts 安装。
使用前我需要先安装 Syft 或其他 SBOM 工具吗?不需要。Grype 可以独立直接扫描容器镜像和文件系统;不过如果提供预先生成的 SBOM,扫描会更快。
它实际能检测哪些软件包生态的漏洞?它覆盖主流操作系统发行版,包括 Alpine、Debian、Ubuntu、RHEL、Oracle Linux 和 Amazon Linux,以及 Ruby、Java、JavaScript、Python、.NET、Go、PHP 和 Rust 等语言生态;不在这些范围内的都不在覆盖之内。
它能在 Windows 和 macOS 上运行,还是只支持 Linux?它支持跨平台运行:除 Linux 外,可以在 Windows 上通过 Chocolatey 安装,在 macOS 上通过 MacPorts 或 Homebrew 安装,也可以在任何地方作为 Docker 容器运行。
它能扫描哪些容器镜像格式?Grype 支持 Docker、OCI 和 Singularity 镜像格式,此外还支持原始文件系统和 SBOM。
它如何帮助我确定先修复哪些漏洞?它会结合 EPSS、KEV(已知被利用的漏洞)以及它自身的风险评分,提供威胁和风险优先级信号,帮助你聚焦最重要的问题。
OpenVEX 支持有什么用?OpenVEX 文档可以用来筛选和补充扫描结果,例如将某些漏洞标记为 not-affected(不受影响),使其不再出现在报告中。
它和 Syft 有关系吗?有关系。Grype 是 Anchore 旗下与 SBOM 生成工具 Syft 同属的姊妹项目,两者设计为可以协同工作,以加快扫描速度。
What are similar projects?clair, trivy, osv-scanner, slim, bashka, podman, SkillSpector, buildkit
Creator
anchore
Size
10.6 MB
Stars
13.1K
Age
6y
Commits · 90 Days