T08 · Insecure Dependencies
- Location
README.md:7- Finding
Unpinned Global Installation of a Third-Party CLI
- Content
View full analysis
Vulnerability Details
File Location:
README.md, lines 7-9
Vulnerability Type: Unpinned third-party dependency installed globally
Risk Level: MediumVulnerable Code
bash npm install -g clawlodge-cliTechnical Analysis
The installation instructions retrieve the current version of
clawlodge-clifrom the npm registry without specifying an audited version or verifying package integrity. The-goption installs the package globally, increasing its reach beyond this project.The audited project contains only documentation and does not include the CLI source, a lockfile, a checksum, or a signature against which the downloaded package can be verified. Consequently, the executable implementation and npm lifecycle scripts are outside the reviewed artifact and may change after this Skill has been audited.
This is a supply-chain trust issue rather than evidence that the current package is malicious. However, if the npm account, package, or distribution infrastructure were compromised, following this instruction could execute attacker-controlled installation code with the permissions of the user running npm.
Attack Path
- An attacker compromises the npm package, its maintainer account, or its publication process.
- The attacker publishes a modified release under the expected package name.
- A user follows the documented unpinned installation command.
- npm resolves and downloads the compromised current release.
- Malicious lifecycle scripts or CLI code execute under the installing user's account.
- The malicious package can access resources available to that account and persist as a globally available executable.
Impact Assessment
Successful exploitation could provide code execution with the privileges of the user who runs npm. Potentially exposed resources include user-readable files, environment variables, OpenClaw configuration, locally stored CLI credentials, and network ser ...[truncated 339 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a specific reviewed version, for example:
bash npm install -g clawlodge-cli@<reviewed-version> - Publish and document the expected package integrity hash or a verifiable release signature.
- Link to the authoritative source repository and release corresponding to the pinned package version.
- Prefer a project-local, lockfile-controlled dependency or an ephemeral invocation over global installation where feasible.
- Advise users not to run npm with elevated privileges.
- Review npm lifecycle scripts and the distributed package contents before recommending a new version.
- Establish a release process using protected maintainer accounts, multi-factor authentication, provenance attestations, and reproducible build artifacts.
- Pin the CLI to a specific reviewed version, for example:
