T08 · Insecure Dependencies
- Location
SKILL.md:18- Finding
Unpinned Third-Party Packages and Repository References Executed Through npx
- Content
View full analysis
- Remediation
View remediation
add PrunaAI/pruna-skills@branding ``` 2. Pin repository content to an immutable commit hash or signed release artifact rather than a mutable branch, tag, or skill selector. 3. Commit and verify lockfiles where package-manager workflows support them. Use npm integrity metadata, checksums, or cryptographic signatures to validate downloaded artifacts. 4. Remove `-y` from documentation where practical so users can review the resolved package and installation operation before execution. 5. Prefer a trusted, preinstalled version of the installation tool in controlled environments rather than allowing `npx` to download an executable package on demand. 6. Run installation in a restricted environment with least privilege, limited filesystem access, no unnecessary credentials in environment variables, and constrained outbound network access. 7. Add documentation stating that the installation commands execute third-party code and should only be used after verifying the resolved package version and repository revision. ]]>
