T03 · Remote Payload Retrieval and Execution
Error
- Location
- references/setup-guide.md:8
- Finding
- Remote Installer Downloaded and Executed Without Integrity Verification<![CDATA[ ## Vulnerability Details **File Location**: `references/setup-guide.md:8-13` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ### Vulnerable Code ```text ### Install uv # macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | sh # Windows powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ``` ### Technical Analysis The setup instructions pipe an HTTPS response directly into a shell on macOS/Linux and use `Invoke-Expression` to execute a downloaded PowerShell response on Windows. The downloaded payload is not pinned to a specific release and is not checked against a cryptographic hash or signature. Although `astral.sh` is presented as the official source for `uv`, the effective code executed by these commands can change after this Skill has been reviewed. Compromise of the upstream distribution service, DNS resolution, certificates, or the installer publication process could turn these commands into an arbitrary-code execution mechanism. The Windows command additionally bypasses the PowerShell execution policy for this invocation. These installation methods exceed the minimum privileges and trust required by the Skill: the Skill needs a Python runner, but it does not inherently require unreviewed network content to be executed directly. ### Attack Path 1. A user follows the installation instructions. 2. The shell retrieves the current response from the external installer URL. 3. The response is passed directly to `sh` or `iex` without being saved or inspected. 4. If the upstream service or delivery path has been compromised, attacker-controlled commands execute with the privileges of the invoking user. 5. The payload may read user-accessible secrets, alter files, install persistence, or download additional components. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking user's account. The accessible scope ...[truncated 518 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the `curl | sh` and `irm | iex` instructions. 2. Prefer installation through a trusted operating-system package manager, such as Homebrew or another platform-native package source. 3. If direct installation is necessary: - Pin a specific `uv` release. - Download the artifact to disk without executing it. - Obtain the expected checksum or signature through a separately authenticated channel. - Verify the artifact before installation. - Execute only the verified artifact. 4. Avoid bypassing PowerShell execution policy. 5. Document the required installer permissions and instruct users not to run installation commands as root or administrator unless strictly necessary. ]]>
