T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:68- Finding
Mutable Remote Installation Scripts Are Executed Directly by Bash
- Content
View full analysis
= 3.3.3 ``` ### Technical Analysis The installation instructions download mutable shell scripts from external URLs and pipe their contents directly into Bash. The downloaded payload is neither version-pinned nor verified using a cryptographic signature or checksum before execution. HTTPS provides transport protection but does not establish that the remote script is immutable or safe. The effective code can change after this Skill has been reviewed. A compromise of the hosting infrastructure, CDN, DNS resolution path, vendor account, or publication pipeline could therefore turn the documented installation command into arbitrary code execution. The command executes with all privileges available to the user running the Skill. If the Agent or user runs the command from a privileged account, the remote payload obtains those elevated privileges. This behavior is not necessary for the declared PDS search and analysis functionality. The Skill can instead require a preinstalled, explicitly versioned Aliyun CLI or use a verified package installation process. ### Attack Path 1. An attacker compromises the remote script, its publication pipeline, the hosting account, or a relevant delivery component. 2. The response at `setup.sh` or `install.sh` is changed to include attacker-controlled shell commands. 3. A user or Agent follows the Skill's installation instructions. 4. `curl` downloads the modified script and sends it directly to Bash without an inspection or verification boundary. 5. Bash executes the payload with the invoking user's permission ...[truncated 719 chars]- Remediation
View remediation
aliyun-cli.tgz" | sha256sum -c - tar -tzf aliyun-cli.tgz ``` Installation should proceed only after successful integrity verification. ]]>
