T08 · Insecure Dependencies
- Location
SKILL.md:113- Finding
Unpinned Third-Party Dependencies Installed Without Integrity Verification
- Content
View full analysis
- Remediation
View remediation
Pillow== ``` 2. Generate and record SHA-256 hashes for every direct and transitive dependency. 3. Require hash verification during installation: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 4. Use a lock-file workflow such as `pip-tools` to pin the complete transitive dependency graph. 5. Install dependencies inside a dedicated virtual environment rather than a global or privileged Python environment. 6. Configure a trusted package index explicitly and prevent unintended fallback to untrusted indexes. 7. Review and update pinned versions regularly for security fixes, regenerating hashes only after the new artifacts have been verified. 8. Avoid running dependency installation as root or with administrator privileges. ]]>
