T08 · Insecure Dependencies
- Location
references/cli-installation-guide.md:20- Finding
Unverified Installation and Automatic Update of Mutable CLI Dependencies
- Content
View full analysis
Vulnerability Details
File Location:
references/cli-installation-guide.md:20-23,references/cli-installation-guide.md:48-53, andSKILL.md:57-59
Vulnerability Type: Supply-chain risk caused by unpinned and unverified executable dependencies
Risk Level: HighVulnerable Code
references/cli-installation-guide.md:20-23:bash curl -L -o aliyun-cli.tgz https://github.com/aliyun/aliyun-cli/releases/latest/download/aliyun-cli-linux-amd64.tgz tar -xzf aliyun-cli.tgz sudo mv aliyun /usr/local/bin/aliyun aliyun versionreferences/cli-installation-guide.md:48-53:bash aliyun configure --auto-plugin-install true aliyun plugin update aliyun plugin list | grep -E "paistudio|aiworkspace"SKILL.md:57-59:bash aliyun plugin updateTechnical Analysis
The installation procedure retrieves the mutable GitHub
latestrelease and installs the downloaded executable into/usr/local/binwithout verifying a cryptographic signature or a pinned checksum. Becauselatestcan resolve to different content over time, the executable reviewed today is not necessarily the executable installed later.The procedure also enables automatic plugin installation and recommends updating plugins without pinning their versions or validating their integrity. These plugins execute in the authenticated Aliyun CLI environment and may therefore access the same local configuration and cloud permissions available to the CLI process.
HTTPS protects transport integrity under normal circumstances, but it does not mitigate compromise of the upstream repository, release account, build pipeline, plugin distribution service, or signing infrastructure. There is no evidence that the referenced official Alibaba sources are currently malicious; the vulnerability is the absence of controls that would detect a substituted or compromised artifact.
Attack Path
- An attacker compromises an upstream rel ...[truncated 1616 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
latestURL with an explicitly pinned, reviewed Aliyun CLI version. - Publish the expected SHA-256 or stronger digest through a separately authenticated channel and verify it before extraction:
bash echo '<EXPECTED_SHA256> aliyun-cli.tgz' | sha256sum --check - - Prefer vendor-provided cryptographic signatures and verify the signing key fingerprint through an independent trusted source.
- Pin the
paistudioandaiworkspaceplugin versions where supported. Do not update them automatically during normal Skill execution. - Disable
--auto-plugin-installin security-sensitive environments. Require an administrator-controlled dependency approval and installation process. - Perform updates as a separate, explicit maintenance operation rather than as a one-time action in every agent session.
- Download and verify artifacts as an unprivileged user. Use elevated privileges only for the final installation of an already verified file.
- Install into a versioned path and use an atomic, auditable symlink update rather than blindly replacing
/usr/local/bin/aliyun. - Record the installed CLI and plugin versions and compare them against an approved allowlist before executing authenticated cloud operations.
- Where available, use a trusted operating-system package repository that provides signed metadata, fixed versions, and rollback support.
- Replace the mutable
