subprocess module call
- Category
- Dangerous Code Execution
- Confidence
- 92% confidence
- Finding
The code automatically invokes pip at runtime via a subprocess when httpx is missing. Executing package installation during normal skill operation expands the attack surface, can pull code from external package indexes without explicit approval, and creates a code-execution path controlled by the runtime environment and dependency resolution.
- Content
python import httpx # noqa: F811 return httpx except ImportError: subprocess.run( [sys.executable, "-m", "pip", "install", "httpx", "certifi", "-q"], check=True, )
