T03 · Remote Payload Retrieval and Execution
- Location
README.md:151- Finding
Mutable Remote Homebrew Installer Is Downloaded and Executed Directly
- Content
View full analysis
Vulnerability Details
File Location:
README.md:151andFAQ.md:207
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code
bash /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Technical Analysis
The disaster-recovery documentation retrieves a shell script from the mutable
HEADbranch of an external repository and immediately executes the response with Bash. There is no version pinning, checksum validation, signature verification, or opportunity to inspect the downloaded payload before execution.Although the URL is associated with Homebrew's GitHub organization, the command's effective behavior can change after this Skill has been reviewed. A compromise of the upstream repository, maintainer account, delivery infrastructure, or installation branch would turn this documented command into an arbitrary remote-code execution channel.
Installing Homebrew is ancillary to restoring OpenClaw backups and exceeds the minimum functionality required by the restoration scripts. The Skill itself only requires existing local tools such as Bash,
tar,shasum, and OpenSSL.Attack Path
- An attacker compromises the upstream repository, a maintainer account, or the content-delivery path.
- The attacker modifies
install.shon the mutableHEADbranch. - A user follows the Skill's macOS disaster-recovery instructions.
curldownloads the attacker's current payload.- Bash executes the response immediately without integrity or authenticity verification.
- The payload performs arbitrary actions with the user's privileges and could request elevated privileges through the installation flow.
Impact Assessment
The downloaded script receives arbitrary command execution as the invoking user. It can read or modify OpenClaw configuration, API credentials, restored memories, installed Skills, shell co ...[truncated 171 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl-to-Bash command and link users to Homebrew's official installation documentation. - If automated installation is essential, pin the installer to a reviewed immutable commit rather than
HEAD. - Download the installer as a separate file, verify an independently obtained cryptographic digest or signature, and only then execute it.
- Display the installer source and require explicit user review before execution.
- Document the minimum required local dependencies and allow users to install them through an already trusted package manager.
- Remove the
