T08 · Insecure Dependencies
- Location
SKILL.md:30- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
- Remediation
View remediation
``` 2. Publish and verify the expected package integrity hash and package provenance before installation. 3. Document the npm registry that must be used and reject unexpected registry overrides. 4. Review package lifecycle scripts and, where operationally compatible, install with scripts disabled: ```bash npm install -g --ignore-scripts @dp-pcs/ogp@ ``` 5. Prefer a project-local or isolated installation over a global installation so that the executable cannot silently affect unrelated workflows. 6. Establish a controlled upgrade process in which each new version is reviewed before the pinned version is changed. 7. Recommend installation under an unprivileged account and explicitly warn users not to run the command with `sudo` or equivalent elevated privileges. ]]>
