T08 · Insecure Dependencies
- Location
SKILL.md:119- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 119–121
Vulnerability Type: Unpinned dependency installation without integrity verification
Risk Level: LowVulnerable Code
bash pip3 install requests python3 "$SKILL_PATH/scripts/videogen.py" init --skill-name ai-model-expert-drama-character-boardTechnical Analysis
The setup instructions install
requestswithout specifying an exact version, package hash, locked dependency set, isolated environment, or trusted package index. Consequently, the package version and its transitive dependencies are resolved at installation time and may change after this Skill has been audited.This does not demonstrate that the legitimate
requestspackage is malicious. However, the installation process depends on the security and availability of the configured Python package index, localpipconfiguration, and all packages selected by the resolver. A compromised index, malicious mirror, poisoned local package source, or future compromised dependency release could introduce code that was not included in the reviewed project.Python packages may execute build-system code during installation. Imported package code also executes with the privileges of the user running the Skill. The project provides no lock file or hashes through which users can verify that they received the dependency version reviewed by the publisher.
Attack Path
- A user follows the documented setup command and runs
pip3 install requests. pipresolves the package and dependencies using the user's currently configured indexes and mirrors.- An attacker must first compromise or control one of those dependency sources, influence local
pipconfiguration, or publish a compromised version selected by the unpinned resolver. pipdownloads the attacker-influenced artifact because no version constraint or expected hash is enforced.- Malicious build-time code may execute du ...[truncated 735 chars]
- A user follows the documented setup command and runs
- Remediation
View remediation
Remediation Suggestions
- Pin
requestsand every transitive dependency to versions that have been reviewed and tested. - Provide a lock file generated by a dependency-management tool such as
pip-tools, Poetry, oruv. - Require cryptographic hashes, for example through a requirements file used with
pip install --require-hashes. - Install dependencies in a dedicated virtual environment rather than the system Python environment.
- Explicitly use an approved HTTPS package index and prevent unexpected fallback to untrusted extra indexes or mirrors.
- Add automated dependency vulnerability and provenance scanning to the release process.
- Publish reproducible setup instructions, for example:
bash python3 -m venv .venv . .venv/bin/activate python3 -m pip install --require-hashes -r requirements.lock- Pin
