Skip to content
/ grummage Public

Grummage is an interactive terminal frontend to Grype

License

Notifications You must be signed in to change notification settings

popey/grummage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Grummage

Grype + Rummage = Grummage.

Grummage is an interactive terminal frontend to Grype.

A short video showing Grummage

Introduction

Grype is an awesome vulnerability scanner. It produces minimal textual output, or verbose JSON files. I wanted something to rummage around in the json, without having to learn arcane jq syntax ;).

So Grummage was born.

Installation

Grummage is written in Python, and uses the Textual library for the UI.

Pre-requisites

Grummage requires the Grype binary in your path to function.

You may want to confirm the Grype command line works, and has updated the vulnerability database first.

grype --version
grype 0.84.0
grype db update
  βœ” Vulnerability DB                [no update available]
 No vulnerability database update available

Get Grummage

I use uv to manage Python virtual environments. It's good. You might like it too.

git clone https://github.com/popey/grummage
cd grummage
uv venv
source ./venv/bin/activate
uv pip install textual

Usage

Point grummage at an SBOM (Software Bill of Materials).

./grummage ./example_sboms/nextcloud-latest-syft-sbom.json

Grummage will load the SBOM and pass it through Grype to build the vulnerability list. Use the cursor keys or mouse to navigate the tree on the left pane. Press Enter or mouse click on a vulnerability to obtain limited details.

Keys:

  • e - Request further details via grype explain
  • q - Quit

Sort by:

  • n - Name of package
  • v - Vulnerability ID
  • t - Type of package
  • s - Severity of issue

Making SBOMs

I use Syft to generate SBOMs, but other tools are available. For example:

syft nextcloud:latest -o syft-json=nextcloud-latest-syft-sbom.json
 βœ” Loaded image       nextcloud:latest
 βœ” Parsed image       sha256:44c884988b43e01e1434a66f58943dc809a193abf1a6df0f2cebad450e587ad7
 βœ” Cataloged contents bdca3ed5b303726bba5579564ab8fe5df700d637ae04f00689443260b26cc832
   β”œβ”€β”€ βœ” Packages                        [418 packages]
   β”œβ”€β”€ βœ” File digests                    [10,605 files]
   β”œβ”€β”€ βœ” File metadata                   [10,605 locations]
   └── βœ” Executables                     [1,317 executables]

Caveats

I am an open-source enthusiast and self-taught coder creating projects driven by curiosity and a love for problem-solving. The code may have bugs or sharp edges. Kindly let me know if you find one, via an issue. Thanks.

About

Grummage is an interactive terminal frontend to Grype

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Languages