T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party Python Dependencies
- Content
View full analysis
- Remediation
View remediation
jieba== ``` 2. Generate and commit a lock file containing all direct and transitive dependencies. 3. Record cryptographic hashes for approved distributions and enforce hash verification during installation, such as with `pip --require-hashes`. 4. Restrict package retrieval to an approved Python package index or an internally controlled package mirror. 5. Review and update pinned dependencies through a controlled process that includes vulnerability scanning, package provenance verification, and regression testing. 6. Perform dependency installation under a non-privileged account in an isolated virtual environment or container. 7. Avoid running package installation as `root` or another privileged system account. ]]>
