T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:13
- Finding
- Unpinned Executable Installed from a Third-Party Homebrew Tap<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 13-17 **Vulnerability Type**: Unpinned third-party dependency from a mutable package source **Risk Level**: Medium ### Vulnerable Code ```yaml install: - kind: brew formula: runapi-ai/tap/runapi bins: - runapi ``` ### Technical Analysis The skill directs the environment to install the `runapi` executable from the third-party Homebrew tap `runapi-ai/tap`. No package version, immutable source revision, cryptographic checksum, or signature is specified. Consequently, installation resolves whatever formula and package version the tap serves at installation time. If the tap, its publishing credentials, its upstream release location, or the referenced artifact is compromised, the installed executable or Homebrew installation logic could differ from the version originally reviewed. Because the skill subsequently relies on `runapi` for authentication, local-file uploads, paid task submission, and result retrieval, a compromised executable would operate in a sensitive position and could access data supplied to the CLI. ### Attack Path 1. An attacker compromises the third-party Homebrew tap, its release infrastructure, or package-publishing credentials. 2. The attacker changes the formula or referenced binary to a malicious version. 3. A user installs the skill dependency using the unpinned formula. 4. Homebrew retrieves and installs the attacker-controlled version. 5. When the agent invokes `runapi`, the malicious executable runs with the privileges of the invoking user. 6. It can inspect CLI arguments, environment variables, configuration files, authentication material, and media files provided during the workflow. 7. It may transmit accessible information externally or manipulate API requests and returned artifacts. ### Impact Assessment Successful exploitation could execute arbitrary code with the privileges of the account installing or invoking the CLI. The affected scope may in ...[truncated 532 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin the dependency to a specific reviewed release rather than resolving the latest mutable formula. 2. Bind installation to an immutable source commit or versioned artifact. 3. Verify a publisher signature or documented cryptographic checksum before installing or executing the binary. 4. Document the canonical source repository and expected release publisher. 5. Prefer a trusted package source with provenance attestations and reproducible release artifacts. 6. Where Homebrew cannot enforce the required immutable version, provide a verification step that downloads a specific release and checks its SHA-256 digest before execution. 7. Run the CLI with least privilege and limit its access to credentials and local files that are necessary for the current task. 8. Review dependency updates before changing the pinned version. ]]>
