T08 · Insecure Dependencies
- Location
INSTALL.md:9- Finding
Unpinned Global npm Package Installation Creates Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
``` 2. Document the official npm package page, verified publisher identity, source repository, and expected package name so users can validate provenance before installation. 3. Publish and document an expected npm integrity value or package checksum for the reviewed release. Ensure release artifacts are reproducible or signed where practical. 4. Prefer a project-local dependency instead of a global installation when supported: ```bash npm install --save-dev clawhub@ ``` Invoke it through a pinned project script rather than relying on a mutable global executable. 5. If the package does not require lifecycle scripts, recommend installation with scripts disabled: ```bash npm install -g clawhub@ --ignore-scripts ``` This option should only be recommended after confirming that disabling scripts does not break legitimate installation behavior. 6. Add an update process requiring review of release notes, source changes, publisher identity, and integrity metadata before changing the documented version. 7. Replace the placeholder repository URL in `INSTALL.md` with the verified official repository URL so users are not encouraged to substitute an unverified source. ]]>
