T08 · Insecure Dependencies
- Location
SKILL.md:45- Finding
Unpinned Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:45andSKILL.md:72
Vulnerability Type: Unpinned third-party package execution
Risk Level: MediumComplete vulnerable code snippet:
bash npx clawhub install realmrouter-switch --forceThe same command is documented for both macOS/Linux and Windows installations.
Technical Analysis
The installation instructions invoke
clawhubthroughnpxwithout specifying an exact package version or integrity value. Depending on the local npm configuration and cache state,npxcan retrieve and execute the package currently resolved by the configured registry. Consequently, the executed installer can differ from the version originally reviewed.The
--forceoption further increases the impact by allowing the command to replace an existing Skill installation. There is no evidence in the audited project that the referenced package is currently malicious; the vulnerability is the mutable and insufficiently verified supply-chain boundary.Attack Path
- An attacker compromises the package publication account, registry, package distribution infrastructure, or another component involved in resolving the unpinned
clawhubpackage. - The attacker publishes a malicious or modified version under the package name resolved by
npx. - A user follows the documented installation command.
npxdownloads and executes the attacker-controlled package with the privileges of the user running the command.- The malicious installer can access user-readable files, alter user-writable configuration, execute subprocesses, and replace the existing Skill because
--forceis supplied.
Impact Assessment
Successful exploitation provides code execution under the installing user's account. The resulting access is limited by that account's operating-system permissions, but may include OpenClaw configuration and credentials, files in the user's home directory, netwo ...[truncated 196 chars]
- An attacker compromises the package publication account, registry, package distribution infrastructure, or another component involved in resolving the unpinned
- Remediation
View remediation
Remediation Suggestions
- Pin
clawhubto a specifically reviewed version, for example:bash npx --yes clawhub@<reviewed-version> install realmrouter-switch - Document the expected npm registry and require installation from that trusted source.
- Where supported, verify the package using a cryptographic integrity digest or signed release before execution.
- Remove
--forcefrom the default instructions. Reserve forced replacement for an explicit recovery or upgrade procedure after informing the user what will be overwritten. - Publish and verify package lock or provenance information so users can confirm that the installed artifact matches the audited release.
- Advise users not to run the installation command with administrator or root privileges unless such privileges are demonstrably required.
- Pin
