T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:4
- Finding
- Unpinned Installation from a Mutable Third-Party Homebrew Tap<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:4`; `references/cli-reference.md:3-7` **Vulnerability Type**: Unpinned third-party dependency installation **Risk Level**: Medium ### Vulnerable Code `SKILL.md:4`: ```yaml metadata: {"clawdbot":{"emoji":"📚","requires":{"bins":["opdscli"]},"install":[{"id":"brew","kind":"brew","tap":"rafadc/opdscli","formula":"opdscli","bins":["opdscli"],"label":"Install opdscli (brew)"}]}} ``` `references/cli-reference.md:3-7`: ```markdown ## Installation ```bash brew tap rafadc/opdscli brew install opdscli ``` ``` ### Technical Analysis The installation workflow trusts the mutable `rafadc/opdscli` third-party Homebrew tap without pinning a reviewed commit, package version, release artifact, or checksum. The tap identity is consistent with the project homepage, and there is no evidence that it is currently malicious. Nevertheless, the package that users receive can change after this Skill has been reviewed. Homebrew formulas and associated installation artifacts can execute build or installation logic with the privileges of the invoking user. Consequently, compromise of the upstream repository, maintainer account, release infrastructure, or referenced artifacts could turn the documented installation command into a remote code execution path. ### Attack Path 1. An attacker compromises the third-party Homebrew tap, its maintainer account, or an artifact referenced by its formula. 2. The attacker modifies the formula or distributed package to include malicious installation or runtime behavior. 3. A user follows the Skill metadata or CLI reference and runs `brew tap rafadc/opdscli` followed by `brew install opdscli`. 4. Homebrew retrieves the mutable attacker-controlled version. 5. The malicious package executes during installation or later when the agent invokes `opdscli`. ### Impact Assessment Successful exploitation could execute arbitrary code with the privileges of the user running Homebrew or `opdsc ...[truncated 363 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Pin installation instructions to a reviewed `opdscli` release and, where Homebrew permits, a specific reviewed tap commit or immutable artifact. 2. Publish and verify a cryptographic checksum for downloaded release artifacts. 3. Prefer a trusted central package repository with established review and provenance controls when one is available. 4. Document the expected package version and provide a command for users to confirm the installed version before use. 5. Consider artifact signing or provenance attestations, and require signature verification before installation. 6. Periodically review the pinned release and update it through a controlled dependency-review process. ]]>
