T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:49
- Finding
- Unpinned Third-Party Dependencies Permit Supply-Chain Code Execution## Vulnerability Details **File Location**: `SKILL.md`, lines 49-56 **Vulnerability Type**: Unpinned third-party package and source-code installation **Risk Level**: Medium ### Vulnerable Code ```bash pip install openai-whisper ``` ```bash git clone https://github.com/ggerganov/whisper.cpp.git ~/whisper.cpp cd ~/whisper.cpp make ``` ### Technical Analysis The installation instructions retrieve mutable third-party content without pinning a package version, Git commit, release artifact, or cryptographic checksum. `pip install openai-whisper` resolves whichever package version the configured Python package index currently serves and may execute package-controlled installation logic. Similarly, cloning the default branch of `whisper.cpp` and running `make` builds mutable upstream source code. The instructions do not verify package hashes, signed releases, repository commits, or build artifacts. This creates a supply-chain trust boundary in which changes to the package registry entry, upstream repository, dependency resolution process, or associated maintainer accounts can alter the code users install after the Skill has been audited. ### Attack Path 1. An attacker compromises an upstream maintainer account, package publication process, repository, or another relevant supply-chain component. 2. The attacker publishes a malicious package release or commits malicious source/build logic to the mutable upstream version selected by the documented commands. 3. A user follows the Skill's dependency installation instructions. 4. `pip` executes package installation behavior, or `make` executes attacker-controlled build commands. 5. The malicious code runs with the privileges and environment of the user performing the installation. ### Impact Assessment Successful exploitation can provide arbitrary code execution under the installing user's account. The resulting access may include reading or modifying files available ...[truncated 432 chars]
- Remediation
- ## Remediation Suggestions - Pin `openai-whisper` to a specifically reviewed version rather than installing the latest available release. - Use a requirements file with cryptographic hashes and install with hash verification, for example through `pip install --require-hashes`. - Pin `whisper.cpp` to an exact audited commit or signed release tag instead of cloning and building the mutable default branch. - Verify downloaded release artifacts or repository commits using trusted signatures or documented SHA-256 checksums. - Install Python dependencies inside an isolated virtual environment or container with minimal filesystem and credential access. - Perform builds as an unprivileged user and avoid `sudo` or root-level package installation. - Document the reviewed versions, expected hashes, update procedure, and source provenance so dependency updates trigger a new security review.
