T08 · Insecure Dependencies
- Location
SKILL.md:26- Finding
Unpinned Runtime Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:26
Vulnerability Type: Unpinned third-party dependency
Risk Level: MediumVulnerable Code Snippet:
bash pip3 install requestsTechnical Analysis
The installation instructions retrieve the latest available release of the
requestspackage at installation time. No version constraint, cryptographic hash, lockfile, or explicit trusted package index is specified.Consequently, the dependency installed by users can change after the skill has been reviewed. Security depends on the integrity of the package-index configuration, the package maintainer account, and the latest package release. A compromised release or maliciously configured Python package index could introduce code that executes during installation or when the script imports
requests.Attack Path
- An attacker compromises the dependency publisher, a configured package index, or the dependency distribution process.
- The attacker publishes or serves a malicious package version under the expected package name.
- A user follows the documented
pip3 install requestsinstruction. pipretrieves the mutable, attacker-controlled release because no version or hash is enforced.- Malicious package code executes during installation or when
scripts/video_gen.pyimports the package.
Impact Assessment
Malicious dependency code would execute with the privileges of the user or Agent running
pipor the video-generation script. Depending on those privileges, it could access environment variables such asMINIMAX_API_KEY, read or modify accessible files, make arbitrary network requests, or execute commands. The scope is limited by the operating-system permissions and isolation applied to the process.- Remediation
View remediation
Remediation Suggestions
- Declare dependencies in a committed requirements or lock file.
- Pin
requestsand its transitive dependencies to reviewed versions. - Record and verify cryptographic hashes using
pip --require-hashes. - Install from an explicitly trusted package index rather than relying on ambient
pipconfiguration. - Regularly review and intentionally update pinned versions for security fixes.
- Run dependency installation and the skill itself in a restricted virtual environment or container with minimal filesystem and network privileges.
Example hardened installation pattern:
bash python3 -m pip install --require-hashes --index-url https://pypi.org/simple -r requirements.txtThe requirements file should contain reviewed versions and verified SHA-256 hashes.
