T08 · Insecure Dependencies
- Location
SKILL.md:133- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
``` 2. Store dependencies in a version-controlled requirements file and require cryptographic hashes: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Generate the requirements file with hashes for the approved package and all transitive dependencies. 4. Use an explicitly trusted index and prevent unintended fallback to untrusted extra indexes: ```bash python3 -m pip install \ --index-url https://pypi.org/simple \ --require-hashes \ -r requirements.txt ``` 5. Install dependencies in an isolated virtual environment under an unprivileged account. Do not run the installation with `sudo` or administrator permissions. 6. Add automated dependency scanning and a controlled process for reviewing and updating pinned versions. 7. Keep Namecheap credentials out of the environment during dependency installation. Inject them only when the reviewed DNS-management implementation is executed. ]]>
