T03 · Remote Payload Retrieval and Execution
- Location
scripts/install-engine.sh:94- Finding
Unverified Remote Shell Installer Is Downloaded and Executed
- Content
View full analysis
/dev/null | tr -d '[:space:]') rtk_version="${rtk_version:-$RTK_MIN_VERSION}" local installer_url="https://raw.githubusercontent.com/rtk-ai/rtk/refs/tags/v${rtk_version}/install.sh" warn "Engine is not available via Homebrew on this system." warn "The installer will download and run a shell script from:" warn " $installer_url" warn "" warn "If you prefer, you can install manually instead:" warn " cargo install rtk@$rtk_version" warn " # or download from: https://github.com/rtk-ai/rtk/releases/tag/v${rtk_version}" warn "" log "Installing Engine v$rtk_version via official installer..." local tmp_installer tmp_installer=$(mktemp "${TMPDIR:-/tmp}/rtk-install-XXXXXX.sh") if command -v curl &>/dev/null; then curl -fsSL "$installer_url" -o "$tmp_installer" elif command -v wget &>/dev/null; then wget -qO "$tmp_installer" "$installer_url" else err "Neither curl nor wget found. Cannot download ClawTK Engine." rm -f "$tmp_installer" exit 1 fi # Show what will be executed so the user/reviewer can inspect log "Installer downloaded to $tmp_installer ($(wc -c < "$tmp_installer" | tr -d ' ') bytes)" sh "$tmp_installer" rm -f "$tmp_installer" ``` The troubleshooting guide additionally recommends direct execution from a mutable branch: ```markdown If not found: - Homebrew users: `brew install rtk` - Others: `curl -fsSL https://raw.githubusercontent.com/rtk-ai/rtk/refs/heads/master/install.sh | sh` Then add `~/.local/bin` to your PATH if needed. ``` ### Technical Analysis The installer downloads a shell pr ...[truncated 2139 chars]- Remediation
View remediation
