os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
def install_dependencies(): """安装依赖""" print("正在安装 Playwright...") os.system(f'"{sys.executable}" -m pip install playwright') os.system(f'"{sys.executable}" -m playwright install chromium') print("依赖安装完成,请重新运行脚本") sys.exit(0)- Confidence
- 93% confidence
- Finding
- The script invokes shell commands to install packages via os.system(), which executes a command interpreter and performs system-level changes. Although the command strings are not directly built from attacker-controlled input here, automatically triggering package installation from a skill is risky because it modifies the host environment, depends on external package sources, and normalizes shell execution inside the tool.
