T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:22- Finding
Unverified Remote Installer Executed Directly by Bash
- Content
View full analysis
= 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, ``` ### Technical Analysis The installation command streams a mutable remote script directly into Bash. The payload is executed without local inspection, version pinning, cryptographic signature verification, or checksum validation. Although the URL uses HTTPS and appears to belong to Alibaba Cloud infrastructure, transport encryption alone does not establish immutable artifact integrity. The effective code executed by the Skill can change after this project has been reviewed. Compromise of the publishing system, CDN, DNS resolution, TLS trust chain, or remote script itself would turn the prerequisite into an arbitrary code-execution channel. This behavior is unnecessary for static SQL linting and exceeds the minimum privileges required by that mode. ### Attack Path 1. An attacker compromises or otherwise influences the remote `setup.sh` payload or its delivery infrastructure. 2. The user or Agent detects an absent or outdated Aliyun CLI installation. 3. Following the Skill instructions, it runs the `curl | bash` command. 4. Bash executes the retrieved content immediately under the invoking user's account. 5. The altered installer can access local files, modify tools or configuration, establish persistence, or use credentials available to the process. ### Impact Assessment Successful exploitation provides arbitrary local command execution with all privileges held by the invoking user. If the command is run from an elevated shell, the payload could obtain system-wide control. Even without elevation, it may access user-owned files, Aliyun CLI configuration, environment ...[truncated 55 chars]- Remediation
View remediation
