T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:24
- Finding
- Unverified Remote Installer Is Downloaded and Executed Directly## Vulnerability Details **File Location**: `SKILL.md`, lines 22–24 and 48–52 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ### Vulnerable Code ```bash # One-line install (recommended) curl -fsSL https://claw-insights.com/install.sh | sh ``` ```bash npm update -g claw-insights # Or re-run the install script curl -fsSL https://claw-insights.com/install.sh | sh ``` ### Technical Analysis The documented installation and upgrade procedures pipe an HTTP response directly into `sh`. The downloaded script is not pinned to a version, saved for inspection, checked against a cryptographic hash, or validated using a digital signature. This creates a mutable code-execution channel: the effective code executed by the Skill can change after the Skill itself has been reviewed. Compromise of the external domain, hosting environment, publication process, DNS infrastructure, or TLS termination could cause attacker-controlled shell commands to be returned and executed. Arbitrary remote shell execution exceeds the minimum privileges necessary to install a known application artifact. A versioned, integrity-verified package or release archive would provide the required installation functionality with a substantially smaller trust boundary. The external installer was not included in the audited project. Its current contents and the claims that the application is read-only, makes no cloud calls, and keeps data local therefore could not be independently verified. ### Attack Path 1. An attacker compromises or otherwise gains control of `https://claw-insights.com/install.sh` or its delivery infrastructure. 2. The attacker changes the response to include malicious shell commands. 3. A user or agent follows the documented installation or upgrade procedure. 4. `curl` retrieves the attacker-controlled response and passes it directly to `sh`. 5. The commands execute immediately with the permissi ...[truncated 823 chars]
- Remediation
- ## Remediation Suggestions - Remove the `curl ... | sh` installation and upgrade instructions. - Publish immutable, versioned release artifacts through a verifiable official channel. - Pin installation instructions to a specific audited version rather than retrieving a mutable script. - Publish a SHA-256 or stronger checksum over the exact artifact and preferably sign releases with a documented cryptographic signing key. - Require users to download the installer to a local file, verify its signature and checksum, and inspect it before execution. - Ensure the installer refuses elevated execution unless a narrowly scoped privileged operation is strictly necessary. - Document every filesystem location, service, and permission modified by installation. - Prefer an installer that operates entirely under the invoking user's account and grants access only to the specific OpenClaw files required for observability.
