T03 · Remote Payload Retrieval and Execution
Warning
- Location
- SKILL.md:29
- Finding
- Mutable Remote Installer Is Downloaded and Executed Without Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 29-45 **Vulnerability Type**: `T03: Remote Payload Retrieval and Execution` **Risk Level**: Medium ### Vulnerable Code ```bash **Homebrew (macOS/Linux):** ```bash brew tap holon-run/homebrew-tap brew install uxc ``` **Install Script (macOS/Linux, review before running):** ```bash curl -fsSL https://raw.githubusercontent.com/holon-run/uxc/main/scripts/install.sh -o install-uxc.sh # Review the script before running it less install-uxc.sh bash install-uxc.sh ``` **Cargo:** ```bash cargo install uxc ``` ``` ### Technical Analysis The documented installation flow downloads a shell script from the mutable `main` branch of an external GitHub repository and subsequently executes it with `bash`. The downloaded content is not pinned to an immutable commit or release and is not authenticated through a cryptographic signature or checksum. Although the instructions tell the user to review the script before execution, manual review is not an enforceable integrity control. The content may change after the Skill itself has been audited, and users may skip or inadequately perform the review. Consequently, the effective executable payload is controlled by the current state of the upstream repository rather than by the reviewed Skill package. The Homebrew and Cargo alternatives also do not pin a package version. Those methods create additional supply-chain exposure, but the direct download-and-execute sequence presents the clearest confirmed remote execution channel. Installing UXC is relevant to the Skill's declared functionality, but retrieving mutable executable code without integrity verification exceeds the minimum risk necessary to satisfy that prerequisite. ### Attack Path 1. An attacker compromises the upstream `holon-run/uxc` repository, a maintainer account, or its publication process. 2. The attacker modifies `scripts/install.sh` on the `main` branch with malicious shell commands. 3. A use ...[truncated 1232 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Replace the mutable `main` URL with an immutable release artifact or commit-specific URL. 2. Publish a trusted SHA-256 checksum for each supported platform and require verification before execution. 3. Prefer signed release artifacts and verify signatures against a documented maintainer key. 4. Pin Homebrew and Cargo installations to reviewed versions where the package managers support it. 5. Avoid presenting remote shell-script execution as the default installation path; prioritize reproducible package-manager installation from a trusted, versioned release. 6. If a script remains necessary, vendor the reviewed installer into the Skill package or provide explicit instructions to compare it against a documented digest. 7. Run installation with ordinary user privileges and clearly warn users not to invoke the installer with `sudo` unless a documented operation specifically requires elevation. 8. Document the files, directories, and network destinations the installer is expected to access so users can identify unexpected behavior during review. ]]>
