T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:924
- Finding
- Unpinned Third-Party Package Installation Creates a Supply-Chain Risk<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:924-932` **Vulnerability Type**: T08: Insecure Dependencies **Risk Level**: Medium ### Vulnerable Code Snippet ```markdown **Problem: Cannot install or run tool** - Symptoms: Import errors, missing dependencies, execution failures - Causes: - Missing Python packages (pysam, numpy, matplotlib) - Incompatible Python version - Missing reference genome index files - Solutions: - Install required packages: `pip install pysam numpy matplotlib pandas` - Use Python 3.8 or higher ``` ### Technical Analysis The troubleshooting instructions direct users or an AI agent with Bash access to install four packages from the configured Python package index. No versions or hashes are pinned, and the instructions do not require an isolated environment, reviewed lock file, or explicitly trusted package repository. Python package installation can execute package build hooks and other installation-time code. Because dependency resolution is mutable, the code installed when the command is run may differ from the code that existed when this skill was audited. The risk applies both to the explicitly named packages and to their transitive dependencies. No evidence indicates that the named packages are currently malicious. The vulnerability is the unsafe and non-reproducible installation procedure rather than a confirmed compromise of those packages. ### Attack Path 1. A user encounters an import or dependency error. 2. The user or agent follows the documented troubleshooting instruction. 3. `pip` resolves the latest compatible versions from its configured index and may also resolve transitive dependencies. 4. An attacker who has compromised a package release, transitive dependency, package index, or local pip index configuration supplies malicious package content. 5. Installation hooks or subsequently imported malicious code execute under the account running `pip`. ### Impact Assessment Successful exploita ...[truncated 717 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Create a reviewed dependency lock file containing exact versions. 2. Require package hashes, for example: ```bash python -m venv .venv . .venv/bin/activate python -m pip install --require-hashes -r requirements.txt ``` 3. Pin all direct and transitive dependencies in `requirements.txt`. 4. Configure installation to use an explicitly trusted package index. 5. Perform dependency vulnerability and provenance scanning before releases. 6. Avoid installing packages globally or with administrator privileges. 7. Reconcile the dependency documentation: `SKILL.md` also states that no additional packages are required, which conflicts with this troubleshooting instruction. ]]>
