T08 · Insecure Dependencies
- Location
PUBLISH.md:10- Finding
Unpinned Global CLI Installation Creates Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
PUBLISH.md, lines 10–12
Vulnerability Type: Unpinned third-party dependency installed globally
Risk Level: MediumVulnerable Code
bash # 1. Install ClawdHub CLI (if not already) npm i -g clawdhubTechnical Analysis
The publishing instructions install the latest available version of the
clawdhubnpm package globally without pinning a reviewed version or verifying package integrity or provenance.Because npm packages may execute lifecycle scripts during installation, the effective code executed by this command can change after this project has been audited. Global installation also makes the package and its executables available outside the project environment. The resulting exposure depends on the privileges of the user running npm.
No evidence establishes that the current
clawdhubpackage is malicious. The vulnerability is the unsafe, mutable dependency-installation practice.Attack Path
- An attacker compromises the npm package, its publisher account, or its release process.
- The attacker publishes a malicious version under the expected package name.
- A user follows
PUBLISH.mdand runsnpm i -g clawdhub. - npm retrieves the mutable latest release rather than a previously reviewed version.
- Malicious lifecycle or CLI code executes with the privileges of the invoking user.
- The globally installed executable remains available for later invocations until removed or replaced.
Impact Assessment
A compromised dependency could execute arbitrary code with the invoking user's privileges. Depending on those privileges and the host environment, it could access user-readable files and credentials, alter user-owned configuration, tamper with publishing operations, install or replace globally available tooling, and affect projects that subsequently invoke the CLI.
The instruction does not itself request elevated privileges, so administrative or root-level impact is not e ...[truncated 70 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin the CLI to a specifically reviewed release:
bash npm install --global clawdhub@<reviewed-version> -
Document the authoritative package registry, publisher identity, and expected package metadata so users can detect similarly named or substituted packages.
-
Verify npm provenance, release signatures, or published integrity information before installation.
-
Review the pinned package's lifecycle scripts and transitive dependency tree.
-
Prefer a project-local, lockfile-controlled installation where the publishing workflow supports it, rather than modifying the global tool environment.
-
Run the installation as a non-privileged user in an isolated build or publishing environment.
-
Establish a controlled update process in which new versions are reviewed and deliberately pinned before adoption.
-
