explaingit

anchore/grype

12,194GoAudience · ops devopsComplexity · 2/5LicenseSetup · easy

TLDR

A command-line tool that scans container images, code folders, or software inventory files for known security vulnerabilities across OS packages and many programming language ecosystems in a single command.

Mindmap

mindmap
  root((repo))
    What it does
      Vulnerability scanning
      CVE reporting
      Risk prioritization
    Inputs
      Container images
      Code directories
      SBOM files
    Coverage
      OS packages
      Python Node Ruby
      Java Go Rust .NET
    Use cases
      Pre-deploy checks
      CI pipeline gates
      Dependency audits
    Setup
      Single shell command
      Homebrew install
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Scan a Docker container image before deploying it to find known security vulnerabilities across all its installed packages.

USE CASE 2

Add a vulnerability check to a CI pipeline that blocks merges when high-severity issues are detected.

USE CASE 3

Generate a report of all unpatched security issues in a Python or Node.js project's dependencies.

Tech stack

Go

Getting it running

Difficulty · easy Time to first run · 5min
Use freely for any purpose, including commercial, keep the copyright and license notices and document any significant changes you make.

In plain English

Grype is a command-line tool that scans software for known security vulnerabilities. You point it at a container image, a folder of code, or a software inventory file, and it checks what packages are present against public databases of known security issues, then reports what it finds. A container image is a packaged snapshot of software and its dependencies, commonly used to run applications in consistent environments across different machines. Grype can scan these images directly, which is useful for checking software before deploying it or distributing it to others. It can also scan a local directory or an SBOM (Software Bill of Materials), which is a structured list of all the components that go into a piece of software. The tool covers a wide range of software types. On the operating system side, it recognizes packages from Linux distributions including Alpine, Debian, Ubuntu, Red Hat, Oracle Linux, and Amazon Linux. On the programming language side, it handles packages from Ruby, Java, JavaScript, Python.NET, Go, PHP, Rust, and others. This breadth means a single scan can catch vulnerabilities across many layers of a typical software project. Beyond listing vulnerabilities, Grype can help prioritize them using scoring systems like EPSS (a probability estimate that a vulnerability will be exploited in the wild) and KEV (a list of vulnerabilities known to be actively exploited). It also supports OpenVEX, a format for declaring that certain vulnerabilities are not exploitable in a specific context, which helps filter out results that do not actually apply. Installation takes a single shell command, or Grype can be added through package managers like Homebrew. Running a scan is equally simple: pass it an image name or a folder path and it outputs a table of findings. The project is sponsored by Anchore and released under the Apache 2.0 license.

Copy-paste prompts

Prompt 1
Scan my Docker image myapp:latest with Grype and output the results as a JSON file I can parse in a script.
Prompt 2
Set up Grype in my GitHub Actions workflow to fail the build if any critical CVEs are found in my container image.
Prompt 3
Use Grype to scan a local Python project directory and show only vulnerabilities with a CVSS score above 7.
Open on GitHub → Explain another repo

← anchore on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.