T08 · Insecure Dependencies
- Location
SKILL.md:38- Finding
Mandatory Automatic Installation and Update of Unpinned Aliyun CLI Plugins
- Content
View full analysis
[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. ``` ### Technical Analysis The Skill mandates enabling automatic plugin installation and updating all existing Aliyun CLI plugins. Plugins are executable components obtained from an external repository, but the workflow does not pin plugin versions or require validation of package checksums, signatures, publishers, or expected plugin contents. Consequently, the code reviewed during this audit is not necessarily the code that will run later. A compromised plugin repository, publisher account, update channel, or upstream release could cause the CLI to install and execute modified plugin code. Because the Aliyun CLI is used with a configured cloud identity, a malicious plugin could potentially access that process environment and act with the permissions of the selected Alibaba Cloud profile. ### Attack Path 1. An attacker compromises an Aliyun CLI plugin distribution channel, publisher account, or plugin release. 2. A modified plugin version is published through the trusted update channel. 3. The Skill mandates running `aliyun plugin update` or automatically installs the plugin when an API command is first used. 4. The modified plugin is loaded or executed by the Aliyun CLI. 5. The plugin operates under the local execution identity and may interact with the configured cloud credential profile. 6. It can perform cloud operations allowed to that identity or access certificate material available to the process. ### Impact Assessment Successful exploitation could provide code execution with the privileg ...[truncated 411 chars]- Remediation
View remediation
