AIDEFEND in Action AIA-0191 Incident

Clawdbot Gateway Honeypot: Attackers Skipped the AI Model and Called the Agent's Control API Directly

Clawdbot is a self-hosted AI assistant now called OpenClaw. Its gateway lets users and devices manage the assistant. Pillar Security exposed a simulated gateway and recorded attackers calling that management interface directly to look for settings, history and ways to run commands. The observed traffic hit a decoy. The researchers used source code to explain what a vulnerable real gateway could expose.

Authentication BypassCredential ExposureAI Deployment SecurityAgentic AIWebSocket Security
5 applicable AIDEFEND defenses
Source: Caught in the Wild: Real Attack Traffic Targeting Exposed Clawdbot Gateways 
Authors: Ariel Fogel, Eilon Cohen (Pillar Security)
Original article: Jan 29, 2026

Threat Analysis

  • What the gateway controls. OpenClaw's protocol documentation calls the gateway's WebSocket protocol the single control plane and node transport. The command-line tool, the web control UI, the macOS app and paired phones or headless machines all connect to it and declare a role (operator for clients that manage the assistant, node for devices that offer capabilities such as running commands) and permission scopes such as operator.read, operator.admin and operator.pairing. A client the gateway accepts with the right scopes can read and change the configuration, read conversations and work with paired devices without sending the model a single prompt. By default the gateway listens only on the loopback address (127.0.0.1) at port 18789, so the internet reaches it only when its owner binds it to another network interface or publishes it through a reverse proxy or tunnel.
  • What the honeypot recorded. Pillar Security researchers Ariel Fogel and Eilon Cohen set up a honeypot imitating a Clawdbot gateway on port 18789, and the first probes arrived within minutes. Some traffic tried prompt injection against the AI layer, which Pillar does not describe further. The more capable attackers skipped the AI entirely: they opened the gateway's WebSocket and followed three phases, reconnaissance (health, system-presence), enumeration (agents.list, sessions.list, models.list, node.list, device.pair.list) and exploitation attempts (config.get, chat.history and command execution). node.list alone made up 16% of requests, and one recorded session made nine calls in a row, from connect through config.get to cron.list. Pillar's indicators list seven source addresses, one of them responsible for about 67% of the traffic. Every probed method matches a real handler in the source code, which Pillar takes as a sign that the attackers had read it.
  • How they tried to get past the front door. Several handshakes claimed to be the official control UI (client IDs clawdbot-control-ui and moltbot-control-ui) and asked for the operator.admin, operator.approvals and operator.pairing scopes. Others pinned the protocol to version 1, which Pillar reads as aimed at releases from before January 2026, connected in the operator role without the device identity block that newer releases expect, or tried a lower-privileged user role to see whether it slipped past the checks. A separate set of requests called a tool method to run commands that would list the agent's stored session transcripts or report the current system user, or to read an operating-system release file. The gateway has no such WebSocket method, and Pillar believes these requests may have been written for CVE-2026-0755, the public vulnerability identifier for a command injection flaw in gemini-mcp-tool, an MCP (Model Context Protocol, the protocol AI assistants use to connect to external tools) server that lets AI assistants call Google's Gemini CLI. Pillar does not say how the honeypot answered, so the capture shows what attackers tried, not what they would have obtained.
  • Why calling the gateway directly pays off on real installs. Pillar's review of the source and OpenClaw's own fixes point to three weaknesses in releases from before the fixes of late January and early February 2026. First, with no gateway token or password configured, authentication fell back to a mode called none. The onboarding wizard generated a token by default, so this hit installs that skipped it or later removed authentication, and the last release before the fix would not listen beyond loopback in that state. Second, a reverse proxy such as nginx, Caddy or Traefik on the same machine connects to the gateway from 127.0.0.1; unless gateway.trustedProxies named that proxy, the gateway treated every proxied connection as a local client, which OpenClaw's fix says could bypass authentication and approve device pairing automatically. Taken together, a gateway with no token behind a public reverse proxy accepted anyone. Third, config.get returned the configuration without masking secrets: Pillar lists Anthropic and OpenAI API keys, the gateway's own token or password, and Telegram, Discord and Slack tokens.
  • What a successful attacker could take, and what was fixed. Reading the code, Pillar says a successful attack could yield those credentials, the full conversation history through chat.history and, in multi-node setups, a map of connected machines for lateral movement; the capture does not show any of it taken from a real deployment. Pillar's timeline lists seven security commits between January 13 and 26, 2026, including a Tailscale (private encrypted networking) authentication bypass fix it does not describe further. OpenClaw's changelog places the reverse proxy fix in release 2026.1.24-3. Release 2026.1.29, published January 30, 2026, made the gateway refuse WebSocket connections without a token or password (Tailscale Serve identity is still accepted), removed the none mode and renamed the npm package and command-line tool to openclaw. Masking of credentials in config.get responses followed in release 2026.2.6 on February 7, 2026.

Applicable AIDEFEND Defenses (5)

