T08 · Insecure Dependencies
- Location
SKILL.md:15- Finding
Unpinned npm Package Execution During Skill Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 15
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumVulnerable Code
yaml openclaw: requires: tools: [filesystem] install: "npx clawhub install hosting-feeding-groups"Technical Analysis
The installation command invokes the
clawhubnpm package throughnpxwithout specifying an exact package version or integrity hash. If the package is not already available in a trusted local installation,npxmay retrieve and execute a mutable version from the configured npm registry.This creates a supply-chain trust boundary that is not controlled by the reviewed project. The code executed during installation may differ from the code that existed when the skill was audited. Exploitation would require compromise or malicious replacement of the
clawhubpackage, its registry account, a transitive dependency, or the configured package source.No directly malicious package code was present in the audited project. The risk arises from dynamically executing an unpinned external dependency.
Attack Path
- An attacker compromises the publishing account, registry entry, package source, or dependency chain associated with the
clawhubnpm package. - The attacker publishes a malicious package version or modifies a dependency used by the package.
- A user or skill-management system executes:
sh npx clawhub install hosting-feeding-groups - Because no exact version or integrity value is specified,
npxresolves the mutable package version available through the configured registry. - The downloaded CLI, package lifecycle hooks, or dependencies execute attacker-controlled code in the installing process.
- The malicious code operates with the privileges and environment access of the user running the installation command.
Impact Assessment
Successful exploitation could allow arb ...[truncated 609 chars]
- An attacker compromises the publishing account, registry entry, package source, or dependency chain associated with the
- Remediation
View remediation
Remediation Suggestions
- Pin the installer to a specific audited version, for example:
sh npx --yes clawhub@<audited-version> install hosting-feeding-groups - Use a lockfile and verify package integrity through the registry-provided integrity digest or an independently published checksum.
- Configure and document the trusted npm registry explicitly to reduce dependency-confusion and registry-substitution risks.
- Prefer a preinstalled, administrator-approved
clawhubbinary rather than downloading executable code during each installation. - Disable or tightly control npm lifecycle scripts where operationally possible.
- Run installation with a dedicated, least-privileged account in a sandbox or container without unnecessary credentials, sensitive environment variables, or writable access to unrelated files.
- Establish a controlled update process in which new installer versions and transitive dependency changes are reviewed before the pinned version is advanced.
- Pin the installer to a specific audited version, for example:
