T08 · Insecure Dependencies
- Location
SKILL.md:28- Finding
Unattended Global Installation of an Unpinned npm Dependency
- Content
View full analysis
- Remediation
View remediation
``` 3. Verify the package tarball using a trusted integrity digest or a signed release before execution. 4. Prefer a project-local installation in an isolated environment instead of `npm install -g`. 5. Where compatible with the package, disable lifecycle scripts during installation: ```bash npm install --ignore-scripts --save-exact @liberfi.io/cli@ ``` 6. Review the package and its dependency tree before allowing lifecycle scripts or executing its binaries. 7. Do not automatically retry every failure against a forced registry. Preserve and report the actual error so permission, integrity, availability, and security failures can be distinguished. 8. Avoid requesting or using elevated privileges for installation. If the package cannot be installed within the agent's normal permissions, stop and ask the user how to proceed. 9. Document the external service endpoints and data transmitted by each CLI operation so users can make an informed decision before network access occurs. ]]>
