T08 · Insecure Dependencies
- Location
SKILL.md:20- Finding
Unverified CLI Downloads and Mandatory Automatic Plugin Updates
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:20-23;references/cli-installation-guide.md:24-30, 44-48, 58-62, 72-76, 92-98
Vulnerability Type: Supply-chain execution without artifact integrity verification
Risk Level: HighVulnerable Code
SKILL.md:20-23:text **Pre-check: Aliyun CLI plugin update required** > [MUST] run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. > [MUST] run `aliyun plugin update` to ensure that any existing plugins are always up-to-date.references/cli-installation-guide.md:44-48:bash # Download wget https://aliyuncli.alicdn.com/aliyun-cli-linux-latest-amd64.tgz # Extract and install to user-level directory tar -xzf aliyun-cli-linux-latest-amd64.tgz mv aliyun ~/.local/bin/Equivalent unverified installation instructions are provided for macOS, CentOS/RHEL, ARM64 Linux, and Windows.
Technical Analysis
The installation guide downloads mutable
latestarchives and places the extracted executable in a user-level or system-level executable search path without validating a cryptographic checksum or publisher signature. The Skill also mandates enabling automatic plugin installation and updating all existing plugins.HTTPS protects the connection in transit under normal conditions, but it does not independently establish that the downloaded artifact is the expected audited release. A compromise involving the distribution CDN, publishing account, plugin repository, DNS resolution, certificate trust chain, or release pipeline could cause a modified binary or plugin to be installed.
The risk is elevated because the CLI is subsequently executed with authenticated Alibaba Cloud access. A malicious replacement could inspect local credential sources, alter API requests and responses, or perform unauthorized actions available to the active identity.
Attack Path
- An attacker compromises or inf ...[truncated 1481 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the Alibaba Cloud CLI and required plugins to explicitly reviewed versions rather than mutable
latestreleases. - Publish and verify SHA-256 or stronger checksums through an independently authenticated official channel before extracting any archive.
- Prefer publisher-signed packages and verify the signature and signing identity.
- Remove the mandatory
--auto-plugin-install trueinstruction. Require explicit user approval before installing or updating executable components. - Install only the plugins required for MSE and ARMS rather than updating every installed plugin.
- Prefer trusted operating-system package managers with signed repository metadata where available.
- Perform updates before credentials are made available, then run the inspection in a constrained environment with a dedicated least-privilege cloud profile.
- Document the expected version, checksum, source URL, and verification procedure directly in the installation guide.
- Pin the Alibaba Cloud CLI and required plugins to explicitly reviewed versions rather than mutable
