T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned CLI Installation from a Third-Party Homebrew Tap
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 13–18
Vulnerability Type: Unpinned third-party dependency installation
Risk Level: Mediumyaml install: - kind: brew formula: runapi-ai/tap/runapi bins: - runapiTechnical Analysis
The skill requires the
runapiexecutable to be installed from the custom Homebrew taprunapi-ai/tap. The dependency declaration does not pin the CLI to a reviewed version and does not specify a checksum, cryptographic signature, or other integrity control.The installed executable is trusted to interact with authentication state, read and upload user-provided media, submit potentially billable API tasks, and download generated results. If the tap, formula, release artifact, or upstream distribution account is compromised, a modified package could execute arbitrary code under the privileges of the user installing or invoking the CLI.
This is a supply-chain risk rather than evidence that the current package is malicious. No malicious payload was found in the audited project itself.
Attack Path
- An attacker compromises the third-party Homebrew tap, its release infrastructure, or an associated distribution account.
- The attacker publishes a modified
runapiformula or executable under the expected package identity. - A user installs or upgrades
runapi-ai/tap/runapiwithout a pinned version or independent integrity verification. - Homebrew installs and runs the attacker-controlled executable in place of the expected CLI.
- When the skill invokes the CLI, the malicious executable can access files passed to it, available RunAPI credentials, CLI authentication state, and task data.
- The executable may exfiltrate those assets, tamper with API requests, or execute other commands with the invoking user's privileges.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user who installs or invokes the CLI. The accessible ...[truncated 502 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an explicitly reviewed version rather than accepting the latest formula release.
- Verify downloaded artifacts using vendor-published cryptographic checksums or signatures.
- Document the expected package source, version, checksum, and verification procedure.
- Review the Homebrew formula and its download URL before approving version updates.
- Prevent unattended dependency upgrades in environments that execute the skill.
- Run the CLI with least privilege and restrict its access to only the media files and credentials required for the current task.
- Use narrowly scoped API credentials where supported, and avoid exposing unrelated secrets through the process environment.
- Revalidate the pinned version and integrity metadata as part of a controlled dependency-update process.
