T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Generate and maintain a dependency lockfile that also constrains transitive dependencies. 3. Record cryptographic hashes for all resolved distributions and install with hash enforcement, such as: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Download packages only from an explicitly approved package index over HTTPS, and avoid untrusted extra indexes. 5. Review package provenance, release signatures or attestations where available, maintainer changes, and dependency updates before changing the pinned version. 6. Install and run the package in an isolated virtual environment or container under a non-privileged account. 7. Provide only the API credentials required for the selected providers and avoid exposing unrelated secrets to the process. 8. Add automated dependency vulnerability and integrity scanning to the update workflow. ]]>
