subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"python_path": python_path, "env_path": env_info.get('audioProject_path'), "conda_version": env_info.get('conda_version'), "detected_at": subprocess.run( 'date /T && time /T', shell=True, capture_output=True,- Confidence
- 92% confidence
- Finding
- This code invokes a shell with `shell=True` to run `date /T && time /T`, which needlessly expands the attack surface and can execute unexpected programs if shell resolution or environment state is manipulated. Although the command string is static, using a shell in a setup script is dangerous because it normalizes unsafe process-spawning patterns and can be abused in compromised environments.
