T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:23
- Finding
- Mutable Remote Executable Is Downloaded and Trusted Without Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:23-26` **Vulnerability Type**: Remote payload retrieval and software supply-chain risk **Risk Level**: High ```bash curl -fsSL https://raw.githubusercontent.com/Chordlini/localsend-cli/master/localsend-cli -o ~/.local/bin/localsend-cli chmod +x ~/.local/bin/localsend-cli ``` ### Technical Analysis The installation instructions download an executable Python CLI directly from the mutable `master` branch of an external GitHub repository. The downloaded content is made executable without validating a cryptographic checksum, release signature, pinned commit, or reviewed version. Consequently, the code executed by the Skill can change after the Skill itself has been audited. Compromise of the upstream account or repository, malicious modification of the branch, or an unreviewed upstream change could introduce arbitrary code into the installed CLI. The Skill later invokes this executable for device discovery, sending files, and operating a network receiver. ### Attack Path 1. An attacker compromises the upstream repository, its maintainer credentials, or another mechanism capable of modifying the referenced `master` branch. 2. The attacker replaces or modifies `localsend-cli` with malicious Python code. 3. A user follows the documented installation command. 4. The mutable remote payload is saved under `~/.local/bin/localsend-cli` and marked executable. 5. The Skill invokes the CLI during a discovery, send, or receive operation. 6. The malicious payload executes with the privileges and filesystem/network access of the OpenClaw user. ### Impact Assessment Successful exploitation provides arbitrary code execution under the Agent's operating-system account. The payload could access files available to that account, inspect environment variables, modify user-owned files, transmit data over the network, or alter future file-transfer behavior. The issue does not directly demonstrate root-level privilege e ...[truncated 114 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Pin the dependency to a specific reviewed release or immutable commit hash rather than `master`. - Publish and verify a SHA-256 or stronger cryptographic digest before marking the file executable. - Prefer a signed release artifact and verify its signature against a separately authenticated maintainer key. - Fail closed if checksum or signature verification fails. - Vendor the reviewed CLI into the Skill package when practical, while maintaining a documented update and review process. - Execute the CLI with the minimum necessary filesystem and network permissions, ideally in a sandbox. ]]>
