T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:27
- Finding
- Unverified External Trading Binary Is Downloaded and Installed<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:27-45`; duplicated in `skill.json:23-40`, `openclaw/SKILL.md:27-45`, and `openclaw/skill.json:21-38`. Mutable download instructions also appear in `references/troubleshooting.md:12-24`. **Vulnerability Type**: Unverified remote executable retrieval and supply-chain exposure **Risk Level**: High ### Vulnerable Code ```json { "id": "github-linux", "kind": "script", "script": "curl -L -o /tmp/standx.tar.gz https://github.com/wjllance/standx-cli/releases/download/v0.3.5/standx-v0.3.5-x86_64-unknown-linux-gnu.tar.gz && tar -xzf /tmp/standx.tar.gz -C /tmp && sudo mv /tmp/standx /usr/local/bin/ && sudo chmod +x /usr/local/bin/standx", "bins": ["standx"], "label": "Install StandX CLI on Linux" }, { "id": "github-macos", "kind": "script", "script": "curl -L -o /tmp/standx.tar.gz https://github.com/wjllance/standx-cli/releases/download/v0.3.5/standx-v0.3.5-aarch64-apple-darwin.tar.gz && tar -xzf /tmp/standx.tar.gz -C /tmp && sudo mv /tmp/standx /usr/local/bin/ && sudo chmod +x /usr/local/bin/standx", "bins": ["standx"], "label": "Install StandX CLI on macOS" } ``` The troubleshooting guide additionally uses mutable release URLs: ```bash # 2. Direct download (Linux) curl -L -o standx.tar.gz https://github.com/wjllance/standx-cli/releases/latest/download/standx-linux-x86_64.tar.gz tar -xzf standx.tar.gz sudo mv standx /usr/local/bin/ # 3. Direct download (macOS) curl -L -o standx.tar.gz https://github.com/wjllance/standx-cli/releases/latest/download/standx-macos-aarch64.tar.gz tar -xzf standx.tar.gz sudo mv standx /usr/local/bin/ ``` ### Technical Analysis The Skill package does not contain the implementation of the `standx` program. Instead, installation retrieves a precompiled executable from a personal GitHub repository or Homebrew tap. The installer does not verify a cryptographic checksum, release signature, signer identity, or trusted build provenance before placing the executab ...[truncated 2374 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Publish platform-specific SHA-256 or stronger digests through a separately protected and authenticated release channel. 2. Verify the expected digest before extraction or installation, and terminate on any mismatch. 3. Sign release artifacts with Sigstore, Minisign, or another established signing mechanism and verify both the signature and expected signer identity. 4. Replace every `releases/latest` URL with an immutable versioned release reference. 5. Prefer an audited, vendor-controlled package registry rather than a personal package tap. 6. Publish source code, reproducible build instructions, and build attestations so users can independently verify that binaries correspond to reviewed source. 7. Download with secure failure handling such as `curl --fail --show-error --location`. 8. Do not install or invoke the program when verification fails. 9. Provide a read-only mode that does not expose the trading private key unless a user explicitly requests a transaction. 10. Pin installer metadata, Skill metadata, and downloaded CLI versions consistently; the artifact currently contains differing version values. ]]>
