subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
) if chromium_check.returncode != 0 or "chromium" not in chromium_check.stdout.lower(): print("[html_to_png] Installing chromium browser...", file=sys.stderr) subprocess.check_call( [sys.executable, "-m", "playwright", "install", "chromium"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL )- Confidence
- 88% confidence
- Finding
- The script automatically installs Chromium at runtime without explicit user consent, causing unexpected system modification and network retrieval of executable components. In an agent-skill context, this is dangerous because running a simple conversion tool can silently change the host environment and expand the attack surface through unreviewed dependency installation.
