T08 · Insecure Dependencies
Warning
- Location
- README.md:18
- Finding
- Unpinned Third-Party Package Execution Through npx<![CDATA[ ## Vulnerability Details **File Location**: `README.md:18-21` **Vulnerability Type**: Unpinned third-party dependency execution **Risk Level**: Medium ### Vulnerable Code ```bash ### Install ```bash npx -y clawhub install guanqi0914/wcs-helper-network-skill ``` ``` The same installation pattern also appears in `SKILL.md:90-93`. ### Technical Analysis The installation instructions invoke `clawhub` through `npx` without specifying a package version or integrity digest. The `-y` option suppresses the confirmation prompt, allowing `npx` to download and execute the currently resolved package automatically. Because neither the `clawhub` executable package nor the installed skill is pinned to a reviewed version, the effective code executed by this command may change after the documented project has been audited. Compromise of the relevant registry account, publication infrastructure, dependency chain, or package namespace could result in execution of attacker-controlled installation logic. ### Attack Path 1. An attacker compromises the package publisher, registry account, package namespace, or a transitive dependency used by the package resolved as `clawhub`. 2. The attacker publishes a malicious package version. 3. A user follows the documented installation command. 4. `npx -y` retrieves the currently resolved version without an interactive confirmation. 5. Malicious package lifecycle or CLI code executes with the privileges of the user performing the installation. 6. The malicious code can access files, credentials, network resources, and agent configuration available to that user. ### Impact Assessment Successful exploitation provides arbitrary code execution under the installing user's account. The practical scope depends on how installation is performed. If run as `root`, as suggested by the hard-coded `/root/.openclaw` path elsewhere in the project, compromise could affect the entire host. Potential consequences include credential theft, skill ...[truncated 88 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the executable package to a specifically reviewed version, for example `npx -y clawhub@<audited-version>`. - Pin the installed skill to an immutable version or content digest if the package manager supports it. - Use registry integrity metadata, signatures, or checksums to validate downloaded artifacts. - Maintain and review a lockfile for all transitive dependencies involved in installation. - Avoid suppressing installation confirmation unless the exact immutable artifact has already been verified. - Perform installation as an unprivileged account and grant only the filesystem and network access required by the skill. ]]>
