subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
log_path = workspace / log_rel try: completed = subprocess.run(cmd, check=False, capture_output=True, text=True) if completed.stdout or completed.stderr or completed.returncode != 0: ensure_dir(log_path.parent) body = [- Confidence
- 95% confidence
- Finding
- The code executes a subprocess based on workflow data derived from the workspace (`unit_id`, inputs, outputs, checkpoint) and a generic runner script. Even though `shell=False` avoids shell injection, this still provides a broad execution primitive for a skill whose declared purpose is only bias/risk-of-bias table population, making it an unjustified and dangerous capability if workspace-controlled data can steer downstream behavior.
