subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"""Fire an openclaw system event (best-effort, never raises).""" # Only send if event_enabled = True and event_enabled > 0, which is False and 0 by default. try: subprocess.run([ "openclaw", "system", "event", "--text", text, "--mode", "now"- Confidence
- 91% confidence
- Finding
- The CLI invokes an external executable, openclaw, during polling, which extends the tool's capabilities beyond video processing into host-side event emission. Although subprocess.run is used without a shell, reducing command injection risk, it still creates a trust boundary issue: data derived from task state is forwarded to another local command that may log, display, or relay it elsewhere.
