T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:16- Finding
Unverified Remote Installer Executed Directly Through a Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 16
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash curl -fsSL https://cli.inference.sh | sh && infsh loginTechnical Analysis
The Quick Start command streams the current response from
https://cli.inference.shdirectly intosh. The user cannot inspect or authenticate the installer before execution, and the effective payload can change after this Skill has been reviewed.HTTPS protects the connection in transit but does not guarantee that future content served by the domain is trustworthy. A compromise of the domain, DNS, TLS endpoint, web server, deployment pipeline, or hosting account could therefore turn the documented installation command into arbitrary code execution.
The installation note claims that the script only detects the operating system and architecture, downloads a binary, and verifies its SHA-256 checksum. However, the Skill does not independently constrain or verify the installer script before it runs. Binary checksum verification performed by an already executing remote script does not establish the integrity of that script. Installation is relevant to the declared image-generation functionality, but executing a mutable and unreviewed shell program exceeds the minimum safe trust required to install the CLI.
Attack Path
- An attacker compromises or gains control over the content returned by
cli.inference.sh, or otherwise compromises its delivery infrastructure. - The attacker modifies the installer response to include arbitrary shell commands while optionally preserving expected installation behavior.
- A user or agent follows the Quick Start instruction in
SKILL.md. curlstreams the attacker-controlled response directly intosh.- The malicious commands execute immediately with the invoking user's permissions, before the user can inspect the payloa ...[truncated 680 chars]
- An attacker compromises or gains control over the content returned by
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pipeline. - Pin the CLI to a specific reviewed version rather than installing an implicitly mutable latest release.
- Download the platform-specific artifact to a local file without executing it.
- Verify the artifact against a checksum embedded in the reviewed Skill or, preferably, a release signature validated against a pinned trusted public key.
- Do not rely solely on checksums fetched from the same mutable delivery infrastructure as the artifact.
- Execute or install the artifact only after verification succeeds, and document the intended destination and required permissions.
- Provide manual, inspectable installation commands as the default procedure.
- Keep authentication (
infsh login) separate from installation so that credentials are not created immediately after untrusted installation logic has run. - Avoid elevated privileges and ensure the CLI is installed only within a user-controlled directory unless system-wide installation is explicitly necessary.
- Remove the
