T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:14
- Finding
- Unverified Remote Installer Executed Directly by Shell## Vulnerability Details **File Location**: `SKILL.md`, line 14 **Vulnerability Type**: Remote payload retrieval and execution **Risk Level**: High **Vulnerable Code**: ```bash curl -fsSL https://cli.inference.sh | sh && infsh login ``` ### Technical Analysis The installation instruction downloads a mutable shell script from an external URL and immediately passes it to `sh`. The command does not pin an installer version, verify a cryptographic signature, compare the installer against a trusted checksum, or allow the user to inspect it before execution. The subsequent statement that the installer verifies the downloaded CLI binary does not address this vulnerability: the installer itself executes before any described binary verification occurs. A malicious installer could bypass or falsify its own checksum checks. Although installing the CLI supports the Skill's declared use of `infsh`, executing an unverified remote script is not necessary and exceeds a reasonable minimum-trust installation model. The repository does not contain the installer, so its effective behavior can change after this Skill has been audited. ### Attack Path 1. A user follows the documented Quick Start command. 2. `curl` requests the current response from `https://cli.inference.sh`. 3. An attacker who compromises the hosting service, deployment credentials, domain, or another relevant delivery component substitutes malicious shell content. 4. The response is streamed directly into `sh` without local validation. 5. The malicious commands execute with all privileges available to the user running the installation command. 6. The payload may access user-readable data, modify files, install additional tooling, steal credentials available to the process, or establish persistence where the user has permission. ### Impact Assessment Successful exploitation provides arbitrary command execution as the invoking user. The accessible scope may inc ...[truncated 510 chars]
- Remediation
- ## Remediation Suggestions 1. Remove the `curl | sh` installation pipeline. 2. Pin the CLI to an explicit, reviewed version and platform-specific artifact. 3. Download the artifact to a local file without executing it. 4. Verify it against a checksum distributed through an independently trusted or version-controlled channel. Prefer a cryptographic signature with a pinned public key. 5. Abort installation on any verification failure. 6. Install the verified artifact explicitly using normal user privileges; do not request administrator privileges unless strictly required. 7. Document manual inspection and installation steps. 8. If a shell installer remains available, download it separately, pin its immutable version, verify its signature, and only then execute it. 9. Do not treat checksums retrieved from the same mutable, potentially compromised delivery origin as sufficient protection.
