T08 · Insecure Dependencies
- Location
scripts/rewrite_client.py:11- Finding
Unpinned Third-Party Dependency Installation Guidance
- Content
View full analysis
- Remediation
View remediation
``` 2. Generate and verify cryptographic hashes for production installations, such as by using a hash-locked requirements file with: ```bash pip install --require-hashes -r requirements.txt ``` 3. Commit a lock file generated by the project's selected dependency-management tool and review dependency updates before deployment. 4. Install packages only from an explicitly trusted package index, preferably in an isolated virtual environment. 5. Replace the unconstrained installation message with instructions that reference the project's locked dependency file, for example: ```text Install the reviewed dependencies with: pip install --require-hashes -r requirements.txt ``` 6. Add automated dependency and supply-chain scanning to CI, and verify package provenance where supported. ]]>
