T08 · Insecure Dependencies
- Location
SKILL.md:659- Finding
Unpinned Third-Party Dependencies Create Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
\ langchain-openai== \ datasets== ``` 2. Publish a lock file generated from a reviewed environment and require hash verification, for example: ```bash python -m pip install --require-hashes -r requirements.lock ``` 3. Pin all transitive dependencies, not only direct dependencies. 4. Document the approved package index and use index allowlisting where practical: ```bash python -m pip install --index-url https://pypi.org/simple --require-hashes -r requirements.lock ``` 5. Install dependencies in an isolated, non-privileged virtual environment or container. Do not recommend running package installation with `sudo`. 6. Add automated dependency scanning and update review, including vulnerability advisories, package ownership changes, and lock-file diffs. 7. For directly downloaded NLP resources, publish expected SHA-256 hashes and verify them before use. ]]>
