T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:15- Finding
Unverified Remote Installer Executed Directly by the Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:15-17
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash # Install CLI curl -fsSL https://cli.inference.sh | sh && infsh loginTechnical Analysis
The installation command downloads a script from
https://cli.inference.shand passes the response directly tosh. The downloaded content is neither displayed for review nor verified against a locally pinned cryptographic digest before execution.Although the document claims that the installer verifies the downloaded binary's SHA-256 checksum and does not use elevated permissions, the installer itself is remote and is not included in the audited project. Its behavior and checksum-validation implementation therefore cannot be independently verified from the repository. The linked checksum list also does not authenticate the installer before it starts executing.
HTTPS protects the network connection under normal circumstances, but it does not make the payload immutable. Compromise of the hosting service, DNS infrastructure, TLS credentials, deployment pipeline, or service account could cause future invocations of the same command to execute different content.
This behavior exceeds the minimum privilege necessary for installing the declared CLI. The project could instead direct users to download a version-pinned binary, verify it locally, and execute it only after successful verification.
Attack Path
- An attacker compromises
cli.inference.sh, its deployment pipeline, hosting account, DNS configuration, or another trusted distribution component. - The attacker replaces or modifies the installation response with a malicious shell script.
- A user or agent follows the documented Quick Start command.
curlretrieves the attacker-controlled response.- The pipe forwards the response directly to
shwithout prior local verification. ...[truncated 751 chars]
- An attacker compromises
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pattern. - Provide version-pinned release URLs rather than a mutable installer endpoint.
- Require users to download the artifact and its checksum or signature as separate steps.
- Verify the artifact locally before any execution, and abort installation if verification fails.
- Prefer asymmetric signature verification with a pinned public key; if SHA-256 is used, publish hashes through an independently protected release channel.
- Include the installer source in a reviewable repository and pin documentation to a specific reviewed revision.
- Install into a user-owned directory without
sudo, elevated permissions, background services, or changes outside the documented installation scope. - Document how users can inspect the downloaded artifact before running it.
- Remove the
