T08 · Insecure Dependencies
- Location
SKILL.md:4- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Require integrity verification, such as a locked requirements file containing cryptographic hashes: ```bash python -m pip install --require-hashes -r requirements.txt ``` 3. Document the authoritative upstream repository and verify that the PyPI publisher, source repository, and expected package ownership correspond. 4. Prefer an official, trusted distribution channel. If the third-party Homebrew tap is necessary, pin or otherwise verify the formula revision and downloaded artifact checksum. 5. Review the pinned package's source, build configuration, transitive dependencies, and installation hooks before approving it for agent-controlled installation. 6. Perform installation and execution as an unprivileged user in an isolated environment, such as a dedicated Python virtual environment or sandbox. Do not use `sudo` for package installation. 7. Introduce an explicit dependency-update process so newer versions are reviewed and their pins and hashes are updated deliberately rather than being selected automatically at installation time. ]]>
