subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
except ImportError: print("[INFO] Pillow not found. Installing...") try: result = subprocess.run( [sys.executable, '-m', 'pip', 'install', 'Pillow', '-q'], capture_output=True, text=True, timeout=120 )- Confidence
- 97% confidence
- Finding
- This call automatically invokes pip to install Pillow at runtime, which adds package installation and likely network access to a file-compression skill. In an agent context, that expands the trust boundary and can lead to unreviewed code being fetched and executed, dependency confusion, or execution against a compromised package index or network path.
