T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:21- Finding
Mutable Remote Installer Is Piped Directly into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 21
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code
bash curl -fsSL https://raw.githubusercontent.com/linsheng9731/openclaw-insight/main/install.sh | bashTechnical Analysis
This installation command downloads a shell script from the mutable
mainbranch of a personal GitHub repository and immediately executes it with Bash. The user has no opportunity to inspect the downloaded content before execution, and the command does not pin the script to an immutable commit, verify a cryptographic signature, or validate a locally specified checksum.Although the documentation states that the installer verifies the downloaded binary, that verification does not establish the integrity of the installer itself. A modified installer can omit or falsify any subsequent integrity check.
The declared functionality only requires reading local OpenClaw session data and generating a report. Executing mutable remote installation code is not the minimum privilege or trust required to perform that analysis. The risk is particularly significant because the installed tool is expected to access potentially sensitive conversation transcripts under
~/.openclaw.Attack Path
- An attacker compromises the repository owner’s account, GitHub credentials, release workflow, or
mainbranch, or otherwise causes malicious content to be served asinstall.sh. - The attacker modifies the installer to include arbitrary shell commands.
- A user or agent follows the recommended installation command in
SKILL.md. curlretrieves the attacker-controlled script.- The shell executes the script immediately with all privileges available to the invoking user.
- The payload can access local files, including OpenClaw session transcripts and user credentials, modify user configuration, install additional programs, or establish ...[truncated 736 chars]
- An attacker compromises the repository owner’s account, GitHub credentials, release workflow, or
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashinstallation pattern. - Publish versioned installer artifacts from a controlled release process.
- Pin downloads to an immutable release or reviewed commit rather than
main. - Require users to download the installer as a separate file before execution.
- Publish a cryptographic signature or checksum through an independently protected channel.
- Verify the signature or checksum locally before executing the installer.
- Display and document the exact files, directories, and permissions the installer will use.
- Avoid requesting administrative privileges; install only into a user-controlled directory such as
$HOME/.local/bin. - Include the implementation or verifiable source in the reviewed Skill package so its privacy and read-only claims can be audited.
- Remove the
