T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:34- Finding
Unverified Remote Installation Script Executed Directly by Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 34
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash # On a fresh VPS curl -fsSL https://openclaw.ai/install.sh | bash cd / && tar xzf openclaw-full-backup-YYYY-MM-DD.tar.gz openclaw gateway startTechnical Analysis
The restore instructions pipe a remotely downloaded script directly into
bash. The effective executable payload is controlled by the content currently served fromhttps://openclaw.ai/install.sh, rather than by code contained and reviewed within this project.No immutable version, cryptographic signature, or expected checksum is specified. The command also gives the user no opportunity to inspect the downloaded file before execution. HTTPS protects the connection in transit but does not protect against compromise of the domain, DNS infrastructure, hosting account, release pipeline, or remote script itself.
Executing this installer is not required merely to extract the backup archive. Therefore, direct execution of mutable remote code exceeds the minimum behavior necessary for the archive restoration step.
Attack Path
- An attacker compromises the remote website, DNS configuration, hosting environment, deployment pipeline, or
install.shsource. - The attacker replaces or redirects the installation script with a malicious shell payload.
- A user follows the documented disaster-recovery procedure on a fresh server.
curlretrieves the attacker-controlled response and pipes it directly tobash.- The payload executes immediately with all privileges held by the invoking user.
- The payload may steal restored secrets, alter system files, install persistence, or compromise the OpenClaw environment before the gateway starts.
Impact Assessment
Successful exploitation provides arbitrary command execution under the account running the restore pr ...[truncated 870 chars]
- An attacker compromises the remote website, DNS configuration, hosting environment, deployment pipeline, or
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashexecution pattern. - Download the installer as a separate file so it can be inspected before execution:
bash curl --fail --show-error --location \ --output openclaw-install.sh \ https://openclaw.ai/releases/VERSION/install.sh - Reference an immutable, explicitly pinned release rather than a mutable generic URL.
- Publish an expected SHA-256 or stronger digest through a separately protected release channel and verify it before execution:
bash echo 'EXPECTED_SHA256 openclaw-install.sh' | sha256sum --check - - Prefer cryptographic release signatures and verify them against a documented, trusted public key.
- Review the downloaded script locally before running it.
- Execute the installer using the least-privileged account possible. Elevate only individual operations that demonstrably require administrative access.
- Separate application installation from backup restoration so users can restore onto an independently verified OpenClaw installation.
- Replace extraction directly into
/with validation of archive entries and extraction into a staging directory before copying approved files to their destinations.
- Remove the
