T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:30- Finding
Unverified Remote Installation Script Executed Directly by Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:30-32
Vulnerability Type: Remote payload retrieval and immediate execution
Risk Level: CriticalVulnerable Code
bash > 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, > or see `references/cli-installation-guide.md` for installation instructions.Technical Analysis
The installation instruction downloads the current response from an external URL and passes it directly to Bash. The script is not pinned to a reviewed version, saved for inspection, or validated with a publisher signature or cryptographic checksum.
HTTPS protects transport under ordinary conditions, but it does not protect against compromise of the CDN, origin server, DNS or certificate infrastructure, nor against an authorized upstream change that occurs after this Skill has been audited. The effective code executed by the Skill can therefore change without any modification to the audited repository.
Installing the required CLI is relevant to the declared functionality, but executing an unverified remote script is not the minimum privilege or trust necessary to accomplish that installation.
Attack Path
- An attacker compromises the remote server, CDN delivery path, or publishing credentials used for
setup.sh. - The attacker replaces or modifies the installation script with a malicious payload.
- A user or Agent follows the Skill's pre-check instructions.
curlretrieves the modified response and streams it directly to Bash.- The payload executes with all permissions of the invoking account.
- The payload can access local files and cloud credentials, alter installed tools, or establish persistence before invoking a legitimate-looking installer.
Impact Assessment
Successful exploitation provides arbitrary code execution with the invoking ...[truncated 333 chars]
- An attacker compromises the remote server, CDN delivery path, or publishing credentials used for
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashinstallation path. - Prefer an authenticated operating-system package manager with a pinned release.
- If direct download is necessary, use an exact versioned URL rather than a mutable setup script or
latestartifact. - Download the artifact to disk without executing it.
- Verify a publisher-provided digital signature and a pinned SHA-256 or stronger digest.
- Inspect the downloaded artifact before installation.
- Request explicit user approval before executing an installer.
- Do not run the installer with elevated privileges unless system-wide installation is necessary and separately approved.
- Remove the
