T08 · Insecure Dependencies
- Location
SKILL.md:49- Finding
Automatic Installation of Unpinned Remote CLI Plugins
- Content
View full analysis
**Pre-check: Aliyun CLI >= 3.3.1 required** > Run `aliyun version` to verify >= 3.3.1. If not installed or version too low, > see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions. > Then **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. ```bash # Verify CLI version aliyun version # Enable auto plugin installation aliyun configure set --auto-plugin-install true ``` ``` ### Technical Analysis The skill mandates enabling automatic plugin installation globally in the Aliyun CLI configuration. After this setting is enabled, subsequent CLI commands may retrieve and install executable plugins without a separate review or approval step. The instructions do not constrain plugin versions, pin an expected artifact digest, define an approved plugin allowlist, or require the user to review the plugin before installation. The setting also persists beyond the immediate skill operation, expanding the trust boundary of future Aliyun CLI commands. This creates a dependency supply-chain risk. If the plugin repository, publishing account, name-resolution path, distribution infrastructure, or plugin selection mechanism is compromised, an affected plugin could execute with the local privileges and cloud credentials available to the Aliyun CLI process. ### Attack Path 1. An attacker compromises a plugin publishing account, plugin repository, distribution endpoint, or another component in the plugin delivery chain. 2. The attacker publishes or substitutes a malicious plugin for a product command that the skill will invoke. 3. A user loads the skill and follows the mandatory instruction to enable `--auto-plugin-install`. 4. The user or agent ex ...[truncated 1089 chars]- Remediation
View remediation
