T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Global npm Package Installation
- Content
View full analysis
- Remediation
View remediation
``` 2. Document the expected npm registry and verify package provenance before installation, including the publisher, release metadata, and integrity information where available. 3. Establish a controlled update process in which new versions and their transitive dependencies are reviewed before changing the documented version. 4. Avoid running npm installation commands with `sudo`, as root, or through another elevated account. 5. Where practical, install the dependency in an isolated project or controlled environment with a lockfile instead of globally. 6. Consider disabling lifecycle scripts during initial inspection with `--ignore-scripts`, while recognizing that this may prevent legitimate package functionality and is not a substitute for package review. ]]>
