T08 · Insecure Dependencies
- Location
SKILL.md:29- Finding
Unpinned External Package Retrieval and Execution
- Content
View full analysis
- Remediation
View remediation
git verify-commit npm ci ``` 6. Pin the repository to a signed, immutable commit or release tag and document the expected commit hash. Do not execute code directly from a mutable default branch. 7. Review package lifecycle scripts and initially install with lifecycle execution disabled where compatible: ```bash npm ci --ignore-scripts ``` Any required lifecycle script should be audited before being run separately. 8. Execute package inspection and initial verification in a sandbox or container with no production credentials, minimal filesystem access, and restricted network permissions. 9. Add provenance verification, dependency auditing, and lockfile validation to the release process. Regenerate trusted hashes whenever the documented package version changes. ]]>
