T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:71- Finding
Unverified Remote Installer Is Piped Directly into Bash
- Content
View full analysis
=3.3.3) | `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` | ``` ### Technical Analysis The installation instruction downloads a mutable remote script and immediately executes it with Bash. The payload is not pinned to a version, inspected, signature-verified, or checked against a known cryptographic digest. HTTPS authenticates the connection under normal conditions, but it does not guarantee that the remote script remains identical to the version reviewed during this audit. Compromise of the hosting infrastructure, CDN, DNS resolution, certificate trust path, or publisher account could change the effective code executed by the Skill. This behavior is unnecessary for the media-processing functionality itself. Installation should use a versioned and independently verified artifact rather than direct execution of network output. ### Attack Path 1. An attacker compromises the installer host, CDN, publishing process, DNS resolution, or another component in the delivery path. 2. The attacker replaces `setup.sh` with a malicious payload. 3. A user or agent follows the documented prerequisite command. 4. `curl` streams the attacker-controlled content directly to Bash. 5. The payload executes with all privileges available to the user running the command. ### Impact Assessment A malicious installer could execute arbitrary commands, read files accessible to the current user, steal Alibaba Cloud credentials, modify shell configuration, install persistence, alter local tools, or download additional payloads. If the command is run by a privileged user, the impact could extend to complete host compromise. ]]>- Remediation
View remediation
' aliyun-cli-installer.sh | sha256sum -c - bash aliyun-cli-installer.sh ``` The placeholder URL and digest must be replaced with official, independently verifiable values. ]]>
