T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:44- Finding
Unverified Remote Installer Is Piped Directly into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:44
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash curl -sSL https://install.openclaw.ai | bashTechnical Analysis
The installation command streams content retrieved from an external server directly into Bash. The
-Loption also follows HTTP redirects, so the executed payload may originate from a different endpoint. The instructions do not pin an installer version, validate a cryptographic checksum, verify a publisher signature, or give the user an opportunity to inspect the downloaded script.Consequently, the effective code executed by this audited Skill can change without any change to the repository. The apparent relationship between the hostname and the product does not establish the trustworthiness or immutability of the returned payload.
This behavior exceeds the minimum capability needed for backup and restoration. Even if reinstallation is part of the declared workflow, it does not require immediate execution of an unverified, mutable network response.
Attack Path
- A user follows the documented fresh-install workflow.
- The user runs the
curl | bashcommand. - The installer endpoint, a redirect destination, DNS resolution, or associated hosting infrastructure returns compromised or malicious shell code.
- Bash executes the response immediately without authenticity or integrity validation.
- The payload performs arbitrary actions with the permissions of the invoking user and may request or use elevated privileges if the user grants them.
Impact Assessment
A malicious payload can obtain code execution with the invoking user's privileges. This may permit access to user-readable credentials and configuration, modification or deletion of files, data exfiltration, installation of additional payloads, and modification of the OpenClaw installation. System-wide impact ...[truncated 110 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the pipeline with a version-pinned installer or operating-system package from a documented official release channel.
- Download the artifact to a local file rather than piping it into a shell.
- Verify a publisher signature and a trusted, version-specific SHA-256 checksum before execution.
- Display or inspect the downloaded script before running it.
- Reject unexpected redirects, especially cross-origin redirects.
- Run the installer without elevated privileges by default. Elevate only narrowly scoped operations that demonstrably require it.
- Document the expected source, version, signature key, checksum, and installer behavior.
A safer general workflow is:
bash curl --fail --show-error --location \ --output openclaw-installer.sh \ "https://trusted.example/openclaw/releases/PINNED_VERSION/install.sh" echo "EXPECTED_SHA256 openclaw-installer.sh" | sha256sum --check - less openclaw-installer.sh bash openclaw-installer.shThe project must supply a real pinned version and independently trusted checksum or signature rather than placeholders.
