subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("📦 Installing dependencies...") try: subprocess.run([str(self.venv_pip), "install", "--upgrade", "pip"], check=True) subprocess.run([str(self.venv_pip), "install", "-r", str(self.requirements_file)], check=True) print("🌐 Installing Google Chrome for Patchright...") try: subprocess.run([str(self.venv_python), "-m", "patchright", "install", "chrome"], check=True)- Confidence
- 87% confidence
- Finding
- Installing dependencies directly from requirements.txt executes a network-based supply-chain trust decision with no visible integrity controls, such as pinned versions with hashes or an approved internal index. If the requirements file is modified or a dependency is compromised upstream, setup will install and potentially execute malicious package code during build/install time.
