T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:53
- Finding
- Unverified Remote Installation Scripts Are Executed Directly<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:53`, `SKILL.md:58`, and `SKILL.md:334` **Vulnerability Type**: Remote payload retrieval followed by immediate shell execution **Risk Level**: Critical ### Complete Code Snippet ```bash curl -fsSL https://aitun.cc/install.sh | bash ``` ```powershell irm https://aitun.cc/install.ps1 | iex ``` The same installation methods 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 These commands retrieve mutable content from an external server and execute it immediately in Bash or PowerShell. The instructions do not pin an installer version, verify a cryptographic signature or digest, preserve the script for inspection, or otherwise establish that the downloaded content matches the version reviewed during this audit. HTTPS protects the transport under ordinary conditions but does not make the remotely hosted script immutable or trustworthy. Compromise of the hosting account, domain, certificate infrastructure, web server, or release process would allow the effective installation payload to change without any modification to this Skill. This installation mechanism is not the minimum privilege or minimum-risk method necessary to provide SSH tunneling. A verified, versioned package or artifact could provide the declared functionality without executing mutable server responses directly. ### Attack Path 1. An attacker compromises `aitun.cc`, its hosting environment, DNS/TLS infrastructure, or the installer publication process. 2. The attacker replaces `install.sh` or `install.ps1` with a malicious payload. 3. A user or AI agent follows the Skill's installation instructions. 4. `curl` or `irm` downloads the attacker-controlled response. 5. Bash or PowerShell executes that response immediately ...[truncated 640 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove all `curl | bash` and `irm | iex` installation instructions. - Publish immutable, versioned installation artifacts. - Require users to download the artifact without executing it, verify a publisher signature or pinned SHA-256 digest, and only then run it as a separate step. - Document the expected artifact filename, version, digest, signing identity, and official distribution location. - Prefer an audited package-manager installation with an exact version and integrity hashes. - Explicitly advise users not to execute the installer with elevated privileges unless a documented operation strictly requires them. ]]>
