subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env = os.environ.copy() env["OPENCLAW_MESSAGE"] = message env["OPENCLAW_PAYLOAD"] = json.dumps(request_payload) proc = subprocess.run( self.agent_cmd, shell=True, env=env,- Confidence
- 99% confidence
- Finding
- The connector executes a configurable command via subprocess.run with shell=True, which turns the skill into a remote-triggered local code execution bridge once requests are claimed from the server. In this context, the claimed network payload is passed into the execution environment and the connector's stated role does not require unrestricted shell execution, so the primitive is materially dangerous.
