T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:18- Finding
Unverified Remote Installer Is Executed Directly Through Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:18
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighComplete Code Snippet:
bash bun --version || curl -fsSL https://bun.sh/install | bashTechnical Analysis
When Bun is unavailable, the command retrieves a mutable installation script from
https://bun.sh/installand pipes it directly into Bash. The downloaded content is not pinned to a version, saved for inspection, or validated with a cryptographic checksum or signature.The domain is associated with the Bun project, but transport security alone does not establish that the returned script is the exact artifact reviewed by the Skill author. Compromise of the upstream website, CDN, release process, DNS path, or TLS endpoint could change the effective payload after this Skill has been reviewed.
Executing an installer is relevant to establishing the documented CLI environment, but immediate
curl | bashexecution is not the minimum privilege or minimum-risk mechanism required. Bun could instead be declared as a prerequisite or installed from a pinned and independently verified artifact.Attack Path
- A user or agent follows the setup instructions on a system where
bunis unavailable or not inPATH. - The
bun --versioncommand fails, causing the shell to execute the right-hand side of||. curldownloads the current response fromhttps://bun.sh/install.- The response is passed directly to Bash without integrity or authenticity verification beyond HTTPS.
- If the upstream response has been compromised, attacker-controlled shell commands execute immediately.
- Those commands can modify files, install additional payloads, alter shell configuration, or access data available to the invoking account.
Impact Assessment
The remote script executes with all privileges of the user running the setup command. In a typical non-root environment, thi ...[truncated 497 chars]
- A user or agent follows the setup instructions on a system where
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | bashpipeline and document Bun as an explicit prerequisite where practical. - Prefer the operating system's trusted package manager or another controlled installation mechanism.
- If direct artifact installation is necessary:
- Pin an exact Bun release version.
- Download the installer or release artifact to a local file.
- Verify a publisher signature or a SHA-256 checksum obtained through an independently trusted channel.
- Inspect or constrain the downloaded installer before execution.
- Run it as an unprivileged user and document all files and configuration it modifies.
- Fail closed when verification cannot be completed.
- Avoid recommending elevated execution such as
sudounless a separately justified operation strictly requires it.
- Remove the direct
