subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
except ImportError: print('正在安装 openpyxl...') import subprocess subprocess.check_call([sys.executable, '-m', 'pip', 'install', 'openpyxl', '-q']) import openpyxl from openpyxl.styles import Font, PatternFill, Alignment, Border, Side from openpyxl.utils import get_column_letter- Confidence
- 96% confidence
- Finding
- The script automatically invokes pip to install openpyxl at runtime, which modifies the host environment without explicit user approval. Even though the package name is hardcoded and not shell-injected, runtime package installation expands the skill's privileges from data fetching into software installation and creates supply-chain and environment-tampering risk.
