T03 · Remote Payload Retrieval and Execution
- Location
references/cli-installation.md:15- Finding
Unverified Remote Installer Is Piped Directly into a Shell
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
This is a coherent Alibaba Cloud cluster-management skill, but it should go to Review because key runtime and installation paths are not tightly bounded or verifiable.
Before installing, verify that the packaged runtime includes the expected lib/lj_init.sh and review it directly. Prefer a signed or package-manager Aliyun CLI install, avoid curl-to-bash installers, pin or administratively control the eflo-controller plugin version, and use a dedicated low-privilege or short-lived Alibaba Cloud profile rather than a broad long-lived AccessKey. Do not use the documented --insecure test-region path with production credentials or networks.
references/cli-installation.md:15Unverified Remote Installer Is Piped Directly into a Shell
references/cli-installation.md:22Automatically Installed and Updated CLI Plugin Is Not Version-Pinned
SKILL.md:4Environment-Controlled External Initialization Script Is Sourced Without Verification
references/cli-installation.md:42Long-Lived Cloud Credentials Are Supplied as Command-Line Arguments
references/endpoint-and-regions.md:28TLS Certificate Verification Is Disabled Across All CLI Calls in Test-Region Sessions
The documentation instructs users to configure long-lived AccessKey credentials and notes they are stored in ~/.aliyun/config.json, but it does not warn that these secrets are locally recoverable by other processes or users with filesystem access. In a cluster-management skill, these credentials can enable creation, deletion, and modification of cloud resources, so omission of basic secret-handling guidance materially increases credential exposure risk.
The instruction pipes a remotely fetched script directly into bash, eliminating an opportunity for inspection and making users fully trust the network path, hosting endpoint, and upstream publisher at execution time. In a cloud cluster-management context, compromise of that script could install malware, steal Alibaba credentials, or tamper with CLI behavior used to manage or destroy infrastructure.
| Platform | Command |
|---|---|
| macOS (Homebrew) | `brew install aliyun-cli && brew upgrade aliyun-cli` |
| macOS / Linux x86_64 | `curl -fsSL --connect-timeout 10 --max-time 120 https://aliyuncli.alicdn.com/setup.sh \| bash` |
| Linux ARM64 | `wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-arm64.tgz && tar -xzf aliyun-cli-linux-latest-arm64.tgz && sudo mv aliyun /usr/local/bin/` |
| Windows | Download `https://aliyuncli.alicdn.com/aliyun-cli-windows-latest-amd64.zip`, unzip, and add to PATH |