T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Unpinned and Unnecessary Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
``` 2. Pin `numpy` to a reviewed version compatible with the supported Python versions. 3. Generate and verify cryptographic hashes, then install with hash enforcement: ```bash python -m pip install --require-hashes -r requirements.txt ``` 4. Use a trusted, explicitly configured package index and prevent unintended fallback to untrusted or internal-name-conflicting indexes. 5. Maintain a lock file or fully resolved requirements file so development and CI installations use the same reviewed dependency graph. 6. Remove `scipy` from `SKILL.md` unless it becomes an actual reviewed runtime dependency. 7. Add automated dependency scanning and scheduled review of pinned versions, updating pins only after compatibility and security validation. 8. Install dependencies in an isolated virtual environment or restricted CI container without unnecessary secrets or host permissions. ]]>
