T08 · Insecure Dependencies
- Location
README.md:32- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
``` 2. Generate and verify cryptographic hashes using a reproducible dependency-management process. Install with hash enforcement where practical: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Maintain a lock file produced by a tool such as `pip-tools`, and review dependency updates before changing locked versions. 4. Install dependencies in a dedicated virtual environment rather than the system Python environment: ```bash python3 -m venv .venv . .venv/bin/activate python3 -m pip install --require-hashes -r requirements.txt ``` 5. Update all installation examples in `README.md`, `README-CN.md`, and `transcribe.py` so they reference the same pinned dependency file. 6. Document the expected official package index and discourage installation from untrusted mirrors or alternate package sources. 7. Consider verifying downloaded Whisper model artifacts through the integrity mechanisms supported by the upstream library, because `whisper.load_model()` downloads model data on first use. ]]>
