T08 · Insecure Dependencies
- Location
SKILL.md:24- Finding
Execution of Unpinned Third-Party Repository Scripts and Dependencies
- Content
View full analysis
- Remediation
View remediation
``` 2. Verify the selected commit using a trusted signed release or an independently distributed expected commit hash. 3. Review and vendor the required setup and download scripts inside the audited artifact, or publish their expected cryptographic checksums. 4. Use a dependency lockfile with exact versions and hashes. For direct installation, require a reviewed version and hash rather than: ```bash pip install flash-attn --no-build-isolation ``` 5. Pin HuggingFace models to immutable revisions and verify model files where checksums are available. 6. Require checksums or signatures for downloaded datasets and archives before parsing or extracting them. 7. Execute third-party setup and build operations in an isolated container or disposable virtual machine with: - No production credentials - No unnecessary host mounts - A non-root user - Restricted outbound network access - Minimal filesystem permissions 8. Inspect shell scripts and package build metadata before execution, particularly for network downloads, credential access, shell expansion, and lifecycle hooks. ]]>
