slopsquat_scanner__scan_npm
Scan package.json dependencies against the real npm registry to flag nonexistent package names likely tied to slopsquatting and note dependencies first published very recently.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Path to the directory containing package.json |