T08 · Insecure Dependencies
- Location
SKILL.md:24- Finding
Unpinned Tencent Cloud SDK Installation in Skill Documentation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:24-26
Vulnerability Type: Unpinned third-party dependency
Risk Level: MediumVulnerable Code:
bash pip install tencentcloud-sdk-pythonTechnical Analysis
The documented installation command retrieves the current version of
tencentcloud-sdk-pythonwithout an exact version constraint or an integrity hash. Consequently, the code installed by users can change after the Skill has been reviewed.Package installation and subsequent SDK imports can execute third-party code with the privileges of the user running the Skill. The script also gives the SDK access to
TENCENT_SECRET_IDandTENCENT_SECRET_KEY, making dependency integrity especially important.This is a supply-chain hardening issue. There is no evidence in the audited project that the currently published SDK is malicious, but the mutable installation instruction leaves users exposed to a compromised package release or publisher account.
Attack Path
- An attacker compromises the package publisher, distribution account, or upstream release process.
- The attacker publishes a malicious version under the legitimate package name.
- A user follows the documented unpinned installation command.
- Package installation or import-time code executes with the user's local privileges.
- The malicious dependency reads credentials or other process-accessible data and exfiltrates it, or performs arbitrary actions permitted to the user.
Impact Assessment
Successful exploitation could provide code execution with the privileges of the user installing or running the Skill. Potentially exposed assets include Tencent Cloud credentials, submitted prompts, generated image metadata, and any local files accessible to that user. The cloud impact would be bounded by the permissions assigned to the affected Tencent credentials.
- Remediation
View remediation
Remediation Suggestions
- Pin
tencentcloud-sdk-pythonto a reviewed exact version. - Publish a requirements or lock file containing cryptographic hashes.
- Install with hash verification, such as
pip install --require-hashes -r requirements.txt. - Use an isolated virtual environment rather than the system Python environment.
- Establish a dependency update process that includes release review and security scanning.
- Assign the Tencent credentials only the API permissions required for Hunyuan image generation.
- Pin
