T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:64
- Finding
- Remote Installer Downloaded and Executed Without Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:64` **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: Critical ### Vulnerable Code ```bash curl -LsSf https://astral.sh/uv/install.sh | sh ``` ### Technical Analysis The installation instruction retrieves a mutable shell script from an external URL and immediately pipes it into `sh`. No version is pinned, and no cryptographic signature or checksum is verified before execution. Although HTTPS provides transport encryption and server authentication, it does not protect against compromise of the upstream server, domain, hosting account, release process, or installer content. Because the downloaded bytes are never stored for review, the effective payload can change after the Skill has been audited. Installing `uv` is ancillary to the declared security-scanning function. Direct remote-to-shell execution is not the minimum-privilege or minimum-risk method necessary to satisfy that dependency. ### Attack Path 1. An attacker compromises the installer host, publishing process, domain, or another component controlling `https://astral.sh/uv/install.sh`. 2. The attacker replaces or modifies the installer with malicious shell commands. 3. A user follows the Skill's Linux installation instructions. 4. `curl` retrieves the attacker's current payload. 5. The pipe sends the payload directly to `sh` without integrity verification or inspection. 6. The malicious commands execute with all privileges available to the invoking user. ### Impact Assessment Successful exploitation provides arbitrary command execution under the invoking user's account. The payload could read or alter user-accessible files, source code, credentials, SSH configuration, tokens, Agent configuration, and installed skills. It could also install persistence or modify other executable content where the user has write permission. The command does not inherently elevate privileges, but its scope includes the f ...[truncated 132 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the direct `curl | sh` installation path. - Prefer a trusted operating-system package manager, such as the documented Homebrew method or an appropriate distribution repository. - If an upstream installer is unavoidable: 1. Pin a specific installer or release version. 2. Download it to a local file without executing it. 3. Obtain its expected checksum or signature through an independently authenticated channel. 4. Verify the artifact before execution. 5. Review the downloaded script. 6. Execute it as an unprivileged user and restrict its destination where possible. - Avoid silent installation instructions so users can inspect download and verification failures. - Document the files, directories, and environment changes the installer is expected to make. ]]>
