os.system() or os exec-family call
High
- Category
- Dangerous Code Execution
- Content
__import__(import_name or pkg) except ImportError: print(f" [安装] 正在安装 {pkg} ...") os.system(f"pip3 install {pkg} --break-system-packages -q 2>/dev/null") _ensure("python-docx", "docx") _ensure("openpyxl")- Confidence
- 95% confidence
- Finding
- The script invokes a shell command to install packages at runtime using os.system, which expands the skill's capabilities from document analysis to arbitrary system modification and external code retrieval. Even though the package names are currently hardcoded, this executes unpinned code from package repositories without user approval and can compromise the host through dependency confusion, malicious packages, or environment damage.
