T08 · Insecure Dependencies
- Location
SKILL.md:23- Finding
Unpinned Third-Party Dependencies Permit Supply-Chain Code Execution
- Content
View full analysis
- Remediation
View remediation
" ``` 2. If installation from Git is required, pin a full verified commit hash rather than cloning a mutable default branch. 3. Publish a lockfile that pins all transitive dependencies. 4. Require package hashes, such as through a hash-locked requirements file and `pip install --require-hashes`. 5. Review package build configuration and dependencies before approving upgrades. 6. Install the dependency in an isolated virtual environment or container with least privilege. 7. Restrict access to credentials and sensitive local files during installation and first execution. ]]>
