T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:25- Finding
Unverified Remote Script Is Downloaded and Executed Directly
- Content
View full analysis
Verify version >= 3.3.3. If not installed or version is too low, > run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to update, > or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions. ``` ### Technical Analysis The installation instruction pipes content retrieved from an external URL directly into `bash`. The downloaded payload is not pinned to a version and is not validated using a cryptographic checksum or signature before execution. HTTPS protects the connection in transit, but it does not ensure that the remote script remains unchanged after the Skill has been reviewed. Compromise of the hosting infrastructure, CDN, DNS or TLS trust chain, or the publisher's release process could cause arbitrary attacker-controlled shell commands to be returned and executed. The Aliyun CLI is a legitimate prerequisite for the declared workflow, but remote-to-shell execution is not the minimum capability required to install it. The included installation guide already provides alternatives that separate downloading from execution. ### Attack Path 1. An attacker compromises the remote setup script, its hosting infrastructure, or another component in the delivery chain. 2. The user or Agent follows the Skill prerequisite and executes the documented `curl | bash` command. 3. `curl` retrieves the current mutable response without saving it for review or validating its integrity. 4. `bash` immediately executes the response under the privileges of the user running the Skill. 5. The payload can access files, credentials, network resources, and cloud configuration available to that user. ### Impact Assessment Successful exploitation permits arbitrary command execution with the privileges of the invokin ...[truncated 422 chars]- Remediation
View remediation
aliyun-cli.tgz" | sha256sum -c - tar -xzf aliyun-cli.tgz ``` The URL and checksum must come from an authenticated official release and must be pinned to the reviewed version. ]]>
