T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:24- Finding
Unverified Remote Installer Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:24
Vulnerability Type: Remote payload retrieval and execution
Risk Level: CriticalVulnerable Code
bash /bin/bash -c "$(curl -fsSL https://aliyuncli.alicdn.com/setup.sh)"Technical Analysis
The Skill instructs users to download a mutable shell script from an external URL and immediately execute its contents with Bash. The retrieved payload is not pinned to a specific version, verified against a cryptographic digest, or authenticated with a publisher signature.
Although HTTPS provides transport authentication and integrity, it does not ensure that the endpoint will serve the same audited content in the future. Consequently, the effective executable payload can change after the Skill has been reviewed. Compromise of the distribution endpoint, its publishing pipeline, or an authorized publishing account could turn this prerequisite command into an arbitrary code-execution channel.
This behavior is not necessary at the privilege level shown. The Skill could instead direct users to a trusted package manager or require download and integrity verification of a versioned artifact before installation.
Attack Path
- A user chooses the
aliyun_clicredential source. - The required Aliyun CLI is missing or outdated.
- Following
SKILL.md, the user runs the documented installation command. curlretrieves the current contents ofsetup.shfrom the external service.- Command substitution passes the unreviewed response directly to
/bin/bash. - A malicious or compromised response executes arbitrary commands with the privileges of the invoking user.
Impact Assessment
The remote payload obtains arbitrary code execution under the invoking account. It could read or modify user files, cloud credentials, AgentHub credentials and task state, shell startup files, development workspaces, and other data available to that account.
If the ...[truncated 269 chars]
- A user chooses the
- Remediation
View remediation
Remediation Suggestions
- Remove the direct
curl | bashequivalent from the Skill instructions. - Prefer an official operating-system package manager and pin the Aliyun CLI to a reviewed version.
- If direct installation is unavoidable:
- Download a version-specific artifact to a local file without executing it.
- Verify a pinned SHA-256 or stronger digest obtained through an independently authenticated channel.
- Verify a publisher-provided cryptographic signature against a pinned public key.
- Abort installation on any verification failure.
- Execute only the verified local artifact.
- Document the exact approved version, artifact URL, expected digest, and signature-verification procedure.
- Avoid recommending elevated execution unless it is strictly required, and clearly describe any privileged files or directories the installer will modify.
- Remove the direct