AID-I-002.001
Internal AI Network Segmentation
Very High
The gateway was built for local use, and every connection in Pillar's capture came from the internet. A host firewall or cloud security-group rule that admits port 18789 only from the owner's VPN or tailnet range, with the same restriction on any reverse proxy or tunnel that publishes the gateway, stops scanners before the WebSocket handshake, whatever the gateway's version or authentication settings. On a real gateway, that is where every recorded probe would have ended. A device inside the allowed range still reaches the gateway, so authentication is still needed behind this boundary, and a proxy or tunnel published somewhere else reopens the path.
AID-H-003.010
Deployed AI Software Vulnerability Remediation Lifecycle
Very High
Three weaknesses behind this traffic were fixed in the product itself: the fallback to no authentication, the trust given to proxied connections, and plaintext secrets in config.get responses. Upgrading every gateway to a current release, including those on personal machines and rented servers, removes all three: the gateway then refuses WebSocket connections when no token or password is set, treats proxied connections as remote unless a trusted proxy is named, and masks credential fields in configuration responses. Read the version back from the running gateway rather than the installer, then confirm that a connection without credentials is refused. The upgrade does not revoke device pairings approved before it, and it cannot take back secrets that may already have been read.
AID-H-038.002
Inference Runtime Privileged Operation Authorization
High
Require gateway authentication on the paths that carry management requests. Set a hard-to-guess gateway token, enforce authorization for privileged operations and limit access to the intended proxy or private network. Verify that a request without credentials is refused and that no device is approved automatically.
AID-E-001.001
Root & Long-Lived Credential Object Eviction
High
Pillar's source review is why a gateway that was reachable before the fixes should be treated as having lost what its configuration held: config.get returned model provider keys, the gateway's own token or password and Telegram, Discord and Slack tokens in plain text. For each such gateway, revoke and replace those credentials at the provider, messaging platform or gateway that checks them, update every legitimate client, and confirm the old values are rejected. This stops an attacker from continuing to use what they may have read; it cannot recall conversations or files already taken, and the framework's worked example covers an AWS IAM key, so each provider's own revocation steps apply.
AID-E-001.002
Issued Token, Authentication Session & Lease Revocation
High
Replacing the gateway token does not end access granted through device pairing. OpenClaw's fix says that behind an unconfigured reverse proxy, device pairing could be approved automatically because the connection looked local, and Pillar saw attackers list paired devices and probe device authentication. On each gateway that sat behind a proxy before the fix, list the paired devices with openclaw devices list, revoke the token of every device the owner cannot match to their own hardware with openclaw devices revoke for each role it holds, and confirm that a revoked device can no longer connect. This removes a foothold that would survive rotation of the shared token; it depends on the owner recognising their own devices and cannot show what a removed device already did.

What Defenders Should Do Now

  • Find every gateway and test it from outside. Locate every machine running Clawdbot, Moltbot or OpenClaw, including personal laptops and cloud servers. From a network outside your own, try to connect to port 18789 and to any reverse proxy or tunnel hostname that forwards to the gateway. If either answers, move the gateway back to the loopback address and reach it remotely through Tailscale Serve or a VPN limited to known addresses, then repeat the test until both attempts fail.
  • Upgrade, then confirm that unauthenticated connections are refused. Read the version from each running gateway. Releases before 2026.1.29 do not require a token or password, and releases before 2026.2.6 still return credentials through config.get, so upgrade anything older to the current release. After the upgrade, a WebSocket connection without credentials must be refused. Until a gateway can be upgraded, keep it unreachable from outside.
  • Use a strong token and stop trusting the proxy's address. Set gateway.auth.token to a long random value instead of relying on localhost trust. Behind nginx, Caddy or Traefik, set gateway.trustedProxies to the proxy's address, make the proxy overwrite X-Forwarded-For, and block direct access to the gateway port. Test through the proxy without a token, once with a forged X-Forwarded-For: 127.0.0.1 header; both attempts must fail.
  • If a gateway was exposed before the fixes, assume its secrets left with it. Revoke and replace the gateway token or password, the model provider API keys and the messaging bot tokens in its configuration, and confirm the old values are rejected. List paired devices with openclaw devices list and revoke the tokens of any you do not recognise with openclaw devices revoke. Reverse proxy and network flow logs can show whether the source addresses Pillar published reached the gateway and since when; they cannot show which secrets were read, so do not wait for a match before revoking.

1 additional consideration

Run OpenClaw's own security audit after every configuration change

The product's built-in audit checks the gateway's listening address and authentication settings and how Tailscale exposes it, and with --deep it also attempts a best-effort live probe of the running gateway.
Recommendation: Gateway owners can run openclaw security audit --deep (clawdbot security audit --deep on older installs) after installing, upgrading, or changing gateway, proxy or Tailscale settings, and fix every critical finding before the gateway is reachable again. The audit reads OpenClaw's own configuration and makes one best-effort probe, so it does not replace a connection test from an outside network.

Conclusion

Attackers went straight to the gateway that manages the assistant. AIDEFEND  points to keeping that interface private, requiring authentication and restricting each management action. Review device pairings and revoke credentials that an exposed gateway may have returned.

Last updated: