T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:48- Finding
Unverified Remote Installer Executed Directly by Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 48
Vulnerability Type: Remote payload retrieval and execution
Risk Level: Highbash bun --version || curl -fsSL https://bun.sh/install | bashTechnical Analysis
When Bun is unavailable, this command retrieves a mutable installation script from an external URL and passes it directly to
bash. The downloaded content is not pinned to a version and is not validated using a cryptographic checksum or signature. There is also no opportunity to inspect the script before execution.Although
bun.shis the expected domain for the Bun project, the command still creates a remote-code-execution channel. A compromise of the hosting infrastructure, domain, DNS or TLS trust chain—or a malicious future modification to the installer—could cause arbitrary commands to execute with the privileges of the user running the skill.Installing a general-purpose runtime through an immediately executed remote script exceeds the minimum privileges necessary to search for icons or generate icon assets.
Attack Path
- Bun is not installed or cannot be found through the current
PATH. - The left side of the
||expression fails, triggering thecurlrequest. - An attacker compromises or influences the remote installer response or its delivery path.
curlstreams the attacker-controlled response directly intobash.- The payload executes without integrity verification or prior review.
- The payload can read or modify any resource accessible to the invoking user and can make persistent changes to that user's environment.
Impact Assessment
Successful exploitation provides arbitrary command execution with the invoking user's privileges. Potential effects include theft of user-accessible files and credentials, modification of shell configuration, installation of additional software, tampering with project files, and establishment of user-level persiste ...[truncated 120 chars]
- Bun is not installed or cannot be found through the current
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashinstallation path and require Bun to be installed explicitly by the user. - Prefer an operating-system package manager or another trusted installation mechanism that supports package signing and version control.
- If direct downloading is unavoidable:
- Pin an exact Bun release and immutable artifact URL.
- Download the artifact or installer to a file rather than piping it into a shell.
- Verify a publisher-provided cryptographic signature or pinned SHA-256 checksum.
- Allow the user to inspect and explicitly approve the installer before execution.
- Run installation without elevated privileges and restrict filesystem and network access where practical.
- Document all expected filesystem and shell configuration changes.
- Do not perform runtime installation automatically as part of ordinary icon search or generation.
- Remove the
