T08 · Insecure Dependencies
- Location
scripts/script.sh:41- Finding
Unpinned Third-Party Dependency Installation Guidance
- Content
View full analysis
- Remediation
View remediation
``` 2. Generate and enforce cryptographic hashes: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Install dependencies in an isolated virtual environment rather than the system Python environment: ```bash python3 -m venv .venv . .venv/bin/activate python3 -m pip install --require-hashes -r requirements.txt ``` 4. Document the trusted package index and discourage installation through untrusted mirrors or custom index URLs. 5. Avoid recommending installation with administrator or root privileges. 6. Consider replacing `requests` with Python standard-library HTTP functionality, which would remove this external runtime dependency. 7. Update `SKILL.md` so its requirements accurately disclose any third-party dependencies. If the dependency remains, remove the “standard library only” claim. ]]>
