subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # 启动子进程(忽略 I/O) if sys.platform == "win32": process = subprocess.Popen( [python_exe, str(target_script)], cwd=str(current_dir), creationflags=subprocess.CREATE_NEW_PROCESS_GROUP,- Confidence
- 96% confidence
- Finding
- This subprocess launch is a real security concern because the skill can start an additional local service outside its declared stock-update scope, using a script written into the skill directory and detached from the parent process. Even though the command arguments are not shell-interpolated, spawning a long-lived local service increases attack surface, can bypass user expectations, and may execute attacker-controlled code if the local QuantAll package or generated Start_QuantAll.py is tampered with.
