T03 · Remote Payload Retrieval and Execution
Error
- Location
- SKILL.md:70
- Finding
- Unverified Remote Installer Is Piped Directly into Bash<![CDATA[ ## Vulnerability Details **File Location**: `SKILL.md:70-73` **Vulnerability Type**: Unverified remote payload retrieval and execution **Risk Level**: Critical ### Vulnerable Code ```bash 1. **Foundry** must be installed (`cast` CLI): ```bash curl -L https://foundry.paradigm.xyz | bash && foundryup ``` ``` ### Technical Analysis The installation instructions pipe a mutable HTTP response directly into Bash. Although HTTPS protects the connection against ordinary network interception, it does not ensure that the retrieved script is immutable, independently verified, or safe at the time it is executed. Compromise of the referenced domain, its hosting infrastructure, a redirect destination, or the remote installer itself would allow arbitrary shell commands to execute with the permissions of the user following the instructions. The subsequent `foundryup` command also retrieves and installs additional executable components. Installing Foundry is relevant to the Skill, but executing an unaudited remote response is not the minimum privilege or minimum-risk mechanism required to install it. ### Attack Path 1. An attacker compromises the remote installer, hosting infrastructure, redirect chain, or distribution account. 2. The installer response is modified to include arbitrary commands. 3. A user follows the documented prerequisite and runs the `curl | bash` command. 4. Bash executes the attacker's response immediately without checksum or signature verification. 5. The payload can inspect the Agent workspace, read wallet configuration, modify local tools, or install persistent malware. ### Impact Assessment The remote payload receives the privileges of the user running the installation command. It may consequently: - Read the plaintext Agent wallet key from `config.json`. - Steal wallet funds or exercise delegated borrowing authority. - Modify the Skill scripts or replace development tools. - Access other files and credentials available to ...[truncated 248 chars]
- Remediation
- <![CDATA[ ## Remediation Suggestions 1. Remove the `curl | bash` installation instruction. 2. Direct users to a version-pinned Foundry release from its documented official repository. 3. Download the release artifact without executing it. 4. Publish and verify a cryptographic checksum or signature before installation. 5. Avoid following mutable “latest release” references in security-sensitive environments. 6. Prefer a trusted package manager or reproducible installation process where available. 7. Document the exact expected version and verification procedure. 8. Run installation with an unprivileged account and without access to production wallet keys. ]]>
