T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:57
- Finding
- Unverified Remote Installer Execution Through Pipe-to-Shell Commands<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:57-61` **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 installation instructions retrieve mutable scripts from external URLs and immediately execute their contents using Bash or PowerShell. No version is pinned, and the instructions do not require a cryptographic signature, fixed checksum, or manual inspection before execution. The effective code executed on the user's machine is therefore not contained in the audited Skill. It can change after review without any corresponding modification to `SKILL.md`. Although the download domain is consistent with the named OOMOL service, compromise of the domain, hosting infrastructure, release pipeline, DNS resolution, or installer content could turn these commands into arbitrary code-execution vectors. This behavior exceeds the minimum privileges required for normal Sanity search and retrieval operations. The Skill states that users should generally have the CLI installed already, so automatic execution of a remote installer is not necessary for routine use. ### Attack Path 1. An attacker compromises the installer endpoint, its hosting or deployment pipeline, or another component capable of changing the returned script. 2. The `oo` command is unavailable, causing the user or agent to follow the first-time setup instructions. 3. `curl` or `irm` downloads the attacker-controlled response. 4. The shell pipeline passes the response directly to Bash or `Invoke-Expression`. 5. The payload executes without integrity verification or an opportunity for inspection. 6. The payload can access resources available to the invoking user and may download additional code, steal credentials, modify f ...[truncated 466 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the `curl | bash` and `irm | iex` installation patterns. 2. Direct users to an official package manager or a pinned release artifact from a documented release page. 3. Download the installer or binary to disk without executing it automatically. 4. Pin an exact CLI version rather than relying on a mutable installer URL. 5. Publish and verify a cryptographic signature and a fixed SHA-256 or stronger checksum before installation. 6. Allow the user to inspect the downloaded artifact before execution. 7. Require explicit user approval before installing software or executing any downloaded code. 8. Run installation with ordinary user privileges unless elevated privileges are demonstrably required. ]]>
