T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:30- Finding
Unverified Remote Installation Script Is Piped Directly into Bash
- Content
View full analysis
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 installation command streams a mutable remote resource directly into Bash. The downloaded content is neither displayed for inspection nor validated using a pinned checksum or cryptographic signature before execution. Although the URL appears to be associated with Alibaba Cloud, the command creates a remote code execution channel whose effective payload can change after the Skill has been reviewed. Compromise of the hosting infrastructure, CDN, publishing pipeline, DNS/TLS trust chain, or upstream script could cause arbitrary shell commands to run with the invoking user's privileges. This behavior is not necessary for the declared ICP filing query. The Skill uses the Python Common SDK because the required CLI operation is unavailable, so immediate installation of the CLI through a remote shell script exceeds the minimum execution surface needed by the core workflow. ### Attack Path 1. An attacker compromises or gains control over the remote installation script or its delivery infrastructure. 2. The attacker modifies `setup.sh` to include arbitrary commands. 3. A user or agent follows the Skill's installation pre-check. 4. `curl` retrieves the altered content and sends it directly to Bash. 5. Bash executes the payload without integrity verification or an intervening review step. 6. The payload operates with the privileges and accessible credentials of the invoking process. ### Impact Assessment Successful exploitation permits arbitrary code execution as the current user. Depending on t ...[truncated 463 chars]- Remediation
View remediation
