T08 · Insecure Dependencies
- Location
SKILL.md:36- Finding
Unverified and Unpinned Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:36
Vulnerability Type: Supply-chain exposure through an unpinned package installation
Risk Level: HighComplete Source Snippet:
markdown | 依赖缺失 | Python环境未安装ai_finance库 | 执行`pip install ai_finance`安装依赖 |The source instructs the user to run
pip install ai_financewhen the dependency is unavailable.Technical Analysis
The installation command retrieves the latest package published under the
ai_financename from the package index configured forpip. It does not specify:- An audited package version
- An expected package hash
- A trusted package index
- The publisher or official package provenance
- A lockfile or other reproducible dependency manifest
Python packages can execute package-controlled code during installation or when imported. Consequently, dependency confusion, account compromise, package replacement, or an incorrect package name could cause unreviewed code to execute locally. The artifact itself contains no Python implementation demonstrating why this package is required, and the package is not consistently documented in the later dependency table.
This finding does not establish that the current
ai_financepackage is malicious. The vulnerability is the instruction to install an unverified and mutable third-party dependency.Attack Path
- The skill reports or encounters a missing
ai_financedependency. - The user or an agent follows the documented troubleshooting instruction.
pipresolvesai_financefrom the configured package index without enforcing an approved version or hash.- An attacker-controlled, compromised, or unintended distribution is downloaded.
- Package installation hooks or a later import execute package-controlled code.
- The code runs with the privileges of the user executing
pip; this impact increases if installation is combined with the document's administrator-elevation ...[truncated 485 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the installation instruction unless a concrete, reviewed implementation requires the package.
- Verify the official package name, publisher, source repository, and expected registry.
- Pin the dependency to a reviewed version, for example through a locked requirements file.
- Enforce package hashes with
pip install --require-hashes. - Configure an explicitly trusted package index rather than relying on ambient
pipconfiguration. - Install dependencies in an isolated virtual environment under a non-privileged account.
- Add the dependency and its purpose to the formal dependency table.
- Perform software-composition analysis and package integrity checks before release.
