T03 · Remote Payload Retrieval and Execution
Error
- Location
- check_skills.md:69
- Finding
- Unverified Remote ClawHub Installer Is Piped Directly to Bash<![CDATA[ ## Vulnerability Details **File Location**: `check_skills.md:69` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ### Vulnerable Code ```bash npm install -g clawhub # or curl -fsSL https://clawhub.io/install | bash ``` ### Technical Analysis The recommended command downloads a mutable script from an external URL and immediately executes it with Bash. No version pinning, checksum verification, cryptographic signature validation, or local review occurs between retrieval and execution. HTTPS authenticates the connection under normal certificate assumptions, but it does not guarantee that the remote server will continue serving the same audited payload. Compromise of the website, hosting infrastructure, DNS, certificate authority, or release pipeline would allow the effective code executed by this Skill’s users to change after the Skill itself was reviewed. The installation is not necessary for the core health-check operation. Treating the absence of ClawHub as an error and recommending direct remote execution exceeds the minimum privileges required to inspect system health. ### Attack Path 1. An attacker compromises `clawhub.io`, its deployment pipeline, or a relevant network trust dependency. 2. The attacker replaces the installer response with a malicious shell script. 3. A health report identifies ClawHub as missing and recommends the vulnerable command. 4. The user approves or manually runs the recommendation. 5. Bash executes the attacker-controlled response with the privileges of the invoking account. 6. The payload can access the user’s OpenClaw configuration, credentials, workspace, and any other files available to that account. ### Impact Assessment Successful exploitation provides arbitrary command execution as the invoking user. The attacker could read or modify OpenClaw configuration, steal locally accessible credentials, alter Agent instructions, install persistence, modify skills, or execute a ...[truncated 23 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove all pipe-to-shell installation instructions. - Direct users to a documented package-manager installation process using a pinned package version. - If a standalone installer is required: 1. Download it to a local file. 2. Require HTTPS from a documented canonical release URL. 3. Verify a publisher signature and a separately published SHA-256 digest. 4. Display the verified file and requested privileges before execution. 5. Execute it only after explicit informed confirmation. - Do not penalize health scores merely because an optional package installer is unavailable. ]]>
