subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import websockets except ImportError: print("Installing websockets...", file=sys.stderr) subprocess.check_call([sys.executable, "-m", "pip", "install", "-q", "websockets"]) import websockets- Confidence
- 95% confidence
- Finding
- The script automatically installs a Python package at runtime via pip if websockets is missing, which modifies the host environment and executes package-installation logic without explicit user consent. In an agent skill context, this is dangerous because it introduces unexpected code execution and supply-chain exposure outside the stated browsing function.
