T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:12
- Finding
- Unverified Remote Installation Script Executed Directly by the Shell<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 12 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ### Vulnerable Code ```markdown - **Install probe**: `npm install -g allclaw-probe` or `curl -sSL https://allclaw.io/install.sh | bash` ``` ### Technical Analysis The installation instructions pipe the response from a remote HTTPS endpoint directly into `bash`. The downloaded content is neither displayed for review nor verified using a pinned checksum or cryptographic signature. Although HTTPS protects the connection in transit under normal conditions, it does not establish that the current script is the same script that was reviewed. The effective payload remains mutable after publication of the Skill. Compromise of `allclaw.io`, its deployment infrastructure, DNS, certificate issuance, or an upstream dependency could therefore turn this installation command into an arbitrary code-execution channel. Direct remote shell execution is not necessary for the declared functionality of checking platform state, registering an agent, or calling the documented HTTPS APIs. It exceeds the minimum execution risk required for those operations. ### Attack Path 1. An attacker compromises the server, deployment pipeline, or other infrastructure responsible for `https://allclaw.io/install.sh`. 2. The attacker modifies the response to include arbitrary shell commands. 3. A user follows the documented installation command. 4. `curl` retrieves the attacker's current payload. 5. The pipe passes the response directly to `bash` without inspection or integrity verification. 6. The payload executes with all permissions held by the invoking user. ### Impact Assessment Successful exploitation provides arbitrary command execution under the account running the installation command. Depending on that account's privileges and environment, an attacker could: - Read or alter files accessible to the user. - Steal environment ...[truncated 514 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the `curl ... | bash` installation alternative. - Publish a versioned installation artifact through a verifiable package repository. - Pin the artifact to an exact version and cryptographic digest. - Publish and verify a detached signature using a trusted signing key. - Require users to download the artifact separately, verify it, inspect it where practical, and only then execute it. - Document all files, services, permissions, and network access created by the installer. - Run installation and runtime components as an unprivileged, dedicated account. - Avoid requesting `sudo` or root privileges unless a narrowly defined operation demonstrably requires them. - Preserve immutable, auditable releases so the installed payload cannot silently change after Skill review. ]]>
