T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:16- Finding
Remote Installer Is Downloaded and Executed Without Prior Verification
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:16
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code:
bash curl -fsSL https://cli.inference.sh | sh && infsh loginTechnical Analysis
The command pipes a mutable HTTP response directly into a shell. The downloaded installer is neither saved for inspection nor authenticated against a checksum or signature known before execution. Although the document states that the installer verifies the CLI binary it subsequently downloads, that process does not independently authenticate the installer itself.
If the remote server, distribution infrastructure, DNS resolution, or applicable TLS trust chain is compromised, an attacker can replace the response with arbitrary shell commands. Those commands execute with all permissions held by the user following the guide. The
-fand-soptions also suppress some diagnostic output, reducing visibility into failures or unexpected server behavior.CLI installation and authentication are not necessary to provide the Skill's declared video-prompting guidance. Consequently, this execution flow exceeds the minimum privileges required for the core functionality.
Attack Path
- An attacker compromises or gains control over
cli.inference.shor infrastructure capable of changing its response. - The user copies and executes the documented Quick Start command.
curlretrieves the attacker-controlled response.- The pipe passes the response directly to
shwithout local inspection or independent verification. - The malicious response executes with the invoking user's privileges.
- The payload can access user-readable data, modify user-owned files, steal credentials, install persistence where permitted, or alter the subsequently invoked
infshexecutable. - The chained
infsh logincommand may expose an additional authentication opportunity if the install ...[truncated 669 chars]
- An attacker compromises or gains control over
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pattern from the Quick Start instructions. - Keep CLI installation and login optional and separate from the prompting guide.
- Direct users to a specific, immutable CLI release rather than a mutable installer endpoint.
- Publish the expected SHA-256 digest in a separately controlled, versioned repository or signed release manifest.
- Require users to download the artifact, verify its digest or cryptographic signature, and only then execute or install it.
- Pin the installer and binary versions so a previously reviewed instruction cannot silently retrieve a different payload.
- Document the exact files, directories, network endpoints, and permissions used by the installer.
- Explicitly warn users not to run installation commands with administrator or root privileges.
- If an installation script remains available, instruct users to save and inspect it before execution rather than piping it directly into a shell.
- Remove the
