T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:13
- Finding
- Unpinned Executable Installed from a Third-Party Homebrew Tap## Vulnerability Details **File Location**: `SKILL.md`, lines 13–17 **Vulnerability Type**: Supply-chain risk from an unpinned third-party dependency **Risk Level**: Medium ### Vulnerable Code ```yaml install: - kind: brew formula: runapi-ai/tap/runapi bins: - runapi ``` ### Technical Analysis The Skill instructs the environment to install the `runapi` executable from the custom Homebrew tap `runapi-ai/tap` without specifying an immutable version, source revision, checksum, or signature verification requirement. Because the dependency is mutable, the code installed in the future may differ from the code reviewed when this Skill was audited. If the tap repository, its release infrastructure, or its referenced artifacts are compromised, an attacker could distribute a modified formula or executable. Homebrew installation procedures can execute formula-defined build and installation logic, while the resulting `runapi` binary is subsequently trusted by the Skill for authentication, local-file processing, API requests, and task execution. This finding does not establish that the current package is malicious. It identifies an avoidable supply-chain trust boundary caused by installing and executing an unpinned external component. ### Attack Path 1. An attacker compromises the custom Homebrew tap, its maintainer account, or an artifact hosting location referenced by the formula. 2. The attacker publishes a modified formula or replaces the package artifact while retaining the expected package name. 3. A user installs or updates `runapi-ai/tap/runapi` according to the Skill metadata. 4. Homebrew executes attacker-controlled installation logic or installs the modified `runapi` executable. 5. The Skill invokes the compromised executable for authentication checks, request submission, local media handling, and result retrieval. 6. The executable can perform arbitrary actions within the privileges of the user running th ...[truncated 604 chars]
- Remediation
- ## Remediation Suggestions - Pin the CLI to a reviewed, explicit version rather than accepting the latest formula revision. - Where supported, pin the tap or source repository to an immutable commit. - Require verification of a vendor-provided cryptographic signature or published checksum before execution. - Prefer an official, authenticated distribution channel with reproducible release artifacts. - Document the expected package version and fail closed if the installed version differs. - Periodically review the pinned version and update it through a controlled security review process. - Run the CLI with the minimum required operating-system privileges and isolate it from unrelated sensitive files and credentials.
