T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:14
- Finding
- Remote Installer Downloaded and Executed Without Independent Verification<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:14` **Vulnerability Type**: `T03: Remote Payload Retrieval and Execution` **Risk Level**: Critical ### Vulnerable Code ```bash curl -fsSL https://cli.inference.sh | sh && infsh login ``` ### Technical Analysis The installation command retrieves a mutable script from an external URL and pipes it directly into `sh`. The downloaded content is executed immediately with the privileges of the invoking user, without allowing the user to inspect it or independently verify a pinned cryptographic digest. The document claims that the installer verifies the SHA-256 checksum of the binary it subsequently downloads. This does not establish the integrity of the installer itself. A compromised installer could omit or bypass verification, substitute its own checksum, download a different payload, or perform unrelated malicious operations before installing the expected CLI. Potential compromise points include the remote domain, hosting infrastructure, CDN, DNS resolution, TLS endpoint, deployment credentials, and upstream release process. Because the retrieved response is mutable, its effective behavior can change after this Skill has been reviewed. Installing an executable CLI is not necessary for the Skill's core press-release formatting functionality. Although external research may support fact-checking, it should be optional and should not require unreviewed remote code execution. ### Attack Path 1. An attacker compromises the remote installation endpoint or its deployment, DNS, CDN, or release infrastructure. 2. The attacker modifies the response from `https://cli.inference.sh` to contain malicious shell commands. 3. A user follows the documented Quick Start command. 4. `curl` downloads the attacker's current payload and streams it directly to `sh`. 5. The shell executes the payload with the user's privileges and without prior inspection. 6. The payload can access user-readable data, modify user-writa ...[truncated 1045 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the `curl | sh` installation pattern. 2. Direct users to a version-pinned release artifact from the documented official distribution source. 3. Publish the expected SHA-256 digest through a separate trusted and authenticated channel. 4. Require the artifact to be downloaded first and verified before any execution or installation occurs. 5. Provide a manual installation procedure that clearly identifies the destination path and required permissions. 6. Avoid requiring administrative privileges and install only within an appropriate user-controlled directory. 7. Separate installation from authentication so users can inspect and verify the installed binary before running `infsh login`. 8. Prefer an already approved research integration when available; the press-release writing functionality should remain usable without installing external software. 9. Document what information the CLI transmits during login and research operations so users can make an informed decision before using it. ]]>
