T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:42
- Finding
- Unpinned Third-Party Packages May Execute Untrusted Supply-Chain Code<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 42-47 and 64-67 **Vulnerability Type**: Unpinned dependency installation and immediate execution **Risk Level**: Medium ### Vulnerable Code ```bash # Install solograph pip install solograph # or uvx solograph ``` The Skill also recommends immediate package retrieval and execution: ```bash uvx solograph-cli index-youtube -c <handle> -n 10 ``` Additional unpinned installation guidance appears at lines 151-155: ```bash pip install solograph ``` ### Technical Analysis The Skill installs or executes third-party Python packages without specifying reviewed versions, cryptographic hashes, or a verified package source. In particular, `uvx` can retrieve and immediately execute the currently published package from a package registry. The documentation alternates between the package or command names `solograph` and `solograph-cli`. Without explicit clarification of the canonical distribution name and publisher, this inconsistency increases the risk of package substitution, typosquatting, or dependency confusion. The effective code executed by these commands can change after the Skill has been audited because the package registry determines which current release is downloaded. Therefore, reviewing `SKILL.md` alone cannot establish the safety of the code ultimately executed. ### Attack Path 1. An attacker publishes a package under a confusingly similar or incorrectly referenced name, compromises the legitimate package, or compromises a future package release. 2. A user or agent follows the Skill's installation guidance or invokes the documented `uvx` command. 3. The package manager retrieves the current unpinned package from the configured registry. 4. Package installation hooks, imported modules, or the package entry point execute attacker-controlled code. 5. The malicious code runs with the permissions and environment available to the user or agent executing the Skill. ### Impact Assessment ...[truncated 650 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin every dependency to a reviewed, exact version rather than installing the latest available release. 2. Use hash-verified installation, such as a locked requirements file containing `--hash` entries. 3. Document the canonical package name, publisher, official repository, and expected command name. 4. Resolve the inconsistency between `solograph` and `solograph-cli` before recommending either package. 5. Avoid retrieving and immediately executing packages through `uvx`; separate package acquisition, verification, and execution. 6. Install dependencies in an isolated virtual environment or sandbox with minimal filesystem and network permissions. 7. Review package updates before changing the pinned version. 8. Prefer a trusted internal package mirror or an allowlisted registry when the Skill is deployed in a sensitive environment. ]]>
