T08 · Insecure Dependencies
Warning
- Location
- SKILL.md:12
- Finding
- Unpinned Global npm Dependency Installation## Vulnerability Details **File Location**: `SKILL.md`, line 12 **Vulnerability Type**: Supply-chain risk from an unpinned globally installed dependency **Risk Level**: Medium ### Vulnerable Code ```markdown - clawhub CLI installed: `npm i -g clawhub` ``` ### Technical Analysis The skill directs users to install the `clawhub` npm package globally without specifying an exact version, validating package provenance, checking package integrity, or using a lockfile. Consequently, the installed code can differ from the version that existed when the skill was audited. npm packages may execute lifecycle scripts during installation. A compromised or unexpectedly modified package release could therefore execute code with the installing user's privileges. Global installation also increases exposure by placing package executables and supporting files in shared user-level or system-level npm locations. This finding does not establish that the current `clawhub` package is malicious. The vulnerability is the mutable and insufficiently verified dependency installation process. ### Attack Path 1. An attacker compromises the referenced npm package, its publisher account, or its release process. 2. The attacker publishes a malicious package version containing hostile runtime behavior or installation lifecycle scripts. 3. A user follows the documented prerequisite and runs `npm i -g clawhub`. 4. npm retrieves the current mutable release rather than a previously reviewed version. 5. Malicious package code executes with the permissions of the user performing the installation. 6. The code may access local skill content, alter globally installed tooling, or target credentials and authenticated sessions available to that user. ### Impact Assessment Successful exploitation could provide arbitrary code execution with the installing user's privileges. The affected scope may include files readable or writable by that account, local skill source files, npm global installation dire ...[truncated 249 chars]
- Remediation
- ## Remediation Suggestions - Pin the CLI to an exact reviewed version, for example `clawhub@X.Y.Z`, rather than installing the latest mutable release. - Document the package's authoritative registry location and verify the publisher and package provenance before installation. - Record and validate the expected package integrity digest where the distribution workflow supports it. - Prefer a project-local dependency governed by a committed lockfile over global installation. - If global installation is unavoidable, install from a non-elevated shell and document the minimum supported version. - Review npm lifecycle scripts and published package contents before approving upgrades. - Establish an explicit update process that re-audits new versions before changing the pinned version.
