T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:39- Finding
Unverified Remote Script Is Executed Directly by Bash
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:39-42
Vulnerability Type: Remote payload retrieval and immediate execution
Risk Level: CriticalVulnerable code:
bash **Pre-check: Aliyun CLI >= 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 install/update, > or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for detailed instructions.Technical Analysis
The command passes the HTTP response directly to Bash. The effective code is not included in the audited project and can change after the Skill has been reviewed. There is no version pinning, checksum validation, cryptographic signature verification, local inspection, or confirmation of the downloaded payload.
HTTPS protects the connection in transit but does not establish that a mutable script remains safe over time. Compromise of the hosting origin, CDN, release process, DNS/TLS trust path, or vendor account could therefore turn this installation command into an arbitrary-code execution channel.
Installing the CLI may be necessary when it is absent, but executing an unverified mutable script is not the minimum privilege or safest mechanism required for the declared read-only backup functionality.
Attack Path
- An attacker compromises or gains control over
setup.sh, its hosting infrastructure, or a relevant delivery dependency. - The attacker modifies the response to contain malicious shell commands.
- A user or Agent follows the Skill's installation instruction.
curldownloads the modified response and streams it directly into Bash.- Bash executes the payload with all permissions available to the invoking account.
- The payload can subsequently access local files, installed credentials, backup output, or establish additional execution mechanisms.
I
...[truncated 386 chars]
- An attacker compromises or gains control over
- Remediation
View remediation
Remediation Suggestions
- Remove the
curl | bashpipeline. - Prefer a trusted operating-system package repository or package manager.
- If direct installation is unavoidable, download a fixed, versioned release as a separate step.
- Verify a vendor-published cryptographic signature and pinned SHA-256 checksum before extraction or execution.
- Display the exact version and source to the user and obtain explicit approval before installation.
- Run installation with user-level permissions wherever possible.
- Do not execute a mutable
latestinstaller or other remotely supplied shell source directly.
- Remove the
