subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("Installing crawl4ai...", file=sys.stderr) pip = os.path.join(VENV_DIR, "bin", "pip") result = subprocess.run( [pip, "install", "crawl4ai", "-q"], capture_output=True, text=True )- Confidence
- 91% confidence
- Finding
- The script performs unattended runtime package installation from external sources, which introduces supply-chain and environment-modification risk during normal execution. In an agent skill context, this exceeds simple scraping and can cause unexpected code retrieval and execution on the host whenever dependencies are missing.
