T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:208
- Finding
- Unverified Remote Installation Scripts Are Executed Directly<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 208-212 **Vulnerability Type**: Remote payload retrieval and immediate execution **Risk Level**: Critical ### 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 an external server and pass them directly to a command interpreter. Neither command pins a script version, verifies a cryptographic signature or checksum, nor gives the user an opportunity to inspect the downloaded content before execution. HTTPS protects transport in ordinary circumstances, but it does not establish that the hosted script has remained unchanged since the Skill was audited. Compromise of the hosting account, web server, CDN, DNS infrastructure, TLS termination layer, or release pipeline could turn these installation commands into an arbitrary-code delivery mechanism. This behavior is not the minimum privilege necessary to install a CLI. A versioned artifact can be downloaded and authenticated before execution instead. ### Attack Path 1. The `oo` command is unavailable, causing the Agent or user to follow the first-time setup instructions. 2. An attacker compromises or gains control over the installation endpoint or its delivery infrastructure. 3. The attacker replaces the expected installer with a malicious shell or PowerShell payload. 4. The documented command downloads the modified payload. 5. `bash` or `iex` executes the payload immediately, without integrity verification or review. 6. The payload operates with the permissions of the user running the installation command. ### Impact Assessment Successful exploitation provides arbitrary code execution under the invoking user's account. The payload could read or modify accessible files, collect environment variables and credentials, alter de ...[truncated 364 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove all pipe-to-shell and download-to-`iex` installation commands. 2. Distribute the CLI as a version-pinned package or release artifact. 3. Download the artifact to disk before execution. 4. Publish SHA-256 or stronger checksums through an independently protected release channel and verify them locally. 5. Prefer signed artifacts and verify the publisher signature and certificate chain. 6. Display or otherwise make the installer available for inspection before it runs. 7. Document the exact files, permissions, and network access required by the installer. 8. Do not request administrative privileges unless a specific installation step requires them. 9. Pin the documentation to a known release rather than a mutable generic `install.sh` or `install.ps1` endpoint. ]]>
