T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:61
- Finding
- Unverified Remote Installer Is Executed Directly by a Shell<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, lines 61–65 **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 pipe content downloaded from remote URLs directly into Bash or PowerShell. The downloaded scripts are mutable external resources whose effective contents cannot be established from the reviewed project. Neither command pins an installer version nor verifies a cryptographic signature or checksum before execution. Consequently, compromise of the hosting service, deployment infrastructure, domain account, or installer itself could cause arbitrary commands to execute. HTTPS protects transport integrity but does not protect against a compromised or malicious origin. Installing the required CLI is relevant to the skill's functionality, but immediately executing an unverified network response is not the minimum privilege or minimum-risk mechanism necessary to install it. ### Attack Path 1. An attacker compromises the installer host, its publishing pipeline, or the remote installer content. 2. The `oo` command is unavailable, causing the user or agent to consult the first-time setup instructions. 3. The documented `curl | bash` or `irm | iex` command downloads the attacker's current payload. 4. The shell executes the payload immediately, without an opportunity to inspect it or verify its provenance. 5. The payload performs arbitrary actions with the privileges of the shell process. If the installer requests elevation and the user approves it, the resulting scope may increase. ### Impact Assessment A malicious installer can execute arbitrary commands with the invoking user's privileges. This can permit access to files, environment variables, local application crede ...[truncated 355 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Replace direct shell pipelines with a version-pinned package or downloadable release artifact. - Download the installer to a local file and require inspection before execution. - Publish a SHA-256 or stronger checksum through an independently protected channel and verify it before running the artifact. - Prefer cryptographic signature verification using a documented, pinned publisher key. - Require explicit user approval before installing software or executing an installer. - Run installation with ordinary user privileges unless a specific operation demonstrably requires elevation. - Document the exact files, commands, network endpoints, and permission changes performed by the installer. - For managed environments, recommend a trusted package manager or administrator-provisioned installation instead of an arbitrary remote script. ]]>
