T08 · Insecure Dependencies
- Location
SKILL.md:64- Finding
Unpinned Runtime Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:60-65,scripts/videogen.py:7, andscripts/videogen.py:18-22
Vulnerability Type: Unpinned third-party dependency
Risk Level: MediumVulnerable Code
SKILL.md:60-65:bash ### 1. Install dependencies ```bash pip3 install requeststext `scripts/videogen.py:18-22`: ```python try: import requests except ImportError: print("Missing dependency: requests. Run pip3 install requests", file=sys.stderr) sys.exit(1)Technical Analysis
The installation instructions retrieve
requestsfrom the user's currently configured Python package index without pinning a reviewed version or verifying an integrity hash. The package selected during installation can therefore change over time and may also depend on local pip configuration, index mirrors, proxy settings, or additional package sources.This is a supply-chain weakness rather than evidence that the current
requestspackage is malicious. Nevertheless, the installation command does not provide reproducibility or protection against a compromised package release, compromised index, or malicious mirror.Attack Path
- An attacker compromises or controls a package source, mirror, proxy, or pip configuration used by the victim.
- The victim follows the documented
pip3 install requestsinstruction. - pip downloads an attacker-controlled or otherwise compromised package artifact.
- Package installation hooks or imported package code execute under the victim user's privileges.
- The malicious dependency can access files, environment variables, network resources, and API credentials available to the Skill process.
Impact Assessment
Successful exploitation can provide arbitrary code execution with the privileges of the user running pip or invoking the Skill. This may expose the AI-HIVE API key, submitted prompts, user-selected media, generated results, and ...[truncated 252 chars]
- Remediation
View remediation
Remediation Suggestions
-
Add a reviewed dependency file containing an exact version and cryptographic hashes, for example:
text requests==<reviewed-version> \ --hash=sha256:<verified-distribution-hash> -
Install with hash enforcement:
bash python3 -m pip install --require-hashes -r requirements.txt -
Recommend installation inside a dedicated virtual environment rather than the system Python environment.
-
Document an explicitly trusted package index and avoid untrusted extra indexes.
-
Add automated dependency vulnerability and provenance scanning to the release process.
-
Periodically update the pin only after reviewing the new release and refreshing its verified hashes.
-
