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
- 94% confidence
- Finding
- The code executes an external script via subprocess using workspace-derived values such as unit_id, inputs, outputs, and checkpoint. Although it avoids shell=True, it still acts as a generic workflow launcher for this skill, so a malicious or untrusted workspace can trigger unintended pipeline execution and side effects far beyond chapter-brief generation.
