subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import httpx # noqa: F811 return httpx except ImportError: subprocess.run( [sys.executable, "-m", "pip", "install", "httpx", "certifi", "-q"], check=True, )- 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.
