T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unpinned Third-Party Dependencies Create a Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
pandas== scipy== ``` 2. Generate a lock file that includes all transitive dependencies. 3. Record cryptographic hashes and install with hash verification: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Use a controlled package index or approved internal mirror. 5. Integrate dependency vulnerability and provenance scanning into release workflows. 6. Regularly update pinned versions through a reviewed process rather than allowing installations to resolve automatically to the newest available releases. 7. Install and run the project in a least-privileged virtual environment or container. ]]>
