T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:14- Finding
Unverified Remote Installer Executed Directly by Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 14
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash curl -fsSL https://cli.inference.sh | sh && infsh loginTechnical Analysis
The installation instruction downloads a mutable shell script from an external URL and immediately passes it to
sh. The command does not pin an installer version, verify a cryptographic signature, compare the installer against a trusted checksum, or allow the user to inspect it before execution.The subsequent statement that the installer verifies the downloaded CLI binary does not address this vulnerability: the installer itself executes before any described binary verification occurs. A malicious installer could bypass or falsify its own checksum checks.
Although installing the CLI supports the Skill's declared use of
infsh, executing an unverified remote script is not necessary and exceeds a reasonable minimum-trust installation model. The repository does not contain the installer, so its effective behavior can change after this Skill has been audited.Attack Path
- A user follows the documented Quick Start command.
curlrequests the current response fromhttps://cli.inference.sh.- An attacker who compromises the hosting service, deployment credentials, domain, or another relevant delivery component substitutes malicious shell content.
- The response is streamed directly into
shwithout local validation. - The malicious commands execute with all privileges available to the user running the installation command.
- The payload may access user-readable data, modify files, install additional tooling, steal credentials available to the process, or establish persistence where the user has permission.
Impact Assessment
Successful exploitation provides arbitrary command execution as the invoking user. The accessible scope may inc ...[truncated 510 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pipeline. - Pin the CLI to an explicit, reviewed version and platform-specific artifact.
- Download the artifact to a local file without executing it.
- Verify it against a checksum distributed through an independently trusted or version-controlled channel. Prefer a cryptographic signature with a pinned public key.
- Abort installation on any verification failure.
- Install the verified artifact explicitly using normal user privileges; do not request administrator privileges unless strictly required.
- Document manual inspection and installation steps.
- If a shell installer remains available, download it separately, pin its immutable version, verify its signature, and only then execute it.
- Do not treat checksums retrieved from the same mutable, potentially compromised delivery origin as sufficient protection.
- Remove the
