T08 · Insecure Dependencies
- Location
SKILL.md:50- Finding
Unpinned Third-Party CLI Is Downloaded and Executed Through npx
- Content
View full analysis
- Remediation
View remediation
... ``` 2. Verify the package's publisher, registry origin, and release provenance before recommending it. 3. Use a lockfile and npm integrity metadata where installation is managed as part of a project. 4. Prefer a locally installed, reviewed dependency invoked with `npm exec --offline` or an equivalent mechanism that does not silently retrieve changing code. 5. Document the expected package checksum or signed release verification process. 6. Avoid recommending global installation because it expands the duration and scope of exposure. 7. Configure CI to detect unpinned `npx`, `npm install`, and equivalent dependency executions in documentation and scripts. 8. Run the CLI with a dedicated low-privilege account and expose only the minimum MCP credentials required for the task. ]]>
