T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:16- Finding
Unpinned Remote Installation Script Executed Directly by Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:16
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash curl -fsSL https://cli.inference.sh | sh && infsh loginTechnical Analysis
The installation command downloads the current response from
https://cli.inference.shand pipes it directly intosh. The script is neither pinned to an immutable version nor downloaded for inspection and independent integrity verification before execution.Although the documentation states that the installer verifies the SHA-256 checksum of the downloaded CLI binary, that verification is performed by the remote installer itself. It does not authenticate the installer delivered through the pipeline. Consequently, the effective code executed by users can change after the Skill has been reviewed.
Installing the CLI is relevant to the declared inference-service workflow, but executing a mutable remote script directly is not the minimum-risk method necessary to provide that functionality.
Attack Path
- An attacker compromises the
cli.inference.shdomain, its hosting account, deployment pipeline, DNS configuration, TLS termination, or another component capable of changing the returned script. - The attacker replaces or modifies the installer response with malicious shell commands.
- A user follows the documented Quick Start command.
curlretrieves the attacker-controlled response and sends it directly tosh.- The malicious commands execute immediately with the permissions of the user running the command.
- The payload may read or modify accessible files, collect credentials, install additional components, or alter the user environment.
Impact Assessment
Successful exploitation provides arbitrary command execution under the invoking user's account. The accessible scope includes files, environment variables, credentials, authentication t ...[truncated 437 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | shinstallation pipeline. - Pin installation instructions to a specific, immutable CLI release.
- Download the release artifact without executing it:
bash curl -fL -o infsh https://dist.inference.sh/path/to/pinned-release - Publish the expected SHA-256 digest through a separately authenticated channel and require users to verify it locally:
bash echo 'EXPECTED_SHA256 infsh' | sha256sum --check - - Prefer signed release artifacts and verify signatures against a documented, pinned public key.
- Only after successful verification, set the executable bit and move the binary to a user-controlled installation directory.
- Avoid requiring administrator privileges; document a per-user installation location.
- If an installer remains available, instruct users to download and inspect it before execution rather than piping it directly into a shell.
- Remove the direct
