subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
logs_collected = [] for cmd in log_commands: result = subprocess.run( ['ssh', '-o', 'ConnectTimeout=10', '-o', 'StrictHostKeyChecking=no', f'openclaw@{vpn_ip}', cmd], capture_output=True, text=True, timeout=30- Confidence
- 97% confidence
- Finding
- This SSH call connects to remote hosts using data from the node record and explicitly disables host key verification, which makes it possible to connect to an attacker-controlled endpoint without detection. In a log collection agent that runs automatically across multiple nodes, that trust bypass materially increases the risk of man-in-the-middle interception and collection from spoofed hosts.
