T03 · Remote Payload Retrieval and Execution
- Location
skill.md:26- Finding
Unverified Remote Installer Is Piped Directly into a Shell
- Content
View full analysis
Vulnerability Details
File Location:
skill.md, line 26
Vulnerability Type: Remote payload retrieval and execution
Risk Level: HighVulnerable Code
bash curl -fsSL https://raw.githubusercontent.com/dawnlabsai/lws/main/lws/install.sh | bashTechnical Analysis
The installation command retrieves a shell script from the mutable
mainbranch of an external GitHub repository and immediately executes it withbash. It provides no opportunity to inspect the downloaded content and performs no release-version pinning, cryptographic checksum verification, or signature validation.Consequently, the payload executed by users can differ from the content reviewed during this audit. Compromise of the upstream repository, maintainer account, branch, or hosting path—or a malicious future upstream change—would turn this documented installation flow into an arbitrary-code-execution channel.
The documented installer operations include:
- Installing Rust through
rustupif necessary. - Cloning and compiling an external repository.
- Writing an executable to
~/.lws/bin/lws. - Editing shell configuration to add that directory to
PATH.
These operations introduce additional remote code and modify persistent user configuration. They exceed the minimum privileges needed merely to present or document the CLI's wallet operations. Although PATH modification is disclosed, the audited package contains only
skill.md, so the actual installer and CLI implementations could not be validated.This risk is especially consequential because the CLI is intended to receive wallet mnemonic phrases and sign messages. A substituted installer or executable could capture those secrets or falsify signing behavior.
Attack Path
- An attacker compromises the upstream
dawnlabsai/lwsrepository, a maintainer account, or another part of the remote delivery chain. - The attacker changes
lws/install.shon the mutablemainbranch to include malicious sh ...[truncated 1299 chars]
- Installing Rust through
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl ... | bashinstallation pattern. - Publish versioned release artifacts rather than installing from a mutable branch.
- Pin downloads to an immutable release or commit.
- Publish cryptographic checksums and signed provenance for release artifacts.
- Download the installer as a separate file, verify its checksum or signature, and allow inspection before execution.
- Avoid automatically installing toolchains or modifying shell startup files unless the user gives explicit, informed approval.
- Clearly enumerate every file and shell configuration entry the installer will create or modify.
- Build in a constrained environment and audit or lock Rust dependencies before distribution.
- For a wallet-signing utility, use reproducible builds where practical and document how users can verify that a distributed binary corresponds to reviewed source.
- Prefer secure secret input mechanisms that do not expose mnemonic phrases through command-line arguments, although the local implementation was unavailable to determine whether alternatives already exist.
- Remove the
