T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned npx Package Execution Creates a Supply-Chain Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:15
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code Snippet:
yaml install: "npx clawhub install howtousehumans/chainsaw-tree-work"Technical Analysis
The installation command invokes
clawhubthroughnpxwithout specifying an exact package version or integrity constraint. If the package is not already installed locally,npxcan retrieve and execute the package resolved by the configured npm registry.Because resolution is mutable, the code executed during installation may differ from the code reviewed at audit time. Security therefore depends on the continuing integrity of the package publisher, npm account, registry, transitive dependencies, and package lifecycle scripts.
The reviewed file does not prove that the current
clawhubpackage is malicious. The vulnerability is the unsafe, unpinned execution mechanism, which creates a viable supply-chain attack surface.Attack Path
- An attacker compromises the
clawhubpublisher account, package, registry resolution path, or one of its executable dependencies. - The attacker publishes a malicious release under the package name resolved by
npx. - A user or automation system executes:
shell npx clawhub install howtousehumans/chainsaw-tree-work npxdownloads the attacker-controlled package version because no trusted version or integrity digest is specified.- The malicious CLI code or package lifecycle script executes with the privileges of the user running the installation command.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the installer account. Depending on that account's privileges and environment, an attacker could read or alter accessible files, steal environment variables and credentials, modify installed skills, execute additional payloads, or establish ...[truncated 198 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the installer to a specifically reviewed package version, for example:
shell npx --yes clawhub@<reviewed-version> install howtousehumans/chainsaw-tree-work - Enforce package-lock or equivalent integrity metadata and verify registry-provided integrity hashes.
- Prefer a preinstalled, centrally managed, and cryptographically verified CLI rather than downloading executable code at invocation time.
- Disable or tightly control package lifecycle scripts where operationally possible.
- Run installation in a sandbox or unprivileged container with minimal filesystem and network access.
- Use an approved registry and monitor the package and its transitive dependencies for ownership changes, unexpected releases, and known vulnerabilities.
- Pin the installer to a specifically reviewed package version, for example:
