T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:34
- Finding
- CLI Installation from Third-Party Registries Without Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 34-41 **Vulnerability Type**: Supply-chain risk from unverified executable 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 or agents to install an executable CLI globally from npm or from a vendor-controlled Homebrew tap. Although the npm version is pinned and the Homebrew package is subsequently pinned, the instructions provide no cryptographic checksum, artifact signature, immutable digest, or package-provenance verification. Version pinning prevents an unintended routine upgrade, but it does not protect against: - Compromise of the package publisher or registry account. - Replacement or republishing of a release artifact. - Compromise of the vendor-controlled Homebrew tap or formula. - A malicious installation or lifecycle script in the distributed package. - Registry or distribution infrastructure compromise. The CLI is especially sensitive because it subsequently performs OAuth authentication, accesses Maton connections, and processes Slack business data. A compromised executable would operate under the installing user's local privileges. ### Attack Path 1. An attacker compromises the npm publisher, Homebrew tap, release pipeline, or associated distribution account. 2. The attacker publishes or substitutes a malicious CLI artifact or formula. 3. A user or agent follows the installation command from `SKILL.md`. 4. Package installation or lifecycle code executes with the privileges of the invoking user. 5. The malicious CLI can inspect information available to that process, tamper with subsequent API operations, capture data supplied to the CLI, or impersonate expected command behavior. 6. When the user later authenticates or accesses Slack through the CLI, the compromised component may expose credentials, API responses, o ...[truncated 737 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Publish SHA-256 or stronger checksums for every supported CLI artifact and require verification before installation. 2. Sign releases using a verifiable mechanism such as Sigstore, npm provenance attestations, or platform-native signed release artifacts. 3. Document the expected npm publisher identity, Homebrew tap owner, package name, version, and verification procedure. 4. Prefer an isolated, non-global installation where practical instead of `npm install -g`. 5. Pin Homebrew artifacts to a reviewed immutable release rather than relying only on `brew pin` after installation. 6. Recommend installation under a dedicated, least-privilege user or isolated environment. 7. Provide a trusted release manifest containing artifact names, versions, hashes, and signatures. 8. Document an incident-response procedure for revoking Maton sessions and Slack connections if package integrity is later questioned. ]]>
