T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:18- Finding
Unpinned Remote Installation Script Is Executed Directly by a Shell
- Content
View full analysis
= 3.3.3 required > Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, > run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to install/update, > or see `references/cli-installation-guide.md` for installation instructions. ``` ### Technical Analysis The command pipes a mutable response from an external URL directly into `bash`. The retrieved script is not pinned to a reviewed version and is not validated using a cryptographic checksum or publisher signature. It is also not saved for inspection before execution. HTTPS protects data in transit under normal circumstances, but it does not protect against compromise of the upstream publishing system, CDN, domain, signing infrastructure, or authorized publisher account. The effective code executed by the Skill can therefore change after the Skill package has been reviewed. This behavior is not required for the declared Kafka capacity-assessment functionality. The assessment itself only needs an already installed CLI capable of making two read-only API calls. ### Attack Path 1. An attacker compromises the installation-script publishing account, CDN origin, DNS path, or upstream release process. 2. The attacker replaces `setup.sh` with a malicious or backdoored script. 3. The Skill determines that Aliyun CLI is absent or outdated. 4. The installation command downloads the attacker's current payload. 5. `bash` executes the payload immediately with all privileges available to the Agent or user. 6. The payload can inspect local files and environment variables, steal cloud credentials, replace executables, alter shell configuration, or establish additional persistence. ### Impact Assessment The remote script receives arbitrary code execution under the a ...[truncated 543 chars]- Remediation
View remediation
