subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return True except ImportError: print("⚙️ moviepy 未安装,正在自动安装...") result = subprocess.run( [sys.executable, "-m", "pip", "install", "moviepy"], capture_output=True, text=True )- Confidence
- 95% confidence
- Finding
- The script automatically installs `moviepy` via pip at runtime, which introduces unannounced network access and environment modification beyond normal media processing. In an agent-skill context, silently fetching and installing code expands the trust boundary and can execute arbitrary package install scripts from external sources.
