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:T08: Insecure Dependencies
Risk Level: MediumComplete Code Snippet:
markdown | 依赖缺失 | Python环境未安装ai_finance库 | 执行`pip install ai_finance`安装依赖 |English translation: If the
ai_financePython library is missing, runpip install ai_financeto install it.Technical Analysis
The Skill instructs the agent or user to install
ai_financefrom pip's default package index without specifying an exact version, cryptographic hashes, a verified publisher, or a trusted source repository. Consequently, package identity and integrity are not adequately constrained.An unpinned installation can resolve to a newly published or compromised release that was not present during the Skill audit. If the intended package name is incorrect, unavailable, or insufficiently verified, an attacker may also exploit dependency confusion or package-name squatting.
Python packages may execute package-controlled build or installation logic during installation. The package will subsequently execute arbitrary Python code when imported or invoked. The instruction is especially concerning because the Skill declares the
Bashtool atSKILL.md:9-13, making command execution available, whileSKILL.md:211separately characterizes the Skill as pure Markdown that does not require code execution.Attack Path
- The Skill or user encounters a purported missing
ai_financedependency. - Following
SKILL.md:36, the agent or user executespip install ai_finance. - pip queries its configured package index without an exact version or required hashes.
- A compromised, malicious, substituted, or unintended package release is selected.
- Package-controlled code executes during installation, import, or later use.
- That code operates with the privileges of the account that invoked pip and may access resources available to that process.
Impac
...[truncated 792 chars]
- The Skill or user encounters a purported missing
- Remediation
View remediation
Remediation Suggestions
-
Remove the package-installation instruction if
ai_financeis not genuinely required. This is preferable because the project otherwise describes itself as a pure Markdown Skill. -
If the package is required, verify its official package identity, publisher, source repository, and maintenance status before recommending installation.
-
Pin an audited, exact version rather than allowing pip to select the latest release.
-
Record cryptographic hashes in a reviewed requirements file and install with hash enforcement, for example:
bash python -m pip install --require-hashes -r requirements.txt -
Use an internally controlled package mirror or other trusted index rather than relying implicitly on the default public index.
-
Install inside an isolated virtual environment or disposable sandbox under a non-administrative account.
-
Require explicit user confirmation before dependency installation; the agent should not automatically execute installation commands.
-
Scan and review the package source, wheel contents, build configuration, transitive dependencies, and relevant release changes before approval.
-
Ensure financial API credentials are not exposed to dependency installation or validation processes.
-
