T08 · Insecure Dependencies
Warning
- Location
SKILL.md:44- Finding
Third-Party Code Installation Without Immutable Source Pinning
- Content
View full analysis
- Remediation
View remediation
``` 2. Publish expected package integrity information and verify the downloaded npm artifact against that value before execution. 3. Require verification of npm provenance and signatures before launching or globally installing the package. Verification should confirm the expected package identity, source repository, release version, and build origin. 4. Use a committed lockfile with integrity fields for clone-based installation. Prefer deterministic installation such as `npm ci` instead of an unconstrained `npm install`. 5. Disable lifecycle scripts during dependency acquisition where feasible: ```bash npm ci --ignore-scripts ``` Any required lifecycle or build scripts should then be reviewed and run explicitly. 6. Avoid global installation where possible. Execute the server in an isolated environment or container with access only to the required credentials, session file, and network destinations. 7. Apply least privilege to the session cache and credential environment. Ensure the session file is readable only by its owner and is not placed in a shared or world-readable directory. 8. Document a trusted release-verification procedure that users must complete before installation, rather than presenting post-installation verification as optional. ]]>
