subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not has_chromium: import subprocess print("🌐 首次运行:安装 Chromium 浏览器(~110MB)...") subprocess.check_call([sys.executable, "-m", "playwright", "install", "chromium"]) print("✅ Chromium 安装完成")- Confidence
- 95% confidence
- Finding
- The script automatically invokes `playwright install chromium` via `subprocess.check_call`, causing code and large binaries to be downloaded and installed at runtime without explicit user approval. In an agent/skill environment, this expands the skill from passive article reading into software installation and execution, which increases supply-chain and environment-modification risk if package sources, mirrors, or the runtime are compromised.
