T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unpinned and Unnecessary Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
``` 3. Generate and enforce cryptographic hashes using a lock-file workflow such as `pip-compile --generate-hashes`. 4. Install with hash verification enabled: ```bash python -m pip install --require-hashes -r requirements.txt ``` 5. Obtain packages only from approved indexes over TLS, and prevent fallback to untrusted indexes. 6. Add automated dependency vulnerability and license scanning to the release process. 7. Review and deliberately update locked dependencies rather than resolving the latest release during deployment. ]]>
