T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:57
- Finding
- Unverified Remote Shell Installer Execution<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md`, line 57 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High ### Vulnerable Code ```bash curl -fsSL https://cli.oomol.com/install.sh | bash # macOS / Linux ``` ### Technical Analysis The installation instruction downloads a mutable shell script from an external server and pipes it directly into Bash. The script is executed without version pinning, local inspection, checksum validation, or cryptographic signature verification. Although the URL uses HTTPS and appears to be associated with the advertised CLI vendor, transport encryption alone does not establish that the downloaded script is safe. A compromise of the vendor server, CDN, DNS infrastructure, TLS endpoint, or release pipeline could change the effective payload after this Skill has been reviewed. Installing the CLI may be necessary when it is unavailable, but immediately executing unverified remote content exceeds the minimum privilege necessary for installation. A safer process would separate download, verification, and execution. ### Attack Path 1. The `oo` command is unavailable on the macOS or Linux host. 2. The agent follows the first-time setup instructions in `SKILL.md`. 3. `curl` retrieves the current contents of `https://cli.oomol.com/install.sh`. 4. The response is passed directly to Bash without integrity verification. 5. If the remote endpoint or delivery chain is compromised, attacker-controlled shell commands execute with the privileges of the user running the agent. 6. Those commands could access files and credentials available to that user, alter user-level configuration, install additional software, or establish persistence where permitted. ### Impact Assessment Successful exploitation provides arbitrary command execution under the current user's security context. The accessible scope includes the user's files, environment variables, locally available credentials, network access ...[truncated 271 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions - Remove the `curl | bash` installation pattern. - Pin the CLI to a specific, reviewed release rather than retrieving a mutable installer. - Download the installer or package to a local file without executing it. - Verify a vendor-published cryptographic signature and a checksum obtained through an independently protected channel. - Prefer an operating-system package manager or signed package format where available. - Display the resolved version, source, and requested privileges before installation. - Execute the verified artifact as a separate step under an unprivileged account. - Require explicit user approval before installing software or requesting privilege elevation. ]]>
