T08 · Insecure Dependencies
- Location
SKILL.md:16- Finding
Unpinned Third-Party Dependencies Installed from a Mutable Package Source
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 16
Vulnerability Type: Unpinned runtime dependency installation
Risk Level: MediumVulnerable Code
bash pip install requests openaiTechnical Analysis
The installation instructions retrieve
requestsandopenaiwithout version constraints, integrity hashes, or a lock file. Consequently, the code installed depends on whichever package versions the package index resolves at installation time rather than versions reviewed together with this Skill.This creates a supply-chain risk: a malicious or compromised future package release, a compromised package index or mirror, or unsafe package-index configuration could cause unreviewed code to execute during package installation or when the Skill imports these dependencies. The project does not itself retrieve and execute a remote script, but its mutable dependency resolution prevents the audited source from fully defining the code that will run.
Attack Path
- An attacker compromises a future release of one of the named dependencies, its publisher account, or a package source used by the environment.
- A user follows the documented
pip install requests openaiinstruction. pipresolves and downloads the attacker-controlled or otherwise compromised package version because no reviewed version or hash is required.- Malicious code executes during installation or when
subtitle_skill.pyimports and uses the package. - The malicious dependency operates with the privileges of the Python or pip process and can access resources available to that process.
Impact Assessment
Successful exploitation could execute arbitrary Python code with the invoking user's privileges. In this Skill's expected environment, that scope may include access to local media and subtitle files, the
GROQ_API_KEYandLLM_API_KEYenvironment variables, network connectivity, and other files readable or writable by the process. It could there ...[truncated 152 chars]- Remediation
View remediation
Remediation Suggestions
-
Replace the mutable installation command with a reviewed, version-pinned dependency file, for example:
text requests==REVIEWED_VERSION openai==REVIEWED_VERSION -
Generate and verify cryptographic hashes for all direct and transitive dependencies, then install with:
bash python -m pip install --require-hashes -r requirements.txt -
Use a lock-file workflow so transitive dependency versions are reproducible.
-
Explicitly use the trusted official package index or an organization-controlled, authenticated mirror.
-
Run dependency vulnerability and provenance checks before updating locked versions.
-
Install and run the Skill in an isolated virtual environment or container with minimal filesystem access and only the required environment variables.
-
