T08 · Insecure Dependencies
- Location
SKILL.md:51- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
``` 2. Maintain dependencies in a dedicated requirements or lock file rather than relying only on documentation: ```bash python -m pip install -r requirements.txt ``` 3. Generate and verify cryptographic hashes for reproducible installation, for example with a hash-locked requirements file: ```text openai== \ --hash=sha256: ``` Install it using: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Pin and hash all transitive dependencies through a dependency-locking tool where practical. 5. Regularly review pinned releases for known vulnerabilities and update them through a controlled testing and approval process. 6. Document use of the official Python Package Index or an authenticated internal package mirror. Avoid untrusted extra indexes. 7. Recommend installation in a dedicated virtual environment under a non-privileged account, and explicitly discourage running `pip` with administrator or root privileges. ]]>
