T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:18- Finding
Unverified Remote Installer Is Piped Directly Into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 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, this command downloads a mutable script from
https://bun.sh/installand immediately executes it with Bash. The downloaded content is not pinned to a version, saved for inspection, or validated using a cryptographic signature or checksum.Although
bun.shis associated with the Bun project, piping a network response directly into a shell creates a remote code-execution channel. The executed payload can change after the Skill has been audited. Compromise of the domain, hosting infrastructure, upstream installer, or relevant TLS trust path could result in arbitrary commands being returned and executed.Installing a runtime through an unverified remote shell script is not required for the Skill's declared web-search functionality and exceeds the minimum safe setup behavior.
Attack Path
- A user or agent follows the setup instructions on a system where
bunis unavailable orbun --versionfails. - The shell evaluates the right side of the
||operator. curlretrieves the current response fromhttps://bun.sh/install.- The response is passed directly to Bash without integrity or authenticity verification.
- If the remote response has been maliciously altered, its commands execute with the privileges of the user running the setup.
- The payload can access user-readable data, modify user-owned files and configuration, install additional software, or establish persistence where the user's permissions allow it.
Impact Assessment
Successful exploitation provides arbitrary command execution under the invoking user's account. The accessible scope includes the user's files, environment variables, credentials readable by that account, shell configurati ...[truncated 209 chars]
- A user or agent follows the setup instructions on a system where
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashinstallation path. - Direct users to an approved operating-system package manager or official, independently verifiable installation mechanism.
- If direct artifact installation is unavoidable:
- Pin a specific Bun release.
- Download the artifact to a local file without executing it.
- Verify its published cryptographic signature or checksum through a separately trusted channel.
- Inspect or approve the installer before execution.
- Execute it as an unprivileged user.
- Do not install Bun automatically during normal Skill operation. Require explicit user approval for runtime installation.
- Document the files and environment settings that the installer is expected to modify.
- Remove the
