T08 · Insecure Dependencies
- Location
SKILL.md:226- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
- Remediation
View remediation
``` 2. Place dependencies in a version-controlled requirements or lock file and install from that file: ```bash python3 -m pip install -r requirements.txt ``` 3. Record cryptographic hashes and enforce them during installation: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 4. Generate the lock file through a controlled dependency-review process and update it only after compatibility and security testing. 5. Install dependencies inside a dedicated virtual environment under a non-privileged account: ```bash python3 -m venv .venv . .venv/bin/activate python3 -m pip install --require-hashes -r requirements.txt ``` 6. In higher-assurance environments, use an approved internal package mirror, restrict fallback to public indexes, and retain provenance or software-bill-of-materials records for installed artifacts. 7. Run vulnerability and license scanning against the resolved dependency set before deployment. ]]>
