T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:261
- Finding
- Remote setup script is downloaded and executed directly as root<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:261` and `SKILL.md:553` **Vulnerability Type**: Remote code retrieval and immediate shell execution **Risk Level**: Critical ```bash # Install Node.js 22 curl -fsSL https://deb.nodesource.com/setup_22.x | bash - DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs git ``` The same vulnerable installation pattern appears in the post-creation setup script: ```bash echo "=== Installing Node.js 22 ===" curl -fsSL https://deb.nodesource.com/setup_22.x | bash - DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs git python3-pip ``` ### Technical Analysis The commands download a mutable response from `https://deb.nodesource.com/setup_22.x` and pass it directly to a privileged shell. There is no content hash, detached signature, pinned artifact, or review step between retrieval and execution. NodeSource is a recognizable external provider, and installing Node.js is necessary for the declared OpenClaw deployment workflow. However, immediate root execution of mutable network content is not the minimum privilege or minimum trust mechanism required to install Node.js. Because the script runs while provisioning a root-operated VM, any code returned by the endpoint receives unrestricted system privileges. The effective payload can also change after the Skill has been reviewed. ### Attack Path 1. An attacker compromises the remote endpoint, its hosting infrastructure, DNS resolution, or another trusted component in the HTTPS delivery chain. 2. The attacker modifies the response returned for `setup_22.x`. 3. A user or autonomous agent follows the deployment instructions. 4. `bash` executes the attacker-controlled response immediately as root. 5. The payload installs persistence, modifies packages, or waits for API keys and Aleph credentials to be placed on the VM. 6. The attacker gains control over the deployed agent and any credentials subsequently transferred to it. ### Impact Assessment Succe ...[truncated 322 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Do not pipe network responses directly into a shell. - Prefer distribution-provided, signed Node.js packages where practical. - If NodeSource is required, download the setup artifact separately and verify a vendor-published cryptographic signature or independently obtained digest before execution. - Pin the repository configuration, signing-key fingerprint, Node.js major/minor version, and package version. - Execute installation in a clean provisioning environment before placing application secrets on the VM. - Retain an auditable copy or digest of the reviewed setup artifact. ]]>
