T08 · Insecure Dependencies
- Location
SKILL.md:249- Finding
Unpinned Global Installation of a Third-Party CLI Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 249-250
Vulnerability Type: Unpinned and globally installed third-party dependency
Risk Level: MediumComplete Code Snippet:
bash # 1. Install clawhub CLI npm install -g clawhubTechnical Analysis
The Quick Start instructions install the latest available version of the
clawhubnpm package globally. The command does not pin a reviewed version, use a lockfile, verify package integrity, identify the expected registry, or otherwise validate the downloaded package.npm installations may execute package lifecycle scripts with the permissions of the invoking user. Consequently, a compromised maintainer account, malicious package release, package-name takeover, or registry compromise could cause arbitrary code to run during installation. The global installation flag also gives the package a broader installation scope than is necessary merely to invoke a command-line tool. Depending on the npm configuration, this can modify user-global paths or require elevated privileges.
This is a supply-chain risk rather than evidence that the current
clawhubpackage is malicious.Attack Path
- An attacker compromises the package publisher, package distribution account, or an associated supply-chain component.
- The attacker publishes a malicious or backdoored version under the package name used by the instructions.
- A user follows the Quick Start instructions without specifying a trusted version.
- npm retrieves the attacker's latest release and may execute its lifecycle scripts during installation.
- The malicious package runs with the privileges of the user executing npm and can access resources available to that account.
- Because the package is installed globally, the compromised executable remains available for later invocations until removed.
Impact Assessment
Successful exploitation could permit arbitrary code execution und ...[truncated 503 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a specifically reviewed version rather than installing the latest release implicitly.
- Verify the package publisher, expected npm registry, release provenance, and integrity metadata before installation.
- Prefer a project-local dependency recorded in a lockfile instead of a global installation.
- Where compatible with the package, disable lifecycle scripts during installation and review any scripts before enabling them.
- Avoid recommending elevated installation commands such as
sudo npm install -g. - Document a controlled upgrade process in which new package versions are reviewed before adoption.
- Provide removal and rollback instructions for the installed CLI.
