T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:26
- Finding
- Unverified Remote Installation Scripts Executed Directly by Shells## Vulnerability Details **File Location**: `SKILL.md`, lines 26-29 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ```bash curl -LsSf https://astral.sh/uv/install.sh | sh # Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" ``` ### Technical Analysis The installation instructions download scripts from an external URL and immediately execute the received content using `sh` or PowerShell's `Invoke-Expression`. The downloaded payload is not pinned to a specific immutable version and is not verified using a cryptographic checksum or signature before execution. The PowerShell command additionally uses `-ExecutionPolicy ByPass`, disabling a local protection intended to restrict script execution. Although the URL is presented as the official installation source for `uv`, direct execution still creates a mutable supply-chain code-execution channel. A compromise of the hosting service, domain, DNS resolution, TLS delivery path, or publisher account could change the effective payload after this Skill has been reviewed. Installing `uv` is relevant to the documented workflow, but executing an unverified remote response and bypassing execution policy are not necessary minimum-privilege methods of installation. ### Attack Path 1. A user or Agent follows the installation instructions in `SKILL.md`. 2. The system requests `install.sh` or `install.ps1` from the external server. 3. An attacker compromises or otherwise controls the remote delivery path or hosted script. 4. The malicious response is passed directly to `sh` or `iex` without local inspection or integrity verification. 5. The payload executes with all permissions available to the invoking user. 6. The payload can access local data, modify user configuration, steal credentials, install additional software, or establish persistence. ### Impact Assessment Successful exploitatio ...[truncated 530 chars]
- Remediation
- ## Remediation Suggestions - Remove all direct `curl | sh` and `irm | iex` installation commands. - Do not bypass the PowerShell execution policy. - Prefer a trusted operating-system package manager with a version-pinned package. - If a standalone installer is required, download a specific immutable release artifact separately. - Verify the artifact against a publisher-provided cryptographic signature or pinned SHA-256 checksum before execution. - Display or inspect the downloaded script before running it rather than piping the network response directly into an interpreter. - Execute installation with an unprivileged account and avoid `sudo`, administrator shells, or other unnecessary elevation. - Document the exact expected release version and trusted distribution source so the installation process remains reproducible.
