T03 · Remote Payload Retrieval and Execution
- Location
references/installation.md:79- Finding
Unverified Remote Installation Scripts Are Executed Directly by a Shell
- Content
View full analysis
/dev/null; then UV_VER=$(uv --version 2>&1) check_pass "UV is installed: $UV_VER" else check_fail "UV is not installed" "curl -LsSf https://astral.sh/uv/install.sh | sh" fi ``` ### Technical Analysis The installation instructions retrieve mutable content from external URLs and immediately pipe it into a shell. No version pinning, checksum validation, signature verification, or local inspection step occurs before execution. The NodeSource command is particularly dangerous because the remote response is executed through `sudo -E bash`, giving the downloaded payload root-level privileges while preserving portions of the caller's environment. The UV command executes with the invoking user's privileges and can modify user startup files, executable search paths, and files accessible to that account. Although the referenced domains appear related to the intended dependencies, HTTPS authenticates only the current endpoint connection. It does not make changing remote script content equivalent to a reviewed, immutable artifact. The environment-checking script does not execute the UV installer itself, but it presents the unsafe pipeline as the recommended re ...[truncated 1139 chars]- Remediation
View remediation
