T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Ambiguous and Unpinned Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
``` 2. Pin reviewed versions of `lxml` and `PyPDF2` as well. 3. Generate a lock file containing cryptographic hashes, such as with `pip-tools`, and install with hash verification: ```bash pip install --require-hashes -r requirements.lock ``` 4. Restrict package installation to approved package indexes and disable untrusted supplemental indexes. 5. Run software-composition analysis and vulnerability scanning against the resolved dependency graph. 6. Install and execute dependencies in a least-privilege, isolated environment without access to unrelated secrets or files. 7. Keep `requirements.txt`, `SKILL.md`, and import statements consistent so that reviewers can verify the exact distributions being used. ]]>
