subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
logger.info("Terminal exec: %s (cwd=%s)", cmd_str, cwd) proc = subprocess.run( cmd_str, shell=True, capture_output=True,- Confidence
- 98% confidence
- Finding
- The bridge executes agent-supplied command data via subprocess.run(..., shell=True) after joining arguments into a shell string, which enables arbitrary shell execution and shell metacharacter injection. In this skill’s context, the command request originates from the connected agent/backend, so a compromised or overly-permissive agent can run local commands on the host without meaningful mediation.
