T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:76- Finding
Unpinned Remote Installer Retrieval and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:76-78
Vulnerability Type: Remote payload retrieval followed by local execution
Risk Level: HighVulnerable Code
bash git clone https://github.com/openclaw/gstack-openclaw ~/.openclaw/skills/gstack cd ~/.openclaw/skills/gstack && ./install.shTechnical Analysis
The installation instructions clone the current state of a remote repository and immediately execute
install.shwithout pinning the repository to a reviewed commit or verifying the script's integrity.The audited project does not contain
install.sh. This instruction therefore also contradicts the claims inSKILL.mdandSECURITY.mdthat the installer was removed and that the project is documentation-only.Because the remote branch is mutable, the code executed by a future user can differ from the content reviewed during this audit. A compromised repository, malicious maintainer update, account takeover, DNS or transport trust failure, or repository substitution could introduce an installer that executes arbitrary commands.
Attack Path
- An attacker compromises or gains write access to the referenced repository, or otherwise causes users to retrieve substituted repository content.
- The attacker adds a malicious
install.shto the default branch. - A user follows the installation instructions in
SKILL.md. git cloneretrieves the attacker's current payload.- The shell immediately executes
install.shunder the user's account. - The payload can access files and credentials available to that account, modify the OpenClaw environment, install persistence, or retrieve additional payloads.
Impact Assessment
Successful exploitation provides arbitrary command execution with the privileges of the user performing the installation. The accessible scope can include the user's home directory, source repositories, SSH configuration, development credentials, ...[truncated 146 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the obsolete
./install.shinstruction. - Make
SKILL.md,README.md, andSECURITY.mduse one consistent installation procedure. - For manual installation, copy only the reviewed Markdown files rather than executing repository-provided scripts.
- If remote retrieval is unavoidable, pin the repository to a specific reviewed commit and verify a published cryptographic checksum or signature.
- Never combine remote retrieval and execution in a single copy-and-paste command.
- Add an automated documentation test that rejects references to missing executable files.
- Remove the obsolete
