T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:30
- Finding
- Unpinned Third-Party Homebrew Tap and Package## Vulnerability Details **File Location**: `SKILL.md`, lines 30–31 **Vulnerability Type**: Supply-chain exposure through an unpinned third-party dependency **Risk Level**: Medium ### Vulnerable Code ```sh brew tap viamrobotics/brews brew install viam ``` ### Technical Analysis The skill instructs the agent to add a non-core Homebrew tap and install its mutable `viam` formula without pinning an audited repository commit or package version. It also does not require verification of a vendor signature, published checksum, formula contents, or resolved download source. Although the skill requires user approval before installation, approval controls whether the installation occurs; it does not verify the integrity of the dependency. Homebrew formulas and their referenced installation artifacts can change after this skill has been reviewed. Installation logic executes with the permissions of the account running Homebrew and can access resources available to that account. ### Attack Path 1. An attacker compromises the third-party tap, its maintainer account, formula repository, or an artifact referenced by the formula. 2. The attacker modifies the formula or distributed artifact to include malicious installation or runtime behavior. 3. The user approves the installation requested by the skill. 4. The agent runs `brew tap viamrobotics/brews`, resolving the current mutable state of the repository. 5. The agent runs `brew install viam`, causing the compromised formula or artifact to be downloaded and executed or installed. 6. The malicious component executes with the Homebrew user’s privileges and may access user-readable files, environment variables, CLI profiles, or subsequently supplied Viam credentials. ### Impact Assessment Successful exploitation could permit arbitrary code execution under the account running Homebrew. The resulting access is bounded by that account’s operating-system privileges but may include user f ...[truncated 261 chars]
- Remediation
- ## Remediation Suggestions 1. Install only from an authenticated, vendor-documented distribution channel. 2. Pin the Viam CLI to an explicitly approved version and, where feasible, pin the tap to an audited commit rather than consuming its mutable latest state. 3. Verify downloaded artifacts against vendor-published cryptographic checksums or signatures before installation. 4. Inspect and validate the resolved Homebrew formula, source URL, version, and expected digest before execution. 5. Present the exact source, version, and integrity information to the user when requesting installation approval. 6. Perform installation using a least-privileged account and avoid exposing unrelated secrets or privileged environment variables during the process. 7. Maintain an allowlist of approved package sources and versions, and require renewed review before upgrades.
