Back to skill

Security audit

Alibabacloud Error Troubleshoot

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent Alibaba Cloud troubleshooting guide, but its setup instructions include unsafe mutable installation and update steps that should be reviewed before use.

Install only if you are comfortable with Alibaba Cloud CLI/plugin code running in your local authenticated environment. Prefer a package-manager or verified installer path, avoid curl-to-bash, avoid enabling global automatic plugin installation unless you understand the effect, and use a least-privilege RAM policy for only the troubleshoot APIs you need.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
Findings (2)

T03 · Remote Payload Retrieval and Execution

Error
Location
references/cli-installation-guide.md:16
Finding

Unverified Remote Installation Script Is Executed Directly

Content
View full analysis

Vulnerability Details

File Location: references/cli-installation-guide.md, line 16
Vulnerability Type: Remote payload retrieval and execution
Risk Level: High

Vulnerable code:

bash
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash

Technical Analysis

The installation command sends content obtained from a remote URL directly to bash. The downloaded script is not pinned to a specific immutable version, stored for inspection, or validated using a cryptographic checksum or signature before execution.

Although the hostname appears related to Alibaba Cloud, the project does not provide evidence that the retrieved resource is immutable or cryptographically authenticated beyond transport-layer HTTPS. The effective code executed by this Skill can therefore change after the Skill itself has been reviewed.

HTTPS protects the connection under normal conditions, but it does not mitigate compromise of the CDN, origin server, DNS or certificate infrastructure, publishing account, or upstream release process. Direct piping also prevents the user from reviewing the exact artifact before it runs.

Attack Path

  1. An attacker compromises the script’s origin, CDN distribution path, publishing process, or another trusted component in its delivery chain.
  2. The attacker replaces or modifies setup.sh with malicious shell commands.
  3. A user follows the Skill’s installation guide.
  4. curl retrieves the attacker-controlled response.
  5. The pipe passes the response directly to bash without integrity validation or review.
  6. The malicious script executes with all privileges available to the user who invoked the command.

Impact Assessment

Successful exploitation permits arbitrary command execution under the invoking user’s account. Depending on that account’s privileges and the behavior of the remote installer, an attacker could read or alter local files, access configured cloud credentials, ...[truncated 342 chars]

Remediation
View remediation

Remediation Suggestions

  1. Remove the direct curl | bash pipeline.
  2. Prefer an official operating-system package manager or a versioned release artifact.
  3. Pin the installation to a reviewed version rather than a mutable URL.
  4. Download the artifact separately:
    bash
    curl -fL --proto '=https' --tlsv1.2 \
      -o aliyun-cli-installer.sh \
      'https://trusted.example/path/to/versioned/setup.sh'
    
  5. Verify a vendor-published cryptographic signature or SHA-256 digest before execution:
    bash
    sha256sum -c aliyun-cli-installer.sh.sha256
    
  6. Inspect the downloaded script and execute it only after verification:
    bash
    less aliyun-cli-installer.sh
    bash aliyun-cli-installer.sh
    
  7. Document the expected signer, checksum source, exact version, destination files, and privileges required by the installer.
  8. Advise users not to run the installer as root unless a specific installation step demonstrably requires elevation.

T08 · Insecure Dependencies

Warning
Location
SKILL.md:31
Finding

Unpinned Plugin Installation and Automatic Updates Create Supply-Chain Exposure

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 31–34
Vulnerability Type: Insecure third-party dependency installation and updates
Risk Level: Medium

Vulnerable code:

bash
aliyun configure set --auto-plugin-install true
aliyun plugin install --names aliyun-cli-openapiexplorer
aliyun plugin update

The same unsafe setup pattern is repeated in references/cli-installation-guide.md, lines 28–31:

bash
aliyun plugin install --names aliyun-cli-openapiexplorer
aliyun configure set --auto-plugin-install true
aliyun plugin update

Technical Analysis

The Skill installs a plugin by name without pinning an audited version or documenting signature or digest validation. It then updates plugins without specifying a target version and enables automatic plugin installation globally in the Aliyun CLI configuration.

These actions make the Skill’s effective executable dependency mutable after review. Enabling automatic installation also persists beyond the immediate troubleshooting operation and broadens the trust boundary for future CLI use. This exceeds the minimum setup necessary: the declared functionality only requires one known OpenAPI Explorer plugin version, not unrestricted future installation or immediate updating of all installed plugins.

The project does not establish that the named package is typosquatted or currently malicious. The finding is the unsafe, unpinned dependency acquisition and persistent automatic-install configuration, not evidence of a presently compromised package.

Attack Path

  1. An attacker compromises the plugin registry, distribution channel, publisher account, signing process, or a future plugin release.
  2. A malicious version is published under the expected plugin name or delivered through the compromised channel.
  3. The user runs the unpinned plugin install or plugin update command, or automatic installation retrieves the altered component dur ...[truncated 921 chars]
Remediation
View remediation

