T08 · Insecure Dependencies
- Location
SKILL.md:65- Finding
Unpinned Third-Party PM2 Module Installation
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Resolve and record the package's expected integrity digest, then verify the downloaded artifact before production installation. 3. Use an organization-controlled or explicitly approved package registry rather than relying on an unrestricted default registry. 4. Review the selected package version, its transitive dependencies, and all lifecycle scripts before deployment. 5. Test the exact pinned artifact in an isolated staging environment before installing it on production systems. 6. Run PM2 under a dedicated, least-privileged service account with narrowly scoped access to application files and secrets. 7. Apply outbound network restrictions where feasible so the production account can retrieve packages only from approved repositories. 8. Prefer building and validating an immutable deployment artifact in CI, then promote that same artifact to production instead of dynamically installing the latest package on the server. ]]>
