T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:8
- Finding
- Unpinned Third-Party Homebrew Tap Creates a Supply-Chain Risk## Vulnerability Details **File Location**: `SKILL.md`, line 8 **Vulnerability Type**: Unpinned third-party dependency from a custom Homebrew tap **Risk Level**: Medium ### Vulnerable Code Snippet ```markdown - Install: `brew install sichengchen/tap/apple-calendar-cli` ``` ### Technical Analysis The skill directs users or agents to install `apple-calendar-cli` from a third-party custom Homebrew tap without pinning a reviewed version, formula revision, source commit, checksum, or artifact signature. Because the dependency is mutable and its implementation is not included in this project, the reviewed skill text cannot guarantee that the executable installed later will be the same executable that was previously assessed. Homebrew installation may execute formula-defined installation logic and place an executable on the user's command path. This trust boundary is particularly sensitive because the documented tool is expected to receive macOS Calendar permission. Once authorized, it can enumerate calendars, read event details, and create, update, move, or delete events. The audit did not establish that the referenced package is malicious; the issue is the absence of dependency pinning and integrity verification. ### Attack Path 1. An attacker compromises the third-party Homebrew tap, its maintainer account, or an upstream release location referenced by the formula. 2. The attacker modifies the formula or replaces an expected release artifact with a malicious version. 3. A user or agent follows the instruction: ```bash brew install sichengchen/tap/apple-calendar-cli ``` 4. Homebrew retrieves and installs the attacker-controlled dependency or executes compromised formula logic. 5. The installed program executes with the privileges of the invoking user. 6. If Calendar access is granted as instructed, the malicious program can access or alter calendar data available through that permission. It may also access other resources already available to the in ...[truncated 736 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the dependency to a reviewed, immutable version and document that exact version in the skill. 2. Pin or otherwise verify the Homebrew formula revision rather than implicitly trusting the latest state of a mutable tap. 3. Verify downloaded artifacts using a published cryptographic checksum or trusted signature. Store the expected digest in reviewed project material. 4. Link to the canonical source repository, release page, and security policy so reviewers can validate package provenance. 5. Prefer an official package source where available. If a custom tap remains necessary, document its ownership and trust assumptions. 6. Vendor the relevant auditable source or installation definition when feasible so changes are visible during skill review. 7. Apply least privilege: grant Calendar access only to the intended signed executable, review macOS authorization prompts, and revoke access when the tool is no longer required. 8. In automated environments, validate the resolved package version and checksum before executing the installed binary, and fail closed on any mismatch.