Remediation Suggestions

  1. Pin aliyun-cli-openapiexplorer to a specific reviewed version if the CLI supports version selection.
  2. Verify the plugin using a vendor signature or published cryptographic digest before enabling it.
  3. Remove the unconditional aliyun plugin update command. Upgrade only after separately reviewing and approving the target version.
  4. Do not enable automatic plugin installation by default. Keep it disabled or restore the prior setting immediately after a narrowly approved operation.
  5. Install only the required plugin rather than updating unrelated installed plugins.
  6. Document the authoritative package source, expected publisher, version, checksum or signature, and rollback procedure.
  7. Verify the installed plugin version and origin before running authenticated cloud commands.
  8. If version pinning or integrity verification is unavailable, require explicit user confirmation and clearly disclose that plugin code is mutable and executes with the user’s privileges.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (10)

External Script Fetching

High
Category
Supply Chain
Confidence
98% confidence
Finding

The guide instructs users to download a remote shell script and execute it immediately via a pipe to bash. This bypasses any opportunity to inspect or verify the script contents, so if the hosting endpoint, transport, or supply chain is compromised, arbitrary code will run on the user's system. In an agent skill context, this is more dangerous because it may be repeated mechanically by users or automation following the documented setup steps.

Content

Scanner excerpt · references/cli-installation-guide.md (reported line 16)May include surrounding context.

If not installed or version too low:

bash
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash

Or on macOS with Homebrew:

Chaining Abuse

High
Category
Tool Misuse
Confidence
97% confidence
Finding

The shell pipeline ending in '| bash' is an unsafe command-chaining pattern because it turns network-delivered content directly into executable code. This creates a straightforward remote code execution path if the fetched content is altered maliciously or unexpectedly, and users are encouraged to run it exactly as shown. The troubleshooting skill context does not mitigate the risk; installation guidance embedded in operational docs increases the chance of unsafe copy-paste execution.

Content

Scanner excerpt · references/cli-installation-guide.md (reported line 16)May include surrounding context.

If not installed or version too low:

bash
curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash

Or on macOS with Homebrew:

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 14)May include surrounding context.

md
# Alibaba Cloud OpenAPI Troubleshoot

Guide users to diagnose Alibaba Cloud OpenAPI call failures using the **OpenAPI Explorer troubleshoot APIs** exposed as Aliyun CLI commands. These CLI commands call the same backend as the [OpenAPI Diagnostic Portal](https://api.aliyun.com/troubleshoot).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 149)May include surrounding context.

md
# Alibaba Cloud OpenAPI Troubleshoot

Guide users to diagnose Alibaba Cloud OpenAPI call failures using the **OpenAPI Explorer troubleshoot APIs** exposed as Aliyun CLI commands. These CLI commands call the same backend as the [OpenAPI Diagnostic Portal](https://api.aliyun.com/troubleshoot).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 220)May include surrounding context.

md
# Alibaba Cloud OpenAPI Troubleshoot

Guide users to diagnose Alibaba Cloud OpenAPI call failures using the **OpenAPI Explorer troubleshoot APIs** exposed as Aliyun CLI commands. These CLI commands call the same backend as the [OpenAPI Diagnostic Portal](https://api.aliyun.com/troubleshoot).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · SKILL.md (reported line 255)May include surrounding context.

md
# Alibaba Cloud OpenAPI Troubleshoot

Guide users to diagnose Alibaba Cloud OpenAPI call failures using the **OpenAPI Explorer troubleshoot APIs** exposed as Aliyun CLI commands. These CLI commands call the same backend as the [OpenAPI Diagnostic Portal](https://api.aliyun.com/troubleshoot).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/api-reference.md (reported line 156)May include surrounding context.

md
# Alibaba Cloud OpenAPI Troubleshoot

Guide users to diagnose Alibaba Cloud OpenAPI call failures using the **OpenAPI Explorer troubleshoot APIs** exposed as Aliyun CLI commands. These CLI commands call the same backend as the [OpenAPI Diagnostic Portal](https://api.aliyun.com/troubleshoot).

---

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

Scanner excerpt · references/troubleshooting-workflow.md (reported line 169)May include surrounding context.

md
# Alibaba Cloud OpenAPI Troubleshoot

Guide users to diagnose Alibaba Cloud OpenAPI call failures using the **OpenAPI Explorer troubleshoot APIs** exposed as Aliyun CLI commands. These CLI commands call the same backend as the [OpenAPI Diagnostic Portal](https://api.aliyun.com/troubleshoot).

---

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The skill hard-codes --accept-language zh-CN in the solution lookup command, which can cause the tool to fetch diagnostics in Chinese regardless of the user's language preference. This is primarily a safety/UX issue: users may misunderstand remediation guidance or miss important instructions if they cannot read the returned language clearly.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
94% confidence
Finding

The API reference states that --accept-language defaults to zh-CN, which imposes a specific language choice unless the caller overrides it. Under the policy, forcing a language without user opt-in is a natural-language policy concern unless the locale constraint is explicitly justified.

Content

No source excerpt is available for this finding.