T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
``` 2. Maintain a locked requirements file containing cryptographic hashes and install it with hash enforcement: ```bash python -m pip install --require-hashes -r requirements.txt ``` 3. Pin and review transitive dependencies through a reproducible lockfile or equivalent dependency-management process. 4. Document the expected official package index and package identity. Avoid untrusted mirrors or supplemental indexes that could enable dependency confusion. 5. Install the dependency in a dedicated virtual environment under a non-privileged account. 6. Review package updates before changing the pinned version, including provenance, release metadata, dependency changes, and published artifacts. 7. Correct the documentation stating that installation occurs automatically, or implement an explicit, reviewable installation mechanism with version and integrity verification. Automatic package installation at runtime should be avoided. ]]>
