slopsquat-scanner
v0.3.1Checks 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.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Path 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.
| Parameter | Type | Description |
|---|---|---|
directory * | string | Path to the directory containing requirements.txt or pyproject.toml |
check_package
Check a single package name against the real npm or PyPI registry
| Parameter | Type | Description |
|---|---|---|
ecosystem * | string | Which registry to check |
name * | string | Package 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
| Parameter | Type | Description |
|---|---|---|
directory * | string | Path to the project root directory |