subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
else: print("TA-Lib not found. Attempting to install TA-Lib...", file=sys.stderr) # Use pip to install TA-Lib. Use the explicit Python executable. subprocess.run([PYTHON_EXECUTABLE, "-m", "pip", "install", "TA-Lib"], check=True, capture_output=True) print("TA-Lib installed successfully.", file=sys.stderr) return True except subprocess.CalledProcessError as e:- Confidence
- 97% confidence
- Finding
- The skill performs runtime package installation via `pip install TA-Lib`, which gives the code the ability to modify the host environment and pull executable code from package indexes at execution time. In an agent-skill context, that is dangerous because it exceeds the declared market-analysis purpose and creates supply-chain and unauthorized code execution risk if package sources, indexes, or TLS trust are compromised.
