T08 · Insecure Dependencies
- Location
SKILL.md:41- Finding
Unpinned Global Installation of a Mutable Third-Party Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Record and periodically review the expected package version and provenance. 3. Use npm lockfiles and integrity metadata where the installation model permits them. 4. Prefer a project-local installation over a global installation when possible: ```powershell npm install --save-exact clawhub@ ``` 5. Invoke the locally installed executable through a controlled package script or its explicit path. 6. Review package lifecycle scripts before installation and consider disabling them when they are not required: ```powershell npm install --ignore-scripts --save-exact clawhub@ ``` 7. Verify that disabling lifecycle scripts is compatible with the package before recommending that option. 8. Upgrade only after reviewing the new version rather than automatically resolving the latest release. ]]>
