T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:34- Finding
Remote Aliyun CLI Installer Is Piped Directly into Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 34-37
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code
markdown **Pre-check: Aliyun CLI >= 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 update, > or see `references/cli-installation-guide.md` for installation instructions.Technical Analysis
The installation instruction downloads a remotely hosted shell script and immediately executes the response through Bash. The script is not pinned to an immutable version, inspected before execution, or authenticated using a published cryptographic signature or checksum.
Although the hostname appears related to Alibaba Cloud, the repository itself does not establish the integrity of the payload. The effective code can change after the Skill has been reviewed. Compromise of the hosting infrastructure, CDN, DNS resolution, TLS trust chain, or upstream release process could therefore turn a legitimate installation step into arbitrary local code execution.
This instruction also contradicts the runtime security statement in
SKILL.md, which says that the Skill does not download or execute external code and prohibits downloading and running scripts through tools such ascurl.Attack Path
- The Agent determines that the Aliyun CLI is missing or older than version 3.3.3.
- The Agent executes the documented
curl -fsSL ... | bashpipeline. - An attacker who has compromised the remote installer distribution path returns a modified shell script.
- Bash executes the response without prior inspection or integrity verification.
- The malicious script runs with the privileges of the Agent or user executing the Skill.
- The script can access files, environment variables, CLI configuration, and cloud credentials avail ...[truncated 561 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashinstruction entirely. - Keep software installation outside automated Skill execution whenever possible.
- Direct users to an independently verifiable official installation guide or operating-system package manager.
- Require a fixed, explicitly selected CLI version rather than a mutable latest-version installer.
- Download the artifact without executing it, then verify a vendor-published cryptographic signature or checksum obtained through an independent trusted channel.
- Only execute the verified artifact after presenting its source, version, checksum, and intended changes to the user.
- Correct the runtime security documentation so installation and execution rules are consistent.
- Remove the
