T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:54
- Finding
- Unverified Remote Installation Scripts Are Executed Directly<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 54-61; repeated at line 312 **Vulnerability Type**: Remote payload retrieval and immediate shell execution **Risk Level**: High ### Vulnerable Code ```bash Or install via one-line script (Linux/macOS): ```bash curl -fsSL https://aitun.cc/install.sh | bash ``` Windows (PowerShell): ```powershell irm https://aitun.cc/install.ps1 | iex ``` ``` The same unsafe alternatives are repeated in the CLI reference: ```text The `aitun` command (installed via `pip install aitun`, or alternatively `curl -fsSL https://aitun.cc/install.sh | bash` / `irm https://aitun.cc/install.ps1 | iex` on Windows) accepts these flags: ``` ### Technical Analysis The Linux and macOS command pipes an HTTP response directly into `bash`, while the Windows command sends the downloaded response directly to PowerShell's `Invoke-Expression` alias. Neither workflow: - Pins the installer to an immutable release. - Verifies a cryptographic checksum or digital signature. - Saves the script for review before execution. - Constrains the commands or resources available to the installer. - Prevents the remote payload from changing after the Skill has been reviewed. HTTPS provides transport protection but does not guarantee that the hosting server, DNS configuration, publication account, or installer supply chain will remain trustworthy. The effective code being executed is controlled by the remote endpoint at installation time. This behavior is not minimally necessary for RDP tunneling because the documentation already provides a package-based installation method. Even that method should be pinned and verified, but it avoids explicitly piping an arbitrary HTTP response into a command interpreter. ### Attack Path 1. An attacker compromises `aitun.cc`, its hosting account, DNS configuration, TLS issuance path, or installer publication workflow. 2. The attacker replaces `install.sh` or `install.ps1` with a malicious payload. 3. A ...[truncated 995 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove all `curl | bash` and `irm | iex` installation instructions. 2. Publish versioned, immutable release artifacts through a verifiable release channel. 3. Require users to download the artifact separately before executing it. 4. Publish a SHA-256 or stronger checksum through an independent trusted channel and require verification before installation. 5. Digitally sign release artifacts and document signature verification using a pinned signing identity. 6. Pin the documented installer and client to a reviewed version rather than retrieving a mutable default installer. 7. Recommend installation from a non-administrative shell unless elevated privileges are demonstrably required. 8. If an installer script must be offered, use a workflow similar to: ```bash curl -fSLo install.sh https://example.invalid/releases/v4.9.23/install.sh echo "EXPECTED_SHA256 install.sh" | sha256sum --check - less install.sh bash install.sh ``` The real documentation must provide an authentic expected digest and trusted URL rather than the placeholders above. ]]>
