T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:60
- Finding
- Unverified Remote Installation Scripts Are Executed Directly by a Shell## Vulnerability Details **File Location**: `SKILL.md`, lines 60–64 **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 download mutable scripts from external URLs and pass their contents directly to `bash` or PowerShell's `Invoke-Expression`. No version pinning, cryptographic signature verification, checksum validation, or manual inspection occurs before execution. Although the scripts are hosted on an OOMOL domain and installation is only suggested when the `oo` command is unavailable, trusting the domain alone does not establish the integrity of the downloaded payload. Compromise of the hosting infrastructure, CDN, DNS resolution, TLS termination, publishing credentials, or installation endpoint could cause arbitrary attacker-controlled commands to execute. Installing the CLI may be necessary for the declared Unipile connector functionality, but executing mutable network content directly exceeds the minimum safe installation behavior. A verified, versioned artifact or trusted package-manager installation would provide the required functionality with substantially lower supply-chain risk. ### Attack Path 1. The `oo` CLI is absent, causing an Agent or user to follow the first-time setup instructions. 2. An attacker compromises or gains control over the installation endpoint or an associated delivery component. 3. The endpoint serves a modified shell or PowerShell script. 4. `curl | bash` or `irm | iex` executes the response immediately, without integrity validation or an opportunity for inspection. 5. The malicious script runs with the privileges of the invoking user and may modify the host, access available data, or install additional components. ### Impact Assessme ...[truncated 569 chars]
- Remediation
- ## Remediation Suggestions 1. Remove direct `curl | bash` and `irm | iex` execution from the instructions. 2. Distribute the CLI as a version-pinned package through a trusted platform package manager or as a versioned release artifact. 3. Download the artifact to disk before execution and verify a publisher-provided cryptographic signature or SHA-256 checksum obtained through an independently protected channel. 4. Pin the installer and resulting binary to an explicit version rather than retrieving mutable content from a generic installation URL. 5. Display the exact artifact, version, source, requested privileges, and expected changes, then obtain explicit user approval before installation. 6. Run installation with ordinary user privileges unless elevated access is demonstrably required. 7. Document how users can inspect the installer and verify its signature manually. 8. If an installation script remains necessary, use an authenticated release URL, fail closed on verification errors, and publish reproducible release provenance or equivalent supply-chain attestations.
