T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:46- Finding
Unverified Remote Installer Executed Directly by Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 46
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code:
bash curl -fsSL https://docs.openwallet.sh/install.sh | bash # one-time OWS installTechnical Analysis
The instruction downloads a mutable script from an external server and immediately passes its contents to Bash. There is no version pinning, cryptographic signature verification, checksum validation, or opportunity to inspect the downloaded artifact before execution.
TLS protects the connection in transit but does not protect against compromise of the hosting server, publication account, DNS infrastructure, or upstream release process. Because the effective payload is controlled remotely, it can change after this Skill has been reviewed.
OWS is described as an optional key store. Executing an unrestricted remote shell script is therefore not the minimum privilege necessary to configure the Skill or protect a wallet key.
Attack Path
- An attacker compromises
docs.openwallet.sh, its deployment credentials, DNS, or another part of its distribution infrastructure. - The attacker modifies
install.shto include credential theft, persistence, tool replacement, or other hostile commands. - A user follows the documented installation command.
curlretrieves the attacker-controlled response and sends it directly to Bash.- Bash executes the payload with all permissions available to the invoking user.
- The payload can inspect the environment or modify wallet-related tooling before the user imports or uses a real-money wallet.
Impact Assessment
The remote payload receives arbitrary code execution under the invoking user's account. Subject to that account's permissions, it could:
- Read accessible files and environment variables, including
SIMMER_API_KEYor a currently exportedWALLET_PRIVATE_KEY. - Modify shell ...[truncated 494 chars]
- An attacker compromises
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | bashpipeline. - Pin OWS to a reviewed, immutable release version.
- Download the installer or release artifact as a separate step.
- Publish and verify a SHA-256 checksum and, preferably, a signature tied to a documented publisher key.
- Present the downloaded artifact for inspection before execution.
- Use a trusted package manager where possible and require package signature verification.
- Execute installation as an unprivileged user in an isolated environment.
- Ensure wallet private keys and API keys are unset while installing software.
- Document the files, network access, and permissions required by the installer so users can enforce least privilege.
A safer workflow should follow this pattern:
bash curl -fL -o ows-installer.sh "https://trusted.example/immutable-release/ows-installer.sh" sha256sum --check ows-installer.sha256 less ows-installer.sh bash ows-installer.shThe release URL and expected checksum must be immutable and independently authenticated.
- Remove the direct
