T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:92
- Finding
- Execution of an Unpinned Remotely Retrieved Setup Script## Vulnerability Details **File Location**: `SKILL.md`, lines 92-96 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High **Vulnerable Code**: ```bash cd /home/node/.openclaw/workspace git clone https://github.com/pfaria32/openclaw-expansion-pack.git projects/openclaw-expansion-pack # Run setup script (coming soon) bash projects/openclaw-expansion-pack/setup.sh ``` ### Technical Analysis The documented installation process clones the current default branch of an external GitHub repository and then executes its `setup.sh` script. No immutable commit, signed release, checksum, or other integrity constraint is specified. Consequently, the effective code executed by this procedure can change after the Skill has been reviewed. The repository is also described as “coming soon,” and the setup script is not included in the audited artifact. Its behavior and security properties therefore cannot be verified from this project. This creates a time-of-check/time-of-use supply-chain risk: an upstream maintainer, a compromised maintainer account, or another party capable of modifying the repository could place arbitrary shell commands in the setup script after this artifact has passed review. ### Attack Path 1. An attacker compromises the upstream repository, a maintainer account, or another publishing credential. 2. The attacker adds malicious commands to `setup.sh` or modifies another file invoked by that script. 3. A user follows the documented installation procedure without selecting an immutable revision. 4. `git clone` retrieves the attacker-controlled default branch. 5. The user runs `bash projects/openclaw-expansion-pack/setup.sh`. 6. The malicious commands execute with the permissions and environment of the invoking user. ### Impact Assessment Successful exploitation provides arbitrary command execution under the account running the installation. The attacker could access files and ...[truncated 439 chars]
- Remediation
- ## Remediation Suggestions 1. Publish the setup script and all files it invokes so they can be reviewed before installation is recommended. 2. Reference an immutable, audited commit hash or signed release instead of the repository's mutable default branch. 3. Publish a cryptographic checksum for the approved source archive or script and require verification before execution. 4. Use signed Git commits or release artifacts and document how users must validate the trusted signing identity. 5. Separate retrieval from execution and instruct users to inspect the script before running it. 6. Run installation with the least-privileged dedicated account and restrict filesystem, network, and credential access. 7. Do not describe the full installation option as ready until the referenced repository and setup script exist and have undergone security review.
