subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
ensure_package.pip("tf-playwright-stealth") ensure_package.pip("yt-dlp") # 安装 chromium 浏览器 subprocess.check_call([sys.executable, "-m", "playwright", "install", "chromium"]) import requests import yt_dlp from yt_dlp.utils import DownloadError # 专门捕获 yt_dlp 下载错误- Confidence
- 96% confidence
- Finding
- The module executes `playwright install chromium` at import time, which causes immediate subprocess execution and downloads software onto the host before any explicit user consent or safety gating. This expands the skill's capability and attack surface beyond simple link parsing, and import-time side effects are especially dangerous in agent environments because merely loading the skill triggers system modification and network activity.
