T08 · Insecure Dependencies
- Location
scripts/api_key.py:67- Finding
Automatic Installation of an Unpinned Pre-release CLI Plugin
- Content
View full analysis
bool: """Check if Alibaba Cloud CLI and ModelStudio plugin are available, auto-install plugin if missing.""" if not _check_aliyun_binary(): return False try: result = subprocess.run( ["aliyun", "modelstudio", "version"], capture_output=True, text=True, timeout=5 ) if result.returncode == 0: return True except (subprocess.TimeoutExpired, FileNotFoundError): pass if not _install_modelstudio_plugin(): return False ``` ### Technical Analysis When the ModelStudio plugin is unavailable, the application automatically invokes the Alibaba Cloud CLI plugin installer. The plugin version is not pinned, no package checksum or signature is verified by the Skill, and `--enable-pre` explicitly permits pre-release components. Consequently, the code reviewed during the audit does not fully determine the code that will execute at runtime. The effective plugin implementation can change as remote releases change. Although no malicious plugin is included in this project, this installation pattern creates a supply-chain exposure because future, compromised, or unexpectedly modified plugin releases may execute under the Agent user's account. The behavior is particularly sensitive because the plugin subsequently interacts with existing Alibaba Cloud CLI credentials and performs API-key management o ...[truncated 1507 chars]- Remediation
View remediation
