T03 · Remote Payload Retrieval and Execution
- Location
docs/runbook.md:8- Finding
Unverified Remote Installer Is Downloaded and Executed Directly
- Content
View full analysis
Vulnerability Details
File Location:
docs/runbook.md:8-11
Vulnerability Type: Remote payload retrieval and immediate shell execution
Risk Level: CriticalVulnerable Code
bash 2. Install/upgrade Mobayilo CLI: ```bash curl -fsSL https://mobycli.mobayilo.com/install.sh | sh moby self-update ```Technical Analysis
The runbook instructs operators or agents to retrieve mutable content from an external URL and pipe it directly into
sh. The downloaded script is not pinned to a version, inspected, validated against a cryptographic checksum, or authenticated using a trusted signing key.TLS protects the connection in transit but does not protect against compromise of the distribution server, domain, DNS configuration, hosting account, or future malicious modification of the installer. The payload that executes can therefore differ from the content originally reviewed during this audit.
Although the remote installer is not automatically invoked by the Python implementation, installation instructions are part of the operational behavior of the Skill and may be followed by an operator or an automated agent.
Attack Path
- An attacker compromises or obtains control over
mobycli.mobayilo.com, its hosting account, DNS, or the installer deployment pipeline. - The attacker replaces
install.shwith a malicious payload. - An operator or agent follows the documented installation command.
curldownloads the current attacker-controlled response.- The response is passed immediately to
shwithout verification or review. - The payload executes with all privileges available to the user running the installation command.
Impact Assessment
Successful exploitation permits arbitrary command execution as the installing user. The payload could read user-accessible files and credentials, alter the installed
mobyexecutable, access environment variables, install persist ...[truncated 358 chars]- An attacker compromises or obtains control over
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | shinstallation pattern. - Publish immutable, versioned release artifacts.
- Download the artifact separately and verify a pinned SHA-256 or stronger checksum before execution.
- Prefer cryptographic signatures verified against a documented, independently distributed public key.
- Display or inspect installation scripts before running them.
- Pin installation and update instructions to an explicit version instead of retrieving mutable latest content.
- Ensure
moby self-updatealso authenticates release metadata and artifacts using signatures or pinned hashes. - Run installation with the least-privileged account and document exactly which files the installer modifies.
A safer pattern would be:
bash curl -fL -o moby-v0.2.0.tar.gz https://example.invalid/releases/moby-v0.2.0.tar.gz echo "PINNED_SHA256 moby-v0.2.0.tar.gz" | sha256sum --check - tar -xzf moby-v0.2.0.tar.gz install -m 0755 moby ~/.local/bin/mobyThe placeholder URL and checksum must be replaced with an authenticated release location and the publisher's actual pinned digest.
- Remove the
