T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:79
- Finding
- Unverified Remote Installation Scripts Executed Directly by the Shell<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 79-83 **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 mutable scripts from `cli.oomol.com` and immediately execute them with Bash or PowerShell. Neither installation path pins a script version, verifies a cryptographic checksum or signature, nor gives the user an opportunity to inspect the downloaded content before execution. Although installing the required CLI is relevant to the Skill, piping network content directly into an interpreter exceeds the minimum safe privileges necessary for installation. The effective code can change after the Skill has been reviewed. Consequently, the security of the installation process depends entirely on the continuing integrity of the remote host, its deployment pipeline, DNS resolution, TLS termination, and the retrieved scripts. The audit found no evidence that the current remote scripts are malicious. The vulnerability is that any future or temporary compromise of the delivery channel would immediately become arbitrary local code execution. ### Attack Path 1. A user attempts to use the Skill without the `oo` CLI installed. 2. The command fails with `oo: command not found`. 3. The user or agent follows the documented first-time setup procedure. 4. Bash or PowerShell retrieves the current installation script from `cli.oomol.com`. 5. The shell executes the response without integrity verification or review. 6. If the remote service or delivery chain has been compromised, attacker-controlled commands execute with the privileges of the user running the installation. ### Impact Assessment A malicious installation response could execute arbitrary commands under the invo ...[truncated 728 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the direct `curl | bash` and `irm | iex` installation instructions. 2. Distribute the CLI through a trusted, platform-native package manager and pin an explicit version. 3. If standalone scripts remain necessary: - Publish immutable, versioned script URLs. - Download the script to a local file before execution. - Publish and verify a SHA-256 or stronger digest through an independent trusted channel. - Cryptographically sign releases and verify the signature against a pinned publisher key. - Display the script or installation plan for review. - Require explicit user approval before execution. 4. Run installation with ordinary user privileges unless a documented operation strictly requires elevation. 5. Document the files, executables, network destinations, and configuration changes made by the installer. 6. Prefer commands similar to: ```bash curl -fSLo oo-install.sh "https://example.invalid/releases/v1.0.0/install.sh" echo "<PINNED_SHA256> oo-install.sh" | sha256sum --check bash oo-install.sh ``` The digest and URL must correspond to a real, immutable release and must not be copied from the same mutable response being verified. ]]>
