T03 · Remote Payload Retrieval and Execution
- Location
gcp-free-tier.sh:36- Finding
Unpinned Remote Installer Is Piped Directly into Bash
- Content
View full analysis
&1 | tail -5 ``` ### Technical Analysis The script opens an SSH session to the newly provisioned GCP instance, downloads the current contents of `https://openclaw.ai/install.sh`, and sends those contents directly to Bash. The downloaded payload is not pinned to a version or immutable commit and is not validated with a hardcoded checksum or cryptographic signature. HTTPS protects the network transport but does not establish that the mutable script remains equivalent to the version originally reviewed. Compromise of the website, DNS, hosting infrastructure, publishing account, or installer generation process could replace the effective payload. Remote installation is consistent with the Skill's deployment purpose, but piping mutable network content directly into a shell exceeds the minimum safe mechanism necessary to install OpenClaw. ### Attack Path 1. An attacker compromises the installer hosting infrastructure, domain, publishing credentials, or upstream deployment process. 2. The attacker replaces `install.sh` with a malicious shell payload. 3. An operator executes `gcp-free-tier.sh`. 4. `gcloud compute ssh` connects to the new `openclaw-free` VM. 5. `curl` retrieves the attacker-controlled installer. 6. Bash executes the payload immediately without integrity or authenticity verification. 7. The payload establishes control of the VM, steals accessible credentials, modifies OpenClaw, or uses the node to access connected fleet resources. ### Impact Assessment The attacker obtains arbitrary command execution on the GCP VM with the privileges of the remote SSH account. The precise privilege level depends on GCP ...[truncated 615 chars]- Remediation
View remediation
