T03 · Remote Payload Retrieval and Execution
Error
- Location
- references/install-auth-and-profiles.md:8
- Finding
- Unverified Remote Installer Execution in Installation Guidance## Vulnerability Details **File Location**: `references/install-auth-and-profiles.md`, lines 8–16 **Vulnerability Type**: Remote payload retrieval and immediate shell execution **Risk Level**: High ### Vulnerable Code ```markdown | Environment | Good install choice | | --- | --- | | Generic macOS/Linux shell | `curl -fsSL https://resend.com/install.sh \| bash` | | Node-heavy dev machine | `npm install -g resend-cli` | | Homebrew-managed machine | `brew install resend/cli/resend` | | Windows PowerShell | `irm https://resend.com/install.ps1 \| iex` | ``` ### Technical Analysis The recommended Unix and Windows installation commands retrieve remotely mutable scripts and immediately execute them with `bash` or PowerShell. The instructions do not pin a release, save the script for inspection, or verify a checksum or cryptographic signature. Although the scripts are hosted on the declared vendor domain, this does not provide artifact-level integrity. Compromise of the vendor website, CDN, DNS, TLS issuance, or installer publication process could change the effective code after this Skill has been reviewed. These installation commands are relevant to the Skill's functionality, but immediate interpreter piping exceeds the minimum privilege and trust necessary to install the CLI safely. This file only documents the commands and does not execute them automatically. ### Attack Path 1. An attacker compromises or gains influence over the remote installer delivery path. 2. A user or agent follows the documented `curl | bash` or `irm | iex` command. 3. The shell executes the remotely supplied content without integrity verification. 4. The payload inherits the invoking user's environment and filesystem permissions. 5. The payload can steal accessible credentials, alter files, install additional software, or modify subsequent CLI behavior. ### Impact Assessment Successful exploitation provides arbitrary code execution with ...[truncated 282 chars]
- Remediation
- ## Remediation Suggestions - Remove all instructions that pipe network responses directly into an interpreter. - Download a versioned release artifact to a local file before execution. - Pin the expected CLI version rather than using a mutable installer endpoint. - Verify a vendor-published SHA-256 checksum or cryptographic signature. - Prefer a trusted, version-pinned package-manager installation where practical. - For PowerShell, download the installer separately, validate its Authenticode signature or published hash, and only then invoke it. - Explain the trust boundary and require explicit user approval before running any installer.
