subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
self.tool_uses += 1 import subprocess try: result = subprocess.run( command, shell=True, capture_output=True,- Confidence
- 99% confidence
- Finding
- The bash tool executes an arbitrary string with subprocess.run(..., shell=True), which enables shell injection and unrestricted command execution if task content or upstream inputs are attacker-controlled. In this skill, workers are explicitly described as having full tool access, so exposing raw shell execution materially increases the chance of repository compromise, secret theft, or host-level abuse.
