T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:42- Finding
Mutable Remote Installer Is Piped Directly into Bash
- Content
View full analysis
&2 ``` ### Technical Analysis The installation instruction downloads a shell script from an external URL and passes the response directly to Bash. The effective code being executed is therefore not contained in, versioned with, or reviewable from this Skill package. HTTPS protects the connection in transit under normal conditions, but it does not provide artifact-level integrity, version pinning, or protection against compromise of the upstream server, CDN, publishing account, or DNS/TLS infrastructure. The remote response can also change after the Skill has been audited. This behavior is not required for the core diagnostic operation. Aliyun CLI could instead be installed from a trusted package manager or from a version-pinned artifact whose signature or checksum is verified before execution. ### Attack Path 1. An attacker compromises the upstream installer, CDN, publishing process, or another component capable of changing the response from `aliyuncli.alicdn.com`. 2. A user or automation agent follows the Skill's installation instruction. 3. `curl` retrieves the attacker-controlled response. 4. The pipe supplies the response directly to Bash without saving, reviewing, or verifying it. 5. Bash executes the payload with the privileges of the invoking user. 6. If the user invoked the workflow with elevated privileges, the payload inherits those elevated privileges. ### Impact Assessment Successful exploitation permits arbitrary local command execution. Dep ...[truncated 299 chars]- Remediation
View remediation
