T08 · Insecure Dependencies
- Location
SKILL.md:8- Finding
Unpinned Global Installation of a Security-Sensitive Third-Party CLI
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Pin the same exact version in `references/commands.md`. 3. Record and verify the package integrity hash through a lockfile or equivalent integrity-verification mechanism. 4. Review the package source, installation lifecycle scripts, transitive dependencies, and published artifact before approving a version. 5. Prefer a project-local installation or isolated execution environment over unrestricted global installation. 6. Disable npm lifecycle scripts during installation when they are unnecessary and compatibility has been verified. 7. Establish an explicit update process in which each new version is reviewed before the pin is changed. 8. Verify the npm package owner, provenance, repository, and release-signing information. 9. Run the CLI with least privilege and isolate it from unrelated credentials and sensitive files. ]]>
