T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:60
- Finding
- Unverified Remote Installation Scripts Are Executed Directly## Vulnerability Details **File Location**: `SKILL.md`, lines 60–64 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High **Complete Code Snippet**: ```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 first-time setup instructions download mutable scripts from `cli.oomol.com` and execute them immediately through Bash or PowerShell. The commands do not pin a script version, verify a cryptographic signature or checksum, or provide an opportunity to inspect the downloaded content before execution. Consequently, the code ultimately executed is not contained in the audited project and may change after the Skill has been reviewed. Although installing the required CLI is related to the declared functionality, direct `curl | bash` and `irm | iex` execution is not the minimum-risk installation mechanism. This creates a supply-chain execution channel. Compromise of the hosting service, publication process, DNS/TLS trust chain, or installation script could turn the documented setup process into arbitrary code execution. ### Attack Path 1. The `oo` command is unavailable, causing the user or agent to follow the first-time setup instructions. 2. An attacker compromises the installation-script host or its deployment pipeline, or otherwise causes malicious script content to be served. 3. `curl` or `Invoke-RestMethod` retrieves the attacker-controlled content. 4. The shell pipe passes the content directly to Bash or `Invoke-Expression`. 5. The payload executes without integrity verification or prior inspection. 6. The payload can act with all privileges available to the user running the installation command. ### Impact Assessment Successful exploitation permits arbitrary command execution under the invoking account. This may allow access to user ...[truncated 326 chars]
- Remediation
- ## Remediation Suggestions 1. Replace direct piped execution with a version-pinned package-manager installation or a fixed release artifact from an authenticated official release repository. 2. Download the artifact to a local file before execution rather than piping network output directly into a shell. 3. Publish and verify a SHA-256 or stronger digest through a separately protected channel. 4. Prefer cryptographic release signatures and verify them against a pinned, documented publisher key. 5. Display the resolved version and source to the user and require explicit approval before installation. 6. Run installation without administrative privileges unless a specific installation step demonstrably requires elevation. 7. If scripts remain necessary, pin immutable versioned URLs and document a reviewable manual installation process.
