T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:34
- Finding
- Unpinned Installation of Third-Party Runtime Code## Vulnerability Details **File Location**: `SKILL.md`, lines 34–42 **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: Medium **Vulnerable Code**: ```bash pip install galdr # or from source: git clone https://github.com/sellemain/galdr.git cd galdr pip install -e . ``` ### Technical Analysis The Skill instructs the operator to install executable Python code from PyPI or clone and install the current state of a remote repository. Neither installation method is pinned to an exact package version, immutable commit, or verified artifact hash. Because the reviewed Skill contains only documentation and metric references, the actual `galdr` runtime implementation is outside the audited artifact. Its effective behavior can consequently change without any modification to this Skill. Although the documented PyPI project and GitHub repository appear consistent with the declared project identity, the instructions do not provide cryptographic integrity verification. This is a supply-chain weakness rather than evidence that the current upstream project is malicious. ### Attack Path 1. An attacker compromises an upstream package, repository, maintainer account, release process, or transitive dependency. 2. The attacker publishes malicious code under the expected package identity or modifies the repository's default branch. 3. An operator follows the Skill's unpinned `pip install` or `git clone` instructions. 4. The mutable remote code is downloaded without verification against a reviewed hash, signature, version, or commit. 5. Malicious installation hooks or subsequently invoked runtime code execute with the permissions of the user running the command. ### Impact Assessment Successful exploitation could execute arbitrary code with the invoking user's privileges. This may permit access to files, environment variables, API credentials, local analysis artifacts, and network resources availa ...[truncated 234 chars]
- Remediation
- ## Remediation Suggestions - Pin the PyPI dependency to a reviewed exact version, such as `galdr==X.Y.Z`. - For source installations, check out an immutable reviewed commit or signed release tag before installation. - Publish and verify SHA-256 hashes for approved wheels and source distributions. - Use a lockfile or constraints file that pins transitive dependencies. - Prefer signed releases and document signature-verification procedures. - Install into an isolated virtual environment or container with only the filesystem and network access required for music analysis. - Avoid installing as root or with administrator privileges. - Document a controlled upgrade process that requires review of upstream changes before changing the approved version.
