T08 · Insecure Dependencies
- Location
README.md:10- Finding
Unpinned Global CLI Installation Creates a Supply-Chain Execution Risk
- Content
View full analysis
Vulnerability Details
File Location:
README.md:10
Vulnerability Type: Unpinned third-party package installation
Risk Level: Mediumbash npm install -g clawdhubTechnical Analysis
The installation instructions direct users to install the latest available version of the
clawdhubnpm package globally. The command does not specify an exact reviewed version, lock an integrity hash, or disable npm lifecycle scripts.npm packages can define lifecycle hooks such as
preinstall,install, andpostinstall. These hooks may execute automatically during installation. Because the package version is uncontrolled, a future compromised or malicious release could execute code that was not present when this Skill was audited.Global installation increases the potential scope because it modifies the user's global npm environment and may expose a command on the system path. The audited project itself does not contain evidence that the named dependency is malicious; the risk arises from trusting an unpinned future package release.
Attack Path
- An attacker compromises the publisher account, package repository, or release process for the referenced npm package.
- The attacker publishes a malicious package version containing an npm lifecycle script or modified CLI implementation.
- A user follows the README and runs
npm install -g clawdhub. - npm retrieves the current uncontrolled release.
- A malicious lifecycle script executes with the privileges of the installing user, or the installed CLI executes malicious behavior when subsequently invoked.
- The attacker may access files available to that user, modify the user's development environment, or install additional payloads.
Impact Assessment
Successful exploitation could execute arbitrary code with the privileges of the user performing the installation. Potential scope includes user-accessible files, npm configuration and tokens, developme ...[truncated 292 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an exact version that has been reviewed:
bash npm install -g clawdhub@<reviewed-exact-version> - Verify that the package name and publisher correspond to the official distribution before recommending installation.
- Publish expected package integrity information or signed release details through a trusted channel.
- Prefer a project-local development dependency over a global installation, then invoke it through a locked package manager workflow.
- Commit and enforce a lockfile where applicable.
- Document whether the package uses lifecycle scripts and consider installation with lifecycle scripts disabled when they are unnecessary.
- Periodically re-audit the pinned version before updating the documented command.
- Pin the CLI to an exact version that has been reviewed:
