T08 · Insecure Dependencies
- Location
SKILL.md:94- Finding
Unpinned Third-Party Package Execution via npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 94
Vulnerability Type: Unpinned and externally resolved installation dependency
Risk Level: MediumVulnerable Code
markdown ## Installation 1. Place this plugin folder in OpenClaw's `skills/` directory. 2. Run `npx clawhub install kemi-heartbeat-plugin`. 3. Refresh the Web UI to display the heartbeat indicator.Technical Analysis
The installation instructions invoke the
clawhubcommand throughnpxwithout specifying an exact package version or integrity value. If the command is not already available locally,npxmay retrieve and execute the current package published under that name. The command then installs another mutable, name-resolved component,kemi-heartbeat-plugin.Consequently, the code executed during installation is not fully represented by the audited project files and may change after this review. Compromise of the relevant registry account, dependency infrastructure, package namespace, or a transitive dependency could cause users following the documented instructions to execute altered code.
The reviewed package itself contains only
SKILL.mdand_meta.json; no locally packaged executable implementation was available to verify the behavior of the external installer or installed component.Attack Path
- An attacker compromises or gains control of the package resolved as
clawhub, the named plugin, or one of their executable dependencies. - The attacker publishes a malicious or modified version under the same mutable package name.
- A user follows the documented installation procedure and runs
npx clawhub install kemi-heartbeat-plugin. npxresolves and executes the externally supplied CLI package, and the CLI resolves the named plugin.- Malicious CLI code, installation hooks, lifecycle scripts, or plugin setup logic executes with the privileges of the user running the command.
- The payload may access resources available to that ...[truncated 828 chars]
- An attacker compromises or gains control of the package resolved as
- Remediation
View remediation
Remediation Suggestions
-
Pin the
clawhubCLI to a reviewed exact version rather than relying on the latest registry resolution:bash npx --yes clawhub@EXACT_REVIEWED_VERSION install kemi-heartbeat-plugin@EXACT_REVIEWED_VERSION -
Pin the plugin itself to an immutable version, commit, or content digest if the installer supports it.
-
Publish and verify package integrity hashes or signed provenance before execution.
-
Document the expected package registry and prevent fallback to untrusted or user-controlled registries.
-
Prefer a locally installed, lockfile-controlled CLI over runtime package retrieval through
npx. -
Disable dependency lifecycle scripts where compatible with the installation process.
-
Review the complete CLI package, installed plugin payload, and transitive dependency graph before recommending execution.
-
Run installation with a minimally privileged account in an isolated environment without production credentials or sensitive environment variables.
-
