T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:143- Finding
Unverified Remote Installation Script Executed Through Bash
- Content
View full analysis
= 3.3.3 required** > Run `aliyun version` to verify the version is >= 3.3.3. If the CLI is missing or outdated, > run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to install or upgrade, > or follow https://help.aliyun.com/zh/cli/ for installation instructions. ``` ### Technical Analysis The installation instruction downloads a mutable shell script from an external URL and passes the response directly to Bash. The payload is executed without: - Pinning a specific version - Verifying a cryptographic checksum - Validating a digital signature - Saving the script for inspection - Requesting explicit approval immediately before execution HTTPS protects the connection in transit but does not make a mutable remote payload safe. The effective code can change after this Skill has been reviewed. Compromise of the hosting origin, CDN, upstream release process, DNS/TLS trust path, or associated credentials could therefore turn an apparently legitimate installation step into arbitrary code execution. This behavior is not the minimum privilege necessary for an RDS inspection Skill. The Skill could instead stop and direct the user to a verified package installation procedure. ### Attack Path 1. The agent loads the Skill and checks for the Aliyun CLI. 2. The CLI is absent or considered outdated. 3. The agent follows the documented installation instruction. 4. `curl` retrieves the current contents of `setup.sh`. 5. The response is passed directly to Bash without verification. 6. A compromised or malicious response executes with the privileges of the user running the agent. 7. The payload can access local files, environment variables, Aliyun configuration, and any cloud credentials available to that process. ### Impac ...[truncated 505 chars]- Remediation
View remediation
