T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unpinned and Unnecessary Third-Party Dependencies Create Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
pandas== scipy== ``` 4. Generate and verify hashes for every distribution, then install using: ```bash python -m pip install --require-hashes -r requirements.txt ``` 5. Pin `pipreqs` to a reviewed version if it remains part of the workflow. 6. Use a lock file or a tool such as `pip-tools` to pin transitive dependencies. 7. Perform dependency vulnerability and provenance checks in CI, and update dependencies through a controlled review process. 8. Install dependencies inside an isolated virtual environment using a non-privileged account. ]]>
