T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:68- Finding
Unverified Remote Installation Script Is Executed Directly by Bash
- Content
View full analysis
= 3.3.3 required** — Run `aliyun version`. If too low: `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` or see `references/installation-guide.md`. ``` ```bash # Install or update (macOS / Linux — one command) /bin/bash -c "$(curl -fsSL --connect-timeout 10 --max-time 120 https://aliyuncli.alicdn.com/setup.sh)" ``` From `references/installation-guide.md`: ```bash /bin/bash -c "$(curl -fsSL --connect-timeout 10 --max-time 120 https://aliyuncli.alicdn.com/setup.sh)" ``` ### Technical Analysis The installation instructions retrieve shell code from an external URL and execute it immediately. The script is neither pinned to a specific version nor validated with a cryptographic signature or checksum before execution. HTTPS helps protect transport integrity but does not protect against compromise of the vendor origin, CDN, DNS infrastructure, release pipeline, or signing account. It also does not ensure that the script reviewed today is the same payload that will be executed later. Consequently, the effective executable behavior can change independently of the audited Skill package. The behavior is relevant to initial CLI installation, but direct `curl | bash` execution is not the minimum-risk method required to install the CLI. A staged, version-pinned, cryptographically verified installation would provide the same functionality with substantially less supply-chain exposure. ### Attack Path 1. An attacker compromises the distribution origin, CDN, DNS path, or upstream release pipeline serving `setup.sh`. 2. The attacker modifies the remotely hosted script to include arbitrary shell commands. 3. A user or agent follows the Skill's required version pre-check or reco ...[truncated 1063 chars]- Remediation
View remediation
