T08 · Insecure Dependencies
- Location
skill.md:76- Finding
Unpinned External Package Installation and Execution
- Content
View full analysis
- Remediation
View remediation
``` 4. Publish and verify cryptographic checksums or package signatures through a trusted channel. 5. Commit a lockfile and use `npm ci` for deterministic dependency installation. 6. Use `npm ci --ignore-scripts` where lifecycle scripts are unnecessary. If scripts are required, document and audit each script before execution. 7. Replace direct `npx` execution with a pinned package version and an explicit verification step. 8. Run the package in a sandbox or container with minimal filesystem access, no unnecessary credentials, restricted network access, and a non-privileged account. 9. Add automated dependency and provenance checks, such as lockfile auditing, registry provenance validation, and continuous monitoring for compromised or deprecated dependencies. ]]>
