T08 · Insecure Dependencies
- Location
scripts/requirements.txt:1- Finding
Unpinned Third-Party Dependencies Create a Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
python-pptx== pandas== matplotlib== seaborn== openpyxl== ``` 2. Generate a fully resolved lock file that also pins transitive dependencies. 3. Record SHA-256 hashes for all permitted artifacts and install with: ```bash pip install --require-hashes -r requirements.lock ``` 4. Install dependencies in a dedicated, unprivileged virtual environment rather than the system Python environment. 5. Configure an approved package index explicitly and disable fallback to untrusted or unexpected indexes. 6. Add automated dependency scanning and update review to the release process. Review version changes before regenerating hashes. 7. Document that dependency installation must not be performed with `sudo` or an administrator account. ]]>
