subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(f' 📦 Install {plugin}...', end=' ', flush=True) try: # CLI 3.3.16+ Must use the --name argument install_result = subprocess.run( ['aliyun', 'plugin', 'install', '--name', plugin], capture_output=True, text=True, timeout=120 )- Confidence
- 86% confidence
- Finding
- The script automatically installs CLI plugins at runtime, which performs a state-changing operation and pulls executable code into the environment despite presenting itself as a read-only inspection tool. If the plugin source, package resolution, or local CLI trust chain is compromised, this can lead to unexpected code execution or supply-chain exposure.
