T03 · Remote Payload Retrieval and Execution
- Location
references/troubleshooting.md:5- Finding
Unverified Remote Installer Is Piped Directly into a Shell
- Content
View full analysis
Vulnerability Details
File Location:
references/troubleshooting.md:5
Vulnerability Type: Remote payload retrieval and immediate execution
Risk Level: HighVulnerable Code:
bash curl -LsSf https://astral.sh/uv/install.sh | shTechnical Analysis
The troubleshooting guide instructs the user or agent to retrieve a mutable script from an external URL and pipe the response directly into
sh. The downloaded content is executed without being saved for inspection, pinned to a reviewed version, or validated using a checksum or cryptographic signature.HTTPS protects the connection in transit but does not ensure that the current server response is the same content that was reviewed when the Skill was published. A compromise of the hosting service, its deployment pipeline, domain, or TLS trust chain could turn this installation command into arbitrary code execution.
Installing
uvmay support the Skill's workflow, but executing an unverified remote response is not the minimum privilege necessary to install that dependency.Attack Path
- The agent attempts to use
uvxand discovers that it is unavailable. - The agent follows the troubleshooting guide and runs the documented command.
curlretrieves the current content from the external endpoint.- The response is passed directly to
shwithout integrity verification or review. - If the endpoint or delivery chain is compromised, attacker-controlled shell commands execute under the invoking user's identity.
Impact Assessment
A malicious installer would execute with all privileges available to the invoking user. It could read or modify accessible workspace files, source code, shell configuration, credentials, and user-level application data. It could also install additional software or establish persistence where the user's permissions allow it.
The command does not explicitly invoke
sudo, so administrative privileges are no ...[truncated 122 chars]- The agent attempts to use
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | shpipeline. - Prefer an official operating-system package manager or other trusted installation channel.
- If a standalone installer is necessary:
- Pin the installer or release to a reviewed version.
- Download it to a local file rather than piping it into a shell.
- Verify a publisher-provided cryptographic signature or checksum obtained through an independent trusted channel.
- Inspect the downloaded script before execution.
- Execute it without elevated privileges unless elevation is demonstrably required.
- Make installation an explicit user-approved step rather than allowing an agent to install tooling automatically.
- Retain the documented
pipfallback only after applying the dependency-pinning and verification controls described in the separate dependency finding.
- Remove the direct
