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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"directory": "<directory>"
},
"name": "slopsquat_scanner__scan_npm"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| directory | Yes | Path to the directory containing package.json |