subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"--quiet", "--root-user-action=ignore" ] subprocess.check_call(cmd, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) time.sleep(1) except subprocess.CalledProcessError: cmd = [- Confidence
- 96% confidence
- Finding
- This code automatically runs pip at runtime to install packages from the network. For a fortune-video generator, executing package installation is unnecessary and expands the attack surface to dependency confusion, malicious mirrors, and arbitrary code execution during package install hooks.
