T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:20
- Finding
- Unpinned Global Installation of the ClawHub CLI## Vulnerability Details **File Location**: `SKILL.md`, lines 20-23 **Vulnerability Type**: Unpinned third-party package installation **Risk Level**: Medium ### Vulnerable Code ```bash npm install -g clawhub pnpm add -g clawhub ``` ### Technical Analysis The documented installation commands retrieve the latest available `clawhub` package without specifying an exact version or validating package integrity. Global npm and pnpm installations can also execute package lifecycle scripts, such as `preinstall`, `install`, and `postinstall`, under the privileges of the user running the package manager. Because the effective package contents can change after this Skill has been reviewed, compromise of the package, publisher account, registry, or dependency chain could cause users to install code that was not included in the audit. The use of global installation increases the potential reach by placing the package in the user's global tool environment. No evidence establishes that the current `clawhub` package is malicious. The vulnerability is the unsafe, unpinned supply-chain installation procedure. ### Attack Path 1. An attacker compromises the package publisher, registry entry, or a transitive dependency used by a future `clawhub` release. 2. The attacker publishes a malicious release under the expected package name. 3. A user follows the documented unpinned global installation command. 4. npm or pnpm downloads the attacker-controlled release. 5. Malicious lifecycle scripts or subsequently invoked CLI code execute with the privileges of the installing user. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the privileges of the user performing the installation. Depending on those privileges and the local environment, affected resources may include user files, environment variables, credentials accessible to the user, global package configuration, and the Agent's local tools. Admin ...[truncated 171 chars]
- Remediation
- ## Remediation Suggestions - Pin the CLI to a reviewed exact version, for example `clawhub@X.Y.Z`, rather than implicitly installing the latest release. - Document the expected registry and reject unexpected registry overrides. - Publish and verify package integrity information or signed release provenance where supported. - Review the package, its lifecycle scripts, and its dependency lock data before recommending a new version. - Avoid running global package installation with administrative privileges. - Prefer a controlled environment, isolated prefix, or disposable container when evaluating new releases. - Establish an explicit upgrade process that reviews release diffs before changing the pinned version.
