T08 · Insecure Dependencies
- Location
SKILL.md:168- Finding
Unpinned Third-Party Package Installation Guidance
- Content
View full analysis
- Remediation
View remediation
--hash=sha256: pypdf== --hash=sha256: python-docx== --hash=sha256: ``` 2. Generate and enforce hashes for all direct and transitive dependencies. Install with: ```bash python -m pip install --require-hashes -r requirements.txt ``` 3. Require an explicitly trusted package index, preferably through centrally managed configuration. Do not permit fallback to arbitrary extra indexes. 4. Install dependencies inside an isolated, least-privileged virtual environment or container rather than the host or system Python environment. 5. Replace ad hoc installation instructions in `SKILL.md` and script error messages with references to the reviewed lockfile. 6. Do not automatically install missing dependencies at runtime. Fail safely and require an explicit, auditable setup step. 7. Periodically scan locked dependencies for known vulnerabilities and review lockfile updates before deployment. ]]>
