T08 · Insecure Dependencies
- Location
SKILL.md:5- Finding
Unpinned Third-Party Homebrew Dependency
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 5
Vulnerability Type: Unpinned third-party package installation
Risk Level: MediumVulnerable Code Snippet:
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 installation metadata directs users to install
gogclifrom the third-party Homebrew tapsteipete/tapwithout pinning an immutable package version, repository commit, or integrity digest. Consequently, the package and formula executed during installation may differ from the versions available when this Skill was audited.This creates a supply-chain trust boundary: compromise of the tap, its publisher account, the package source, or associated release infrastructure could introduce arbitrary installation or runtime code without requiring changes to this repository. The project itself does not contain an observed malicious payload; the risk arises from mutable external dependency resolution.
Attack Path
- An attacker compromises the third-party tap, its maintainer account, or an upstream release artifact referenced by the formula.
- The attacker modifies the formula or package so that installation or execution runs malicious code.
- A user installs the dependency through the Skill's Homebrew installation metadata.
- Homebrew retrieves and executes the modified installation logic or installs the altered binary.
- The malicious process runs with the installing user's privileges.
- If the user has configured
gogOAuth credentials, the malicious component may attempt to access locally available credentials or Google Workspace resources authorized for that account.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user running Homebrew or invoking
gog...[truncated 499 chars]- Remediation
View remediation
Remediation Suggestions
- Prefer a verified official distribution channel controlled by the upstream project.
- Pin the dependency to an immutable version or repository commit rather than resolving a mutable formula implicitly.
- Verify downloaded artifacts using a publisher-provided cryptographic checksum or signature.
- Review and lock the Homebrew formula contents used for installation, including all upstream URLs and checksums.
- Document the expected package publisher, version, and integrity value so users can validate the dependency before installation.
- Run installation and the CLI under least privilege; do not invoke Homebrew or
gogasroot. - Store OAuth credentials using operating-system-protected credential storage and authorize only the Google Workspace services required for the user's task.
- Establish dependency monitoring and periodically reassess the tap and upstream release infrastructure for ownership or integrity changes.
