T03 · Remote Payload Retrieval and Execution
- Location
references/cli-installation-guide.md:5- Finding
Unverified Remote Installation Script Is Executed Directly by Bash
- Content
View full analysis
Vulnerability Details
File Location:
references/cli-installation-guide.md:5-10
Additional Locations:references/cli-installation-guide.md:15-18;references/cli-setup.md:5-8
Vulnerability Type: Remote payload retrieval and immediate execution
Risk Level: CriticalVulnerable Code:
bash # Recommended: One-click install script curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bashThe same command is recommended for both macOS and Linux and is repeated in the credential setup guide.
Technical Analysis
The command streams an HTTPS response directly into
bash. No fixed script version, cryptographic checksum, publisher signature, or content review separates retrieval from execution. Consequently, the code that runs can differ from the content assessed during this audit.The hostname appears related to Alibaba Cloud, but the project contains no evidence that the response is immutable or independently authenticated. HTTPS protects data in transit under the normal certificate trust model; it does not prevent a compromised origin, compromised publishing pipeline, mistakenly replaced artifact, or malicious future update from serving different executable content.
This behavior is not required to perform DDoS monitoring. Installation can instead use a verified, version-pinned package or a download-verify-install workflow. Immediate execution therefore exceeds the minimum safe behavior needed for the Skill.
Attack Path
- An attacker compromises the script host, its publishing pipeline, or another component in the trusted delivery chain.
- The attacker modifies
setup.shto contain arbitrary shell commands. - A user or agent follows the Skill's prerequisite instructions.
curldownloads the current attacker-controlled response.- The pipe sends that response directly to
bashwithout verification or review. - The payload executes with the privileges and environment of ...[truncated 707 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove every
curl ... | bashrecommendation. - Prefer a trusted operating-system package manager where available.
- Otherwise, download a specific, version-pinned release artifact without executing it:
bash curl --proto '=https' --tlsv1.2 -fL \ -o aliyun-cli-package \ 'https://official.example/path/to/pinned/version' - Publish and verify a cryptographic signature from a pinned publisher key, or at minimum verify a SHA-256 value obtained through a separately trusted channel:
bash echo '<pinned-sha256> aliyun-cli-package' | sha256sum -c - - Abort installation if verification fails.
- Inspect or extract the verified artifact before installation rather than streaming it into a shell.
- Document the exact version, official source, expected digest, required filesystem changes, and privilege requirements.
- Do not instruct users to run the installer as root unless a narrowly defined installation step genuinely requires it.
- Remove every
