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

@oat-sa-private/shai-hulud-2-checker

v0.2.0

Published

Detect malicious npm packages linked to the Shai-Hulud 2.0 supply chain attack.

Readme

Shai-Hulud 2.0 Checker

Detect malicious npm packages linked to the Shai-Hulud 2.0 supply chain attack. This tool scans your package-lock.json against Wiz Security's IOC database of ~700 compromised packages that execute credential theft and secret exfiltration during installation.

About the Attack

The Shai-Hulud 2.0 campaign (November 2025) compromised major packages including:

  • Zapier packages
  • ENS Domains packages
  • PostHog packages
  • Postman packages
  • AsyncAPI packages

The malware:

  • Executes during preinstall phase
  • Steals AWS, Azure, and GCP credentials
  • Exfiltrates GitHub tokens and SSH keys
  • Creates backdoor workflows
  • Targets both CI/CD pipelines and developer machines

Installation

Install globally:

npm install -g @oat-sa-private/shai-hulud-2-checker

Or install from GitHub:

git clone [email protected]:oat-sa/shai-hulud-2-checker.git
npm install
npm link

Usage

Run the checker in the current directory:

shai-hulud-2-checker

Or scan specific directories recursively:

# Scan a single folder and all its subfolders
shai-hulud-2-checker ~/work

# Scan multiple folders
shai-hulud-2-checker ~/work ~/projects ~/repos

The tool will:

  1. Fetch the latest list of malicious packages from the Wiz Security IOC repository
  2. Recursively find all package-lock.json files in the specified directories
  3. Scan each project's dependencies
  4. Report results per project with a summary

Note: The tool automatically skips node_modules, .git, and other common non-project directories for faster scanning.

Example Output

Scanning multiple projects:

Fetching malicious package list...
Loaded 700 suspicious packages signatures.

Scanning directories: /Users/you/work
Found 5 project(s) to scan.

📁 /Users/you/work/project-a
   ✅ Clean (245 dependencies scanned)

📁 /Users/you/work/project-b
   ⚠️  WARNING: 2 malicious package(s) detected!
      - @posthog/agent v1.24.1
      - posthog-node v5.11.3

📁 /Users/you/work/project-c
   ✅ Clean (89 dependencies scanned)

────────────────────────────────────────────────────────────

⚠️  SUMMARY: Found 2 malicious package(s) in 1 project(s).

Requirements

  • Node.js >= 20.0.0 (with ES modules support)
  • Projects should have package-lock.json files (lockfileVersion 3 recommended)

Data Source

This tool uses the malicious package list maintained by Wiz Security: https://github.com/wiz-sec-public/wiz-research-iocs

License

ISC