subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print("Installing dependencies...") subprocess.check_call([VENV_PIP, "install", "--upgrade", "pip"], stdout=subprocess.DEVNULL) subprocess.check_call([VENV_PIP, "install", "-r", REQ_FILE]) print("Dependencies installed.")- Confidence
- 82% confidence
- Finding
- Installing dependencies from requirements.txt during setup introduces a meaningful supply-chain risk because any malicious, compromised, or unpinned dependency will be executed in the local environment. In the context of an AI finance skill, users may run setup on systems holding API keys, brokerage credentials, or market data secrets, increasing the damage from a compromised package.
