T08 · Insecure Dependencies
- Location
scripts/check_env.py:32- Finding
Automatic Installation of an Unpinned Third-Party Dependency
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Maintain a lock or requirements file containing exact versions for `edge-tts` and all transitive dependencies. 3. Require cryptographic hashes during installation: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Configure an explicitly trusted package index or an internally controlled package mirror. 5. Require an isolated virtual environment and avoid modifying system-wide Python installations. 6. Ask for explicit user confirmation before installing dependencies. Prefer making `check_env.py` diagnostic-only and provide a separate, documented installation command. 7. Separate dependency verification from network checks and report the exact package version and source being used. 8. Add automated dependency scanning and periodically review pinned versions before updating the lock file. ]]>
