T08 · Insecure Dependencies
- Location
SKILL.md:74- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:74andscripts/imagegen.py:7, 21
Vulnerability Type: Unpinned third-party dependency
Risk Level: LowThe project instructs users to install
requestswithout constraining its version or verifying package integrity.text pip3 install requestsThe same installation instruction appears in the script:
python """AI Hive image generation task utility. Only exposes image generation for the fixed model, permitted reference-image uploads, task queries, and API key initialization. It queries model and routing prices during generation, then polls and downloads the result. Dependency: requests (pip3 install requests) """python try: import requests except ImportError: print("Missing dependency: requests. Run pip3 install requests", file=sys.stderr) sys.exit(1)Technical Analysis
The package name is legitimate and no dependency confusion or typosquatting is directly present in the repository. However, the installation command resolves a mutable package version from whichever Python package index is configured on the user's system. There is no lock file, exact version constraint, hash verification, or documented trusted index.
Consequently, the code that is eventually imported has not necessarily been reviewed with the skill. Exploitation requires compromise of the configured package index, a malicious package release, an unsafe mirror, or hostile pip configuration. This is a supply-chain hardening weakness rather than evidence that the current
requestspackage is malicious.Attack Path
- A user follows the documented
pip3 install requestsinstruction. - Pip connects to the user's configured index or mirror and resolves the latest acceptable release.
- An attacker who controls or has compromised that distribution channel supplies a malicious package artifact.
- The artifact is installed i ...[truncated 629 chars]
- A user follows the documented
- Remediation
View remediation
Remediation Suggestions
- Add a reviewed dependency manifest with an exact version, such as
requests==X.Y.Z. - Generate and verify cryptographic hashes, for example with a hash-locked requirements file and
pip install --require-hashes. - Use a lock-file workflow and periodically update dependencies after security review.
- Recommend
python3 -m pipso installation targets the interpreter used to execute the script. - Document a trusted package index and discourage installation from untrusted mirrors.
- Run the skill in a dedicated virtual environment without administrative privileges.
- Add a reviewed dependency manifest with an exact version, such as
