slopsquat_scanner__scan_npm
Scans a package.json's dependencies against the npm registry to flag nonexistent packages (potential slopsquatting) and recently published dependencies.
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 |