T08 · Insecure Dependencies
- Location
README.md:37- Finding
Unpinned Third-Party Dependencies Create a Mutable Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
paddleocr== paddlepaddle== onnxruntime-gpu== ``` 2. Generate and commit a dependency lockfile that includes transitive dependencies. 3. Require package hashes by using a hash-locked requirements file and installation with: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Explicitly specify and document the trusted package index. Avoid falling back to untrusted supplemental indexes. 5. Record model artifact URLs, versions, expected file sizes, and SHA-256 checksums. 6. Verify model checksums before loading downloaded artifacts. 7. Prefer vendored or internally mirrored model files when processing sensitive documents. 8. Install dependencies in an isolated virtual environment or container under a non-privileged account. 9. Add automated dependency vulnerability and provenance checks to the release process. ]]>
