npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@quantum-scale/vulnerability-checker-shai-hulud

v1.0.0-beta.22

Published

A CLI tool to scan GitHub Enterprise organizations for SBOMs and check for compromised packages

Downloads

1,725

Readme

Shai Hulud Vulnerability Checker

A CLI tool to retrieve Software Bill of Materials (SBOM) from GitHub Enterprise organizations and check for packages compromised with the Shai Hulud malware using the Wiz Research IOCs database.

Features

  • Scan entire GitHub Enterprise organizations or specific orgs
  • Download and cache SBOMs for all repositories
  • Check for compromised packages against Wiz Research IOCs
  • Automatic version matching to flag vulnerable packages
  • CSV and JSON output for easy analysis
  • Supports GitHub.com and GitHub Enterprise Server
  • Resume capability (skips already downloaded SBOMs)

Limitations

  • GitHub only publishes SBOMs for the default branch of repositories

Installation

npm install -g @quantum-scale/vulnerability-checker-shai-hulud

Quick Start

# Scan GitHub.com Enterprise
vcsh scan --token ghp_xxx --enterprise my-enterprise

# Scan GitHub Enterprise Server
vcsh scan \
  --token ghp_xxx \
  --ghes-token ghp_xxx_ghes \
  --enterprise my-enterprise \
  --hostname https://github.mycompany.com

Usage

vcsh scan [options]

Required Options

| Option | Short | Description | |--------|-------|-------------| | --token | -t | GitHub token (GitHub.com or GHES) | | --enterprise | -e | GitHub Enterprise slug |

Optional Options

| Option | Description | Default | |--------|-------------|---------| | --hostname | GitHub Enterprise Server URL | - | | --ghes-token | GHES token (required with --hostname) | - | | --output / -o | Output directory for SBOMs | sboms | | --org | Scan only this organization | all | | --skip-sbom-download | Skip SBOM download phase | - | | --skip-compromised-check | Skip vulnerability check phase | - | | --refresh-sboms | Re-download all cached SBOMs | - | | --refresh-compromised-packages | Re-download compromised packages list | - | | --verbose / -v | Show debug output | - |

Token Requirements

Your GitHub token needs these scopes:

  • read:org - Organization access
  • repo - Repository access

When using GHES, provide two tokens:

  • --token: GitHub.com token (for downloading compromised packages database)
  • --ghes-token: GHES token (for all GHES operations)

Output

sboms/
├── org1/
│   └── repo1/
│       └── sbom.json
└── compromised-packages.csv

results/
├── vulnerable-repos.json
└── vulnerable-repos.csv

CSV Format

Repository,Package,Version,Vulnerable Versions,Possibly Vulnerable
org/repo1,lodash,4.17.0,= 4.17.0,Possibly Vulnerable
org/repo2,express,4.18.0,= 4.17.1 || = 4.17.0,

Examples

# Scan specific organization
vcsh scan -t ghp_xxx -e my-enterprise --org my-org

# Only check vulnerabilities (skip download)
vcsh scan -t ghp_xxx -e my-enterprise --skip-sbom-download

# Custom output directory
vcsh scan -t ghp_xxx -e my-enterprise -o ./my-sboms

# Force refresh all data
vcsh scan -t ghp_xxx -e my-enterprise --refresh-sboms --refresh-compromised-packages

Development

# Install dependencies
npm install

# Build
npm run build

# Link for local testing
npm link

# Run in development
npm start -- scan --token <token> --enterprise <slug>

# Watch mode
npm run dev -- scan --token <token> --enterprise <slug>

Troubleshooting

Command not found after installation

npm run build && npm link

GHES token required error

# Provide both tokens when using --hostname
vcsh scan --token <github-com-token> --ghes-token <ghes-token> --hostname https://github.mycompany.com --enterprise my-enterprise

Permission denied errors

Ensure your token has the required scopes: read:org, repo

License

MIT