T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:69- Finding
Unverified Remote Foundry Installer Executed Directly by Shell
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:69
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code Snippet:
markdown - Foundry installed: `curl -L https://foundry.paradigm.xyz | bash && foundryup`Technical Analysis
The installation command downloads mutable content from an external URL and passes it directly to Bash. The response is not pinned to a specific release and is not subjected to checksum validation, signature verification, inspection, or an integrity check before execution.
Installing Foundry is relevant to the Skill's stated purpose, but direct remote-to-shell execution exceeds the minimum privilege and trust necessary to install it. The effective code can change after the Skill has been reviewed. Compromise of the upstream service, its deployment pipeline, DNS resolution, TLS termination, or another delivery component could therefore turn this instruction into arbitrary code execution.
The subsequent
foundryupcommand also retrieves and installs executable tooling according to upstream state rather than a version and artifact whose integrity has been independently verified.Attack Path
- An attacker compromises the remote installer endpoint or an element of its delivery chain.
- The attacker modifies the installer response to include malicious shell commands.
- A user or agent follows the prerequisite and executes the documented command.
curlretrieves the attacker's current response.- Bash executes the response immediately without an opportunity for integrity validation or review.
- The payload accesses or modifies resources available to the invoking account, potentially including project files, shell configuration, credentials, and blockchain wallet keys.
- Because
foundryupis chained with&&, additional mutable executable components may be retrieved after the initial script succeeds.
...[truncated 652 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | bashpipeline. - Link users to official installation documentation rather than automatically executing remotely supplied code.
- Prefer a version-pinned binary or source archive from the official Foundry release repository.
- Download the selected artifact to a local file before execution.
- Verify its cryptographic checksum and, where available, its publisher signature against values obtained through a trusted channel.
- Require explicit user inspection or approval before running any installer.
- Pin the installed Foundry version instead of allowing
foundryupto select mutable upstream state. - Perform installation from an unprivileged account or isolated environment, and do not expose wallet keys or API credentials during installation.
- Document the expected installer hash, release version, and trusted source so users can reproduce the integrity check.
- Remove the direct
