T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:16- Finding
Unpinned Remote Installer Is Executed Directly by a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 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 streams a mutable response from
https://cli.inference.shdirectly intosh. The downloaded installer is neither saved for inspection nor pinned to a specific immutable version or digest before execution.The document states that the installer verifies the SHA-256 checksum of the CLI binary. However, that does not establish the integrity of the installer itself: the remote script must execute before it can perform the claimed binary verification. HTTPS protects the connection in transit but does not protect against compromise of the hosting service, deployment pipeline, domain, or publishing account.
This behavior is not necessary for the Skill's declared content-pipeline functionality. A manually downloaded, version-pinned, independently verified CLI binary would provide the required functionality with less supply-chain exposure. The behavior also grants the remote endpoint substantially broader authority than the declared
infshcommand usage requires.Attack Path
- An attacker compromises or gains control over the installer endpoint, its publishing pipeline, or an equivalent trusted delivery component.
- The attacker changes the response from
https://cli.inference.shto include arbitrary shell commands. - A user or automation agent follows the documented Quick Start command.
curlstreams the attacker-controlled response directly tosh.- The payload executes immediately with the privileges and environment of the invoking user.
- The payload can access resources available to that user before optionally installing the legitimate CLI to conceal the compromise.
Impact Assessment
Successful exploitation ...[truncated 651 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pattern. - Link to a specific, immutable CLI release rather than a mutable installer endpoint.
- Require users to download the release artifact without executing it:
bash curl -fL -o infsh https://example.invalid/releases/<fixed-version>/infsh-<platform> - Publish the expected SHA-256 digest through an independently protected release channel and require verification before installation:
bash echo '<expected-sha256> infsh' | sha256sum -c - - Document manual installation into a user-owned directory without
sudo. - Where supported, provide signed release artifacts and document signature verification.
- Separate installation from authentication so that users can inspect and verify the installed binary before running
infsh login. - Advise users to perform installation in a restricted, non-administrative environment.
- Remove the
