T08 · Insecure Dependencies
- Location
README.md:16- Finding
Unpinned Global npm Package Installation with Package-Identity Mismatch
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 16
Vulnerability Type: Supply-chain exposure through an unpinned global dependency
Risk Level: MediumVulnerable Code
bash npm i -g clawdhub && clawdhub install para-walletTechnical Analysis
The installation instructions execute the latest available version of the third-party
clawdhubnpm package without an exact version, lockfile, or integrity verification. Because npm packages may execute lifecycle scripts during installation, installing an untrusted or compromised release can immediately execute code with the privileges of the user running npm.There is also a package-identity inconsistency: the project describes and links “ClawhHub” and
clawhhub.com, while the installed npm package and executable are namedclawdhub. This mismatch increases the risk that users may install a typographically similar, unintended, or spoofed package.The
-gflag expands the consequences by installing the package globally and exposing its executable through the user's global command path.Attack Path
- An attacker publishes or compromises a release under the referenced
clawdhubnpm package name. - The malicious release includes an npm lifecycle script or a modified command-line executable.
- A user follows the documented command without verifying the package identity, version, provenance, or integrity.
- npm resolves the mutable package version and installs it globally.
- Any lifecycle script executes during installation with the invoking user's privileges.
- The chained
clawdhub install para-walletcommand then executes the installed binary, providing a second opportunity for arbitrary malicious behavior.
Impact Assessment
Successful exploitation can provide arbitrary code execution under the account running the installation command. The attacker may access files and environment variables available to that account, including potentially configured API credent ...[truncated 399 chars]
- An attacker publishes or compromises a release under the referenced
- Remediation
View remediation
Remediation Suggestions
- Confirm the canonical package identity and correct the discrepancy between “ClawhHub” and
clawdhub. - Pin the dependency to a reviewed exact version, for example
clawdhub@X.Y.Z, rather than resolving the latest mutable release. - Publish the canonical npm registry page and source repository so users can verify package ownership and provenance.
- Provide integrity or signature verification instructions where supported.
- Avoid global installation where possible. Prefer a locally pinned development dependency or an isolated package runner with an explicit version.
- Audit npm lifecycle scripts and package contents before recommending the package.
- Prefer the documented direct-copy installation method for this Markdown-only skill when the package manager is not required.
- Advise users not to run the installation command with
sudoor another elevated account.
- Confirm the canonical package identity and correct the discrepancy between “ClawhHub” and
