T08 · Insecure Dependencies
- Location
SKILL.md:72- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:72
Vulnerability Type: Unpinned runtime dependency installation
Risk Level: MediumComplete Code Snippet:
bash pip3 install requestsTechnical Analysis
The installation instructions retrieve
requestsand its transitive dependencies from the user's configured Python package index without specifying exact versions or verifying package hashes. Consequently, the installed artifacts may change after the skill has been reviewed.This creates a software supply-chain risk. A compromised package repository, malicious package-index configuration, dependency confusion condition, or compromised future dependency release could cause attacker-controlled installation code to execute when the user follows the documented setup instructions.
The audit found no evidence that the project intentionally retrieves a known malicious package. The risk arises from mutable, unverified dependency resolution.
Attack Path
- An attacker compromises a relevant package release, transitive dependency, or package index used by the target.
- A user follows
SKILL.mdand runspip3 install requests. - Pip resolves the dependency from the compromised or attacker-controlled source without enforcing a reviewed version or cryptographic hash.
- Malicious installation or imported runtime code executes with the privileges of the user running pip or the skill.
- The malicious dependency can access data and resources available to that user, potentially including the AI Hive API key and media files processed by the skill.
Impact Assessment
Successful exploitation could result in arbitrary code execution under the installing user's account. The accessible scope may include user-readable files, environment variables, the API key stored in
~/.ai-hive/config.json, submitted media, generated output, and network resources available to the process.If installation is performed from an elevated shell or sys ...[truncated 193 chars]
- Remediation
View remediation
Remediation Suggestions
- Add a reviewed dependency lock file containing exact versions and cryptographic hashes.
- Replace the mutable installation instruction with a hash-enforcing command, such as:
bash python3 -m pip install --require-hashes -r requirements.txt- Pin
requestsand every transitive dependency inrequirements.txt, for example:
text requests==<reviewed-version> --hash=sha256:<verified-hash>- Generate hashes only from trusted artifacts and review dependency updates before changing the lock file.
- Recommend installation in a dedicated virtual environment rather than a system-wide Python environment.
- Document the expected trusted package index and advise users to inspect pip configuration for unauthorized indexes or mirrors.
- Consider automated dependency scanning and controlled update tooling to detect known vulnerable or compromised releases.
