T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:29- Finding
Unverified Remote Installation Script Is Executed Directly by Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:29-32
Vulnerability Type: Remote payload retrieval and execution
Risk Level: Criticalbash > 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 Skill pipes an HTTP response directly into Bash. The downloaded content is not saved for review, pinned to an immutable version, or verified using a cryptographic signature or checksum before execution.
HTTPS protects the connection in transit but does not establish that the mutable script remains safe after the Skill has been reviewed. A compromise of the origin, CDN, DNS resolution, TLS trust chain, or vendor publishing account could replace the installer with arbitrary shell commands.
This execution mechanism is unnecessary for the Skill's declared read-only usage-query functionality. Installation should be a separate, user-controlled prerequisite using a verifiable distribution mechanism.
Attack Path
- The user invokes the Skill on a system where Aliyun CLI is absent or below the required version.
- The Skill follows the documented update instruction.
- Bash receives the current response from
https://aliyuncli.alicdn.com/setup.sh. - A compromised upstream service or publishing process returns attacker-controlled shell commands.
- Bash executes those commands immediately without inspection or integrity verification.
- The payload accesses or modifies any resources available to the invoking user.
Impact Assessment
A malicious response would obtain arbitrary code execution with the privileges of the user running the command. This could permit access to local files, Aliyun configuration and credentials, environment variables, cloud API tokens, network-accessible services, and other ...[truncated 295 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashinstruction entirely. - Prefer an operating-system package manager or another trusted installation mechanism.
- If direct download is unavoidable:
- Pin an explicit CLI version rather than using a mutable latest-version endpoint.
- Download the artifact to a local file without executing it.
- Obtain the expected checksum or signature through an independently authenticated vendor channel.
- Verify the checksum and cryptographic signature before installation.
- Present the source, version, and verification result to the user.
- Require explicit user approval before execution or installation.
- Perform installation outside the authenticated Skill workflow.
- Execute installation with the least-privileged account possible and never request administrative privileges unless strictly required.
- Remove the
