T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:59
- Finding
- Unverified Remote Installation Scripts Executed Directly by Shells<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 59–63 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ### Vulnerable Code ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ```powershell irm https://cli.oomol.com/install.ps1 | iex # Windows PowerShell ``` ### Technical Analysis The setup instructions download scripts from an external server and immediately execute the returned content using Bash or PowerShell. The downloaded payload is not pinned to an immutable release and is not subject to checksum verification, signature validation, or inspection before execution. TLS protects the connection in transit but does not guarantee that the hosted script will remain unchanged or that the distribution server cannot be compromised. Consequently, the effective executable payload may change after this Skill has been reviewed. Installing the required CLI is relevant to the Skill's functionality, but executing an unverified, mutable network response exceeds the minimum privilege necessary to perform installation safely. The scripts execute with all permissions available to the shell's current user. ### Attack Path 1. The `oo` CLI is unavailable, causing the user or agent to consult the first-time setup instructions. 2. The OOMOL distribution server, hosting environment, DNS or delivery infrastructure is compromised, or the hosted script is otherwise replaced. 3. The user executes the documented `curl | bash` or `irm | iex` command. 4. The shell immediately interprets the attacker-controlled response as executable code. 5. The payload performs arbitrary operations under the invoking user's privileges without an intervening verification step. ### Impact Assessment A substituted installer can obtain arbitrary code execution with the privileges of the invoking account. This permits access to files, environment variables, application data, and credentials readable ...[truncated 433 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the direct `curl | bash` and `irm | iex` execution patterns. 2. Direct users to a pinned, versioned release from the documented upstream repository. 3. Download the installation artifact to a local file before execution. 4. Publish and verify a cryptographic checksum or digital signature using a trusted, independently distributed verification key. 5. Allow the user to inspect the downloaded script before running it. 6. Prefer a trusted platform package manager with signed packages where available. 7. Execute installation with ordinary user privileges and request elevation only for a narrowly defined operation that genuinely requires it. 8. Document the exact destination files, permissions, and other system changes performed by the installer. ]]>
