T08 · Insecure Dependencies
- Location
skill.md:14- Finding
Unpinned Third-Party Python Dependency Installation
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Use a lock file or requirements file containing cryptographic hashes: ```text zai== \ --hash=sha256: ``` Install it with hash enforcement: ```bash pip install --require-hashes -r requirements.txt ``` 3. Obtain the expected hash from a trusted release process and verify the package name, publisher, and official distribution source before documenting it. 4. Review and approve dependency updates rather than automatically accepting the newest release. Use automated vulnerability monitoring while requiring human review for lock-file changes. 5. Install the package in a dedicated virtual environment or minimally privileged container. Do not run `pip` as root, and avoid exposing unrelated credentials to installation steps. 6. Separate dependency installation from runtime execution where practical. Do not provide `ZHIPUAI_API_KEY` or other production secrets to the package installation process. 7. Update both the metadata `install_command` and the documented shell example so they use the same pinned, integrity-verified dependency specification. ]]>
