T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
- Remediation
View remediation
" ``` 2. Generate and verify cryptographic hashes for the package and all transitive dependencies, then install with: ```bash python3 -m pip install --require-hashes -r requirements.txt ``` 3. Obtain packages only from an explicitly approved package index or internal artifact repository. 4. Verify the package publisher, release provenance, signatures, and expected dependency set before approving upgrades. 5. Install the CLI inside a dedicated virtual environment rather than into the system Python environment. 6. Run the CLI as a non-privileged operating-system user and avoid privileged or system-wide pip installation. 7. Use a least-privileged Tencent Cloud identity, rotate credentials regularly, and prefer short-lived credentials where supported. 8. Establish a controlled dependency-update process that reviews and tests each new version before changing the pin. ]]>
