T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:17- Finding
Unverified Remote Installer Is Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 17–18
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code
bash curl -L https://foundry.paradigm.xyz | bash foundryupTechnical Analysis
The setup instructions stream a mutable response from an external URL directly into Bash. The remote script is executed without being saved for review, pinned to a specific version, or validated using a cryptographic signature or checksum. The
-Loption also follows redirects, expanding the set of infrastructure that must remain trustworthy.The subsequent
foundryupcommand installs or updates executable Foundry components and may retrieve additional mutable artifacts. Installingcastsupports the Skill's declared Ethereum read-only functionality, but immediate execution of an unverified remote script exceeds the minimum security exposure necessary to install that tool.This instruction is not proof that the current upstream installer is malicious. Nevertheless, it establishes a remote code-execution channel whose effective payload can change after the Skill has been reviewed.
Attack Path
- An attacker compromises the distribution domain, redirect destination, hosting infrastructure, or release pipeline.
- The attacker causes the URL to return a modified shell script.
- A user follows the documented setup command.
curlretrieves the attacker-controlled content and passes it directly to Bash.- Bash executes the payload immediately with the privileges of the invoking user.
- The payload can modify user files, access user-readable credentials, install altered executables, or establish additional compromise.
Impact Assessment
Successful exploitation permits arbitrary command execution under the invoking user's account. This can expose RPC credentials and other user-readable secrets, alter shell configuration, replace development tools, modify project files, and compromise fu ...[truncated 215 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin installation to a specific Foundry release rather than using an automatically changing installer or updater.
- Download the release artifact without executing it immediately.
- Verify its publisher-provided cryptographic signature or checksum over a trusted channel.
- Abort installation if verification fails.
- Inspect or explicitly approve the downloaded installer before execution.
- Avoid
curl | bashand document that installation must run as an unprivileged user. - Record the expected version and integrity value in the Skill documentation.
- If package-manager installation is available from a trusted repository, prefer a version-pinned package with repository signature validation.
