T03 · Remote Payload Retrieval and Execution
- Location
references/cli-installation-guide.md:11- Finding
Unverified Remote Installer Is Downloaded and Executed Immediately
- Content
View full analysis
- Remediation
View remediation
Security audit
Security checks for vulnerabilities and agentic risk
The skill is mostly aligned with Alibaba Cloud SSL certificate purchasing, but its install and permission guidance is too broad for a workflow that can spend money and mutate cloud certificate resources.
Review before installing. Use a pinned and verified Aliyun CLI/plugin installation path, avoid pasting access keys into commands or chats, grant a custom least-privilege RAM policy instead of full-access billing/certificate policies, and require a separate explicit confirmation before any purchase or certificate submission.
references/cli-installation-guide.md:11Unverified Remote Installer Is Downloaded and Executed Immediately
references/cli-installation-guide.md:30Unpinned Latest Archives Are Streamed into Extraction and Installed System-Wide
SKILL.md:33Mandatory Automatic Plugin Installation and Global Updates Expand Supply-Chain Exposure
references/cli-installation-guide.md:80Credential Guidance Exposes Secrets Through Command Arguments and Plaintext Environment Variables
references/ram-policies.md:24Recommended Full-Access RAM Policies Exceed the Skill's Required Permissions
The description presents a complete SSL certificate purchase and application workflow through Alibaba Cloud CAS, including reuse of existing instances and the sequence list-instances → update-instance → apply-certificate. The actual code chunk only wraps BSS billing operations: plugin check, paid instance creation, and order-detail lookup. While purchasing a certificate instance is consistent with part of the declared purpose, the central claimed behaviors around CAS-side certificate instance management and certificate application are absent from this code. Therefore the description overstates what this supplied code chunk actually does in a material way.
Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
aliyun version
### Self-Update (CLI >= 3.3.5)
Once the CLI is at version 3.3.5 or newer, routine updates can use the built-in self-update subcommand instead of re-running the install script:
Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
Once the CLI is at version 3.3.5 or newer, routine updates can use the built-in self-update subcommand instead of re-running the install script:
aliyun upgrade
Skill modifies its own code, configuration, or behavior at runtime. Self-modification enables an agent to escalate privileges, disable safety constraints, or install persistent backdoors.
| Command | Description |
|---------|-------------|
| `aliyun version` | Check CLI version (must be >= 3.3.3) |
| `aliyun upgrade` | Self-update CLI (available >= 3.3.5) |
| `aliyun configure list` | List configured profiles and credentials |
| `aliyun configure set` | Configure CLI profile settings |
| `aliyun plugin update` | Update installed plugins |
The trigger phrases are broad enough to activate on loosely related certificate requests, which can route users into a money-spending and certificate-submission workflow unintentionally. In this skill context, overbroad activation is more dangerous because the skill includes billing operations, resource modification, and irreversible application steps.
The catch-all trigger for 'any scenario requiring a certificate application to Alibaba Cloud CAS' is overly expansive and can cause the skill to engage for planning, troubleshooting, informational, or unrelated certificate-management requests. Because this skill can lead to paid purchases and certificate application actions, accidental invocation materially increases the risk of unintended operations.
The guide recommends executing a remotely downloaded script directly via curl piped to bash, which gives immediate code execution to whatever is served from that URL or any compromised delivery path. In an agent skill context, this is more dangerous because users may follow instructions non-interactively and run privileged bootstrap commands without inspecting them.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
x86_64
wget --connect-timeout=10 --read-timeout=120 --tries=3 -qO- https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz | tar xz
sudo mv aliyun /usr/local/bin/
ARM64
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
x86_64
wget --connect-timeout=10 --read-timeout=120 --tries=3 -qO- https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz | tar xz
sudo mv aliyun /usr/local/bin/
ARM64
Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
1. Log in to Aliyun Console: https://ram.console.aliyun.com/
2. Navigate to: AccessKey Management
3. Create a new AccessKey pair
4. Save the secret immediately — it's only shown once
### Configuration Modes
The manifest describes purchasing and applying SSL certificates, but this guide instructs users to configure RamRoleArn and RamRoleArnWithEcs modes for elevated or cross-account access. Those are broader account-access capabilities than the stated certificate-order flow and are not presented as CAS-specific requirements.
The skill manifest scopes the skill to CAS SSL certificate purchasing and application, but this file teaches general-purpose Aliyun CLI operations for unrelated services such as ECS, VPC, RDS, and FC, including listing instances, regions, and installing arbitrary product plugins. That materially expands the described behavior from certificate-order automation into broad cloud CLI enablement.
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.
# Restrict permissions
chmod 600 ~/.aliyun/config.json
The documented recommended permissions include broad billing and purchasing access (AliyunBSSFullAccess) and a custom policy that allows certificate instance creation, which can directly trigger paid purchases. Because the file presents these permissions as required/recommended without an explicit warning about financial impact, operators may grant overly broad access and enable unintended or unauthorized spending through the skill.
The PowerShell example updates the machine PATH persistently, which alters system configuration beyond the current session. Although one inline note mentions admin privileges, the section does not clearly warn that this is a persistent system-wide change and may impact other users or shells.