T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:19- Finding
Unverified Remote Installer Executed Directly Through Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 19
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash curl -sSfL https://get.tur.so/install.sh | bashTechnical Analysis
The Linux/WSL installation instructions retrieve a mutable script from an external URL and pass it directly to Bash. The command does not pin a release, verify a cryptographic signature or checksum, save the script for inspection, or otherwise establish that the downloaded content matches a reviewed payload.
Although HTTPS provides transport protection, it does not protect against compromise of the distribution server, domain, redirect destination, or trusted certificate infrastructure. The
-Loption also follows redirects, allowing the final payload to be obtained from a different endpoint. Because the script is executed immediately, any attacker-controlled response can run arbitrary shell commands with the privileges of the user following the instructions.Installing the Turso CLI is consistent with the Skill's declared functionality, but direct execution of mutable network content exceeds the minimum mechanism necessary. A version-pinned and integrity-verified package or release artifact can provide the required CLI without this execution pattern.
Attack Path
- An attacker compromises or gains control over the installer endpoint, its hosting infrastructure, a redirect destination, or another relevant component of the delivery chain.
- The attacker modifies the HTTP response so that it contains malicious shell commands.
- A user or Agent follows the Linux/WSL setup instructions in
SKILL.md. curldownloads the current response and follows any redirects.- The pipeline sends the response directly to Bash without integrity validation or prior inspection.
- The attacker's commands execute with the invoking user's privileges.
Impact Assessment
...[truncated 764 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the
curl | bashpipeline with an official, version-pinned package or release artifact. - Publish and verify a cryptographic signature from a trusted maintainer key. If signatures are unavailable, verify a SHA-256 checksum obtained through an independently trusted channel.
- Do not silently follow redirects during security-sensitive installation unless every allowed destination is explicitly documented and trusted.
- Download the artifact to a local file first, validate its expected type and integrity, and only then install it.
- If a shell script is unavoidable, require users to download and inspect it separately before execution rather than piping it directly into a shell.
- Run installation with ordinary user privileges and avoid
sudounless a specific installation step demonstrably requires it. - Document the exact release version, expected checksum or signing identity, download host, files created, and permissions required.
- Replace the
