T08 · Insecure Dependencies
- Location
SKILL.md:43- Finding
Mandatory Unpinned Plugin Updates and Automatic Plugin Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:43-54,references/verification-method.md:18-28, andreferences/cli-installation-guide.md:544-551
Vulnerability Type: Unsafe third-party plugin installation and update policy
Risk Level: MediumVulnerable Code and Instructions:
markdown > **Pre-check: Aliyun CLI >= 3.3.3 required** > Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, > use a package manager or the pinned, SHA256-verified packages in > [references/cli-installation-guide.md](references/cli-installation-guide.md). > Do not pipe a remotely downloaded installation script directly into a shell. > > Then [MUST] run `aliyun plugin update` to ensure that any existing plugins on your local machine are always up-to-date. > > **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. ```bash aliyun version aliyun configure set --auto-plugin-install true python3 --versiontext The verification guide also directs the user to install a mutable plugin without version or digest pinning: ```markdown If plugin not installed: ```bash aliyun plugin install --names governancetext The generic installation guide further recommends installing unrelated plugins: ```markdown 1. **Install plugins** for services you need: ```bash aliyun plugin install --names ecs vpc rds # List all available plugins aliyun plugin list-remote ```Technical Analysis
The skill requires users to update all existing Aliyun CLI plugins and persistently enables automatic plugin installation. Neither operation pins plugin versions nor independently verifies plugin artifact digests. This creates a mutable supply-chain boundary: executable plugin content may change after the skill package itself has been reviewed.
The requirement to run `aliyun plugin updat ...[truncated 2137 chars]
- Remediation
View remediation
Remediation Suggestions
- Remove the mandatory global
aliyun plugin updateinstruction. Do not update unrelated plugins as a prerequisite for this skill. - Do not require persistent automatic plugin installation. Keep
--auto-plugin-installdisabled unless the user explicitly approves the configuration change after being informed of its scope and persistence. - Install only the Governance Center plugin when it is actually absent. Remove the unrelated ECS, VPC, and RDS plugin recommendation from this skill's workflow.
- Pin the Governance Center plugin to a reviewed version where the CLI supports version selection.
- Publish trusted SHA-256 digests or signed provenance for the supported plugin artifact and verify it before installation. If the CLI cannot verify plugin artifacts, document that limitation and require an explicit user confirmation before installation.
- Separate dependency installation from report execution. A normal report invocation should fail safely with installation guidance rather than modifying the CLI environment automatically.
- Record the resolved plugin name, version, publisher, and source before use so operators can audit the executable dependency.
- Recommend a dedicated least-privilege Alibaba Cloud profile containing only the Governance Center read permissions required for the requested mode.
- Remove the mandatory global
