T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned Global npm Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 15–20 and 54–58
Vulnerability Type: Supply-chain exposure through an unpinned third-party dependency
Risk Level: MediumVulnerable Code
yaml install: - id: claw2ui-npm kind: npm package: claw2ui bins: ["claw2ui"] label: "Install Claw2UI CLI (npm install -g claw2ui)" verify: "https://github.com/0xsegfaulted/claw2ui"bash npm install -g claw2ui claw2ui register --server https://0xsegfaulted-claw2ui.hf.space # Done! Token saved to ~/.claw2ui.json automatically.Technical Analysis
The installation command does not specify an exact package version, cryptographic integrity value, signature, lockfile, or immutable package artifact. As a result,
npmresolves whichever release is current when the command is executed. Theverifymetadata points to a source repository but does not cryptographically verify that the installed registry artifact corresponds to reviewed source code.npm packages may execute lifecycle scripts during installation. Because the command performs a global installation, malicious installation logic would execute with the privileges of the user running
npmand could modify user-accessible global package directories and other user-writable resources.This is a supply-chain weakness rather than evidence that the currently named package is malicious.
Attack Path
- An attacker compromises the npm package, its maintainer account, publication credentials, or a future release.
- The attacker publishes a malicious release under the same package name.
- A user or agent follows the documented unversioned
npm install -g claw2uicommand. - npm resolves and downloads the attacker-controlled current release.
- Malicious lifecycle or package code executes with the invoking user's privileges.
- The malicious code can access or alter resources available to that user, potent ...[truncated 601 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
claw2uito a reviewed exact version in both metadata and commands, for exampleclaw2ui@X.Y.Z. - Record and verify the expected package integrity digest or use registry/package signature verification.
- Ensure the installed registry artifact is reproducibly linked to the reviewed source revision.
- Prefer a project-local installation with a committed lockfile over a global installation.
- Disable lifecycle scripts where compatible, such as with
--ignore-scripts, or explicitly review all required lifecycle scripts. - Document the expected npm registry and reject unexpected registry overrides.
- Run installation under a non-privileged account and avoid
sudo npm install -g. - Periodically review and deliberately update the pinned version rather than automatically consuming the latest release.
- Pin
