T08 · Insecure Dependencies
- Location
SKILL.md:23- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:23-29
Vulnerability Type: Unpinned and unverified third-party dependency installation
Risk Level: MediumVulnerable Code Snippet:
markdown ## Requirement - argparse - datetime - volcengine-python-sdk - base64 - os If not exits ,you need pip it.Technical Analysis
The Skill instructs the Agent to install missing dependencies with
pipbut does not provide an exact package version, dependency lock file, cryptographic hashes, trusted package index, or package verification procedure.Consequently, the package resolved at installation time can differ from the package reviewed when the Skill was published. Python package installation can execute package-controlled build or installation logic. The requirements list also mixes the external
volcengine-python-sdkdependency with Python standard-library modules such asargparse,datetime,base64, andos. The broad instruction to install anything missing could therefore cause mistaken package installation.This constitutes a supply-chain weakness rather than evidence that the currently referenced SDK is malicious.
Attack Path
- The Agent loads the Skill and attempts to execute
scripts/main.py. - The external SDK is unavailable in the current environment.
- Following
SKILL.md, the Agent usespipto install the missing dependency. pipresolves mutable package content from an unspecified package index without validating a pinned version or hash.- A compromised release, malicious similarly named package, dependency-confusion package, or compromised transitive dependency executes installation or runtime code.
- That code runs with the Agent process's privileges and can access data available to that process, including workspace files and environment-provided credentials.
Impact Assessment
Successful exploitation could permit arbitrary code execution under ...[truncated 613 chars]
- The Agent loads the Skill and attempts to execute
- Remediation
View remediation
Remediation Suggestions
- Pin
volcengine-python-sdkto a reviewed exact version. - Provide a lock file containing all transitive dependency versions.
- Record and verify cryptographic hashes, and install with a command such as
pip install --require-hashes -r requirements.txt. - Explicitly configure a trusted package index rather than relying on ambient
pipconfiguration. - Remove
argparse,datetime,base64, andosfrom the installation requirements because they are Python standard-library modules. - Replace the ambiguous “pip it” instruction with an exact, reviewed installation command.
- Install dependencies in an isolated virtual environment using an unprivileged account.
- Avoid exposing Jimeng credentials to package installation processes; inject narrowly scoped credentials only when running the audited image-generation script.
- Pin
