T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:34
- Finding
- Third-Party CLI Installation Without Artifact Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:34-41` **Vulnerability Type**: Supply-chain risk in credential-handling dependencies **Risk Level**: Medium ### Vulnerable Code ```bash npm install -g @maton/cli@0.3.1 ``` ```bash brew install maton-ai/cli/maton brew pin maton ``` ### Technical Analysis The Skill directs users to install the Maton CLI globally from npm or a third-party Homebrew tap. Although the npm package version is pinned and the Homebrew package is pinned after installation, the instructions do not verify an artifact checksum, package signature, provenance attestation, or immutable content digest. Version pinning reduces unexpected upgrades but does not protect against a compromised publisher account, registry artifact, package release, or Homebrew tap. In particular, `brew pin maton` occurs only after Homebrew resolves and installs the tap's current artifact. The installed CLI is highly sensitive because the Skill entrusts it with Maton OAuth sessions, API keys, Gmail content, hosted-function deployment, trigger configuration, and Gmail write operations. Global installation also increases the exposure because the executable becomes available across the user's environment. ### Attack Path 1. An attacker compromises the npm publisher, package registry artifact, Homebrew tap, or release infrastructure associated with the Maton CLI. 2. The attacker publishes malicious content under the expected package name and version, or alters the artifact resolved by the Homebrew formula. 3. A user follows the Skill's documented installation command without independently verifying the artifact. 4. Installation scripts or the resulting executable run with the user's local privileges. 5. When the user authenticates or performs Gmail operations, the compromised CLI accesses Maton credentials, OAuth sessions, API responses, and mailbox data. 6. The malicious dependency can exfiltrate data, alter Gmail requests, create persistent trigger ...[truncated 837 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Publish SHA-256 or stronger checksums for every reviewed CLI artifact and require verification before installation. 2. Provide package signatures or Sigstore provenance attestations tied to a documented publisher identity. 3. Pin Homebrew installation to a reviewed formula revision and immutable bottle digest rather than pinning only after installation. 4. Document the authoritative source repository, npm publisher, Homebrew tap owner, and release-signing identity. 5. Prefer a project-local or isolated installation over a global npm installation where operationally possible. 6. Disable or carefully review package lifecycle scripts during installation when supported. 7. Provide a reproducible-build or software bill of materials process so users can validate that registry artifacts correspond to reviewed source. 8. Re-review dependencies and release notes before changing any pinned version. 9. Continue storing credentials in the operating system credential store and ensure the CLI never exposes them in command-line arguments, logs, or configuration files. ]]>
