T08 · Insecure Dependencies
- Location
SKILL.md:12- Finding
Unpinned Third-Party CLI Is Installed and Executed from a Custom Homebrew Tap
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 12-16 and 41-44
Vulnerability Type: Supply-chain exposure through an unpinned executable dependency
Risk Level: MediumVulnerable Code
yaml install: - id: brew kind: shell command: "brew install agentmfa/cli/agentmfa && agentmfa auth login" label: "Install AgentMFA CLI and log in"sh # 1. Install the CLI brew install agentmfa/cli/agentmfa # 2. Log in (opens browser for OAuth) agentmfa auth loginTechnical Analysis
The skill directs the user or agent framework to install the latest available
agentmfapackage from the customagentmfa/cliHomebrew tap. It does not pin a reviewed version, verify a cryptographic checksum, or require signature verification.The metadata command chains installation and execution with
&&, causing the newly downloaded binary to run immediately as the current user. The CLI then participates in an OAuth authentication flow and stores its session in the system keychain, according to the skill documentation. Consequently, the integrity of the approval workflow depends on the continuing security of the external tap, package distribution infrastructure, and current release.This is a supply-chain weakness rather than evidence that the current upstream package is malicious. Exploitation requires compromise of, or unauthorized publishing access to, the package source or distribution channel.
Attack Path
- An attacker compromises the custom Homebrew tap, its publishing credentials, or a release artifact referenced by the tap.
- The attacker publishes a modified
agentmfapackage under the expected package name. - A user installs the dependency through the documented unpinned command.
- Homebrew retrieves and installs the attacker-controlled release.
- Because installation is chained with
agentmfa auth login, the downloaded executable runs immediately with the invoking user's privileges. - The malicious bi ...[truncated 745 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an explicitly reviewed version rather than installing the latest mutable release.
- Verify release signatures or documented SHA-256 checksums before executing the installed binary.
- Publish and verify reproducible build information where practical.
- Separate installation from authentication so the newly installed binary is not executed automatically in the same shell command.
- Require the user to review the installed version and verification result before initiating OAuth login.
- Document the exact trusted source repository, release identity, signing keys, and expected package provenance.
- Add a controlled upgrade process that reviews and validates new CLI versions before changing the pinned release.
