T08 · Insecure Dependencies
- Location
SKILL.md:8- Finding
Unpinned Global Installation of a Third-Party CLI Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Publish and verify npm package provenance, release signatures, and integrity metadata through a trusted release process. 3. Prefer a project-local installation with a committed lockfile over a global installation where the operating environment permits it. 4. Review the pinned package, its lifecycle scripts, and its transitive dependencies before recommending installation. 5. Run installation and CLI operations as an unprivileged user; do not recommend `sudo npm install -g`. 6. Consider disabling npm lifecycle scripts during installation when compatible with the package: ```bash npm install --global --ignore-scripts @outlit/cli@ ``` 7. Document the expected package publisher, registry, checksum or integrity value, and supported version so users can detect dependency confusion or package substitution. ]]>
