T08 · Insecure Dependencies
- Location
SKILL.md:67- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:67andscripts/videogen.py:14-18
Vulnerability Type: Unpinned third-party dependency
Risk Level: LowComplete Code Snippets:
markdown First run commands from this Skill directory. The script uses `https://ai-hive.iclip.cn/api` by default; it requires `requests`, while local video processing requires `ffmpeg`.python try: import requests except ImportError: print("Missing dependency: requests. Run pip3 install requests", file=sys.stderr) sys.exit(1)Technical Analysis
The project instructs users to install
requestswithout specifying an audited version, lockfile, package hash, or trusted package index. As a result, installation resolves mutable package content according to the user's current Python package-index configuration.The package name is legitimate and no malicious dependency is included in the repository. The risk arises from the absence of dependency-integrity controls: a compromised upstream release, compromised package index, malicious index configured with precedence, or dependency substitution in the installation environment could cause unintended code to run during package installation or import.
Attack Path
- A user runs the documented installation command,
pip3 install requests. pipresolves the dependency through the package indexes configured in the user's environment.- An attacker compromises an applicable package source, release, mirror, or package-resolution configuration.
- The installer retrieves the attacker-controlled package content because no version or hash constraint detects the substitution.
- Malicious installation or import-time code executes with the privileges of the user running the command.
- The malicious package may access files, environment variables, API credentials, and network resources available to that user.
Impact Assessment
Successful ...[truncated 554 chars]
- A user runs the documented installation command,
- Remediation
View remediation
Remediation Suggestions
- Pin
requestsand its transitive dependencies to reviewed versions in a requirements or lock file. - Generate and enforce cryptographic hashes, for example by installing with
pip install --require-hashes -r requirements.txt. - Document an approved HTTPS package index and prevent unintended fallback to untrusted indexes.
- Add automated dependency vulnerability and integrity scanning to the release process.
- Periodically update pinned versions through a controlled review process rather than resolving the latest release during installation.
- Run dependency installation and the Skill under a non-privileged account or isolated virtual environment.
- Pin
