subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""Install *package* into the current interpreter's site-packages.""" logger.info("Installing %s ...", package) try: subprocess.check_call( [sys.executable, "-m", "pip", "install", "--quiet", package], stdout=subprocess.DEVNULL, stderr=subprocess.PIPE,- Confidence
- 95% confidence
- Finding
- The code spawns a subprocess to run `pip install` at runtime, which gives an archive-extraction skill an unexpected capability to modify the Python environment and potentially access the network. In this context, extraction of untrusted archives should not implicitly install code, because dependency installation expands the trust boundary and can lead to supply-chain compromise or unauthorized environment changes.
