T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:17- Finding
Remote Installer Is Downloaded and Executed Without Independent Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 17
Vulnerability Type: Remote payload retrieval and immediate shell execution
Risk Level: HighVulnerable Code
bash # Install CLI curl -fsSL https://cli.inference.sh | sh && infsh loginTechnical Analysis
The installation command streams content from
https://cli.inference.shdirectly intosh. The effective executable payload is therefore controlled by the remote endpoint and can change after this Skill has been reviewed.HTTPS protects the connection in transit but does not protect against compromise of the hosting server, deployment pipeline, DNS configuration, or publisher account. It also does not make the downloaded script immutable. If any of these components are compromised, the returned script can execute arbitrary commands under the account running the installation.
The document states that the installer downloads a platform-specific binary and verifies its SHA-256 checksum. However, this does not establish an independent trust boundary because the remotely supplied installer controls both the artifact selection and the verification process. A malicious installer could omit verification, substitute the expected digest, or execute another payload.
Immediate remote shell execution is not the minimum privilege or minimum-risk mechanism necessary to provide music generation. A version-pinned binary can instead be downloaded, independently verified, and installed without executing a mutable installer script.
Attack Path
- An attacker compromises or gains control of
cli.inference.sh, its deployment pipeline, DNS, or a relevant publisher account. - The attacker modifies the installer response to include arbitrary shell commands.
- A user or agent follows the documented Quick Start command.
curlretrieves the attacker-controlled response.- The pipe sends the response directly to
sh, which executes it wit ...[truncated 1010 chars]
- An attacker compromises or gains control of
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation command. - Pin the CLI to a specific released version rather than retrieving a mutable latest installer.
- Use a versioned, immutable artifact URL.
- Download the artifact to a local file without executing it.
- Publish the expected SHA-256 digest in reviewed, version-controlled Skill content or verify a cryptographically signed release through a separately trusted key.
- Compare the downloaded artifact against the independently obtained digest before installation.
- Install only the verified binary, using user-level directories and without elevated permissions.
- Display authentication as a separate command so installation failure or binary substitution cannot be conflated with login.
- Prefer a trusted package manager that supports exact version and integrity pinning where available.
A safer documented flow should follow this pattern:
bash curl -fL -o infsh <versioned-artifact-url> printf '%s %s\n' '<reviewed-sha256>' 'infsh' | sha256sum --check - install -m 0755 infsh "$HOME/.local/bin/infsh" infsh loginThe versioned URL and expected digest must be replaced with values independently verified and maintained in the reviewed Skill.
- Remove the
