T08 · Insecure Dependencies
Error
- Location
- SKILL.md:5
- Finding
- Unpinned executable installed from a third-party Homebrew tap<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 5 **Vulnerability Type**: Unpinned third-party dependency **Risk Level**: High ### Vulnerable Code ```yaml metadata: {"clawdbot":{"emoji":"🎮","requires":{"bins":["gog"]},"install":[{"id":"brew","kind":"brew","formula":"steipete/tap/gogcli","bins":["gog"],"label":"Install gog (brew)"}]}} ``` ### Technical Analysis The Skill directs the host to install `gogcli` from the custom Homebrew tap `steipete/tap` without pinning a version, commit, or cryptographic checksum. The effective executable can therefore change after this Skill has been reviewed. This is especially sensitive because the installed CLI is expected to receive OAuth-backed access to Gmail, Calendar, Drive, Contacts, Sheets, and Docs. If the tap, formula, upstream release process, or associated maintainer account were compromised, a modified executable could run with the local user's privileges and access the Google Workspace data authorized by the user. The repository does not itself demonstrate that the dependency is currently malicious. The vulnerability is the mutable and insufficiently verified supply-chain trust boundary. ### Attack Path 1. An attacker compromises the custom Homebrew tap, its maintainer account, the referenced upstream release, or another component of its distribution chain. 2. The attacker modifies the formula or distributed binary to include malicious behavior. 3. The Skill environment installs or upgrades `steipete/tap/gogcli` without verifying a project-pinned version and checksum. 4. The user completes the documented OAuth authorization process. 5. The modified executable runs under the user's account and can attempt to read OAuth material, access authorized Workspace services, inspect locally accessible files, or transmit collected data. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the privileges of the user running Homebrew and the CLI. It could als ...[truncated 226 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the dependency to a reviewed release rather than installing an implicitly mutable latest version. - Verify the downloaded artifact using a project-controlled cryptographic checksum or signature. - Document the canonical source repository and trusted release-signing identity. - Prefer a trusted and independently reviewed package source over a custom tap where practical. - Apply least-privilege OAuth scopes and authorize only the Workspace services needed for the current task. - Keep OAuth credentials outside project files and protect them using operating-system credential storage. - Establish a controlled dependency-update process that reviews formula and upstream changes before upgrading. ]]>
