Skip to content

virtualian/npm-scanner

npm-scanner

CI License: ISC Version

Security auditing toolkit for detecting npm supply chain attacks. Detects threats that npm audit misses—URL dependencies (PhantomRaven-style attacks), malicious lifecycle scripts, typosquatting, and suspicious package metadata.

Zero npm dependencies by design: a security tool that depends on npm packages would be vulnerable to the same attacks it's trying to detect.

Quick Start

git clone https://github.com/virtualian/npm-scanner.git
cd npm-scanner

# Scan globally installed packages
./npm-scanner.sh scan --global

# Scan project dependencies
./npm-scanner.sh scan --project ~/code

# Validate a package before installing
./npm-scanner.sh validate lodash

Documentation

Full documentation: virtualian.github.io/npm-scanner

Requirements

  • Bash, jq, curl
  • Node.js (no npm dependencies)

License

ISC

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages