T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:61
- Finding
- Unverified Remote Installation Scripts Executed Directly by Shells<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 61-65 **Vulnerability Type**: Remote payload retrieval and immediate 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 installation instructions pipe remotely retrieved content directly into Bash or PowerShell. The effective executable payload is not contained in the reviewed project and can change after the Skill has been audited. Neither command pins a script version nor verifies a cryptographic digest or publisher signature before execution. HTTPS protects the connection in transit under normal conditions, but it does not protect users if the remote server, publishing account, installation infrastructure, or trusted certificate path is compromised. Installation is relevant when the required CLI is unavailable, but immediate execution of mutable remote content is not the minimum privilege or safest mechanism necessary to install it. A downloaded, version-pinned, and independently verified artifact would provide the same functionality with substantially less risk. ### Attack Path 1. The Agent attempts to use the Skill on a system where the `oo` command is unavailable. 2. The documented fallback directs the user or Agent to retrieve the installation script from `cli.oomol.com`. 3. An attacker compromises the remote installation script, its hosting infrastructure, or another trusted component in the delivery path. 4. `curl | bash` or `irm | iex` passes the attacker-controlled response directly to a command interpreter. 5. The malicious commands execute with the privileges of the account running the installation. 6. The payload can access that account's files, environment variables, active credentials, and available network resources, and could attempt persistence or further compromise ...[truncated 792 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove both direct download-to-interpreter pipelines. 2. Publish versioned installation artifacts through a trusted release channel. 3. Pin the CLI to a specific reviewed version rather than installing the latest mutable release. 4. Download the artifact to disk without executing it automatically. 5. Verify a publisher signature or a SHA-256 digest obtained through an independently protected channel. 6. Abort installation if verification fails. 7. Display the artifact version, source, and expected privileges, and require explicit user approval before installation. 8. Prefer a signed operating-system package or established package manager where available. 9. Avoid elevated installation unless it is strictly required, and document which files and directories the installer will modify. A safer conceptual workflow is: ```bash curl -fSLO "https://trusted.example/releases/<pinned-version>/oo-cli.tar.gz" echo "<expected-sha256> oo-cli.tar.gz" | sha256sum --check - # Inspect or install the verified artifact only after explicit approval. ``` The actual release URL and digest must come from the publisher's authenticated, version-specific release process. ]]>
