subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import akshare # noqa: F401 except ImportError: print("正在安装依赖 akshare pandas ...", file=sys.stderr) subprocess.check_call( [sys.executable, "-m", "pip", "install", "akshare", "pandas", "-q"] )- Confidence
- 94% confidence
- Finding
- The script performs a subprocess call to invoke pip and install packages at runtime. Although the arguments are hardcoded and there is no obvious command injection, this still creates an unnecessary code-execution and supply-chain surface for a query-only skill: it modifies the host environment, pulls code from package indexes at execution time, and can fail or behave unexpectedly depending on index/proxy configuration.
