slopsquat-scanner

v0.3.1
io.github.GuardBee/slopsquat-scanner Checked 5 hours ago Published 1 month ago

Checks declared npm/PyPI dependencies against real registries to catch slopsquatting

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

scan_npm

Check every dependency declared in a package.json (dependencies, devDependencies, peerDependencies, optionalDependencies) against the real npm registry -- flags any package name that doesn't exist at all (a likely LLM-hallucinated dependency an attacker may have pre-registered, i.e. 'slopsquatting'), and separately notes any that exist but were only first published very recently.

ParameterTypeDescription
directory *stringPath to the directory containing package.json

scan_pip

Check every dependency declared in requirements.txt or pyproject.toml against the real PyPI registry -- flags any package name that doesn't exist at all (a likely LLM-hallucinated dependency an attacker may have pre-registered), and separately notes any that exist but were only first published very recently.

ParameterTypeDescription
directory *stringPath to the directory containing requirements.txt or pyproject.toml

check_package

Check a single package name against the real npm or PyPI registry

ParameterTypeDescription
ecosystem *stringWhich registry to check
name *stringPackage name

scan_directory

Auto-detect and check both npm and pip manifests (package.json, requirements.txt, pyproject.toml) in a directory against their real registries

ParameterTypeDescription
directory *stringPath to the project root directory