Learn / Safety

Why OpenClaw's AI Agents Keep Getting Hacked (It's Not the Bugs — It's the Door)

OpenClaw has shipped more than 40 security fixes so far in 2026, and researchers are still finding tens of thousands of exposed instances months later. That's not a sign the patches failed — it's a sign the vulnerability was never really a bug.

A key left sitting in an unlocked metal door knob

The short version

OpenClaw's repeated security incidents in 2026 trace back to one architectural choice: its "gateway" — the local server that holds your API keys and lets you control your agent from a browser or phone — listens on network port 18789 with authentication disabled by default. Because most people deploy OpenClaw on a cloud server or VPS so it's reachable 24/7, that unauthenticated port ends up sitting on the open internet. Patching individual bugs (and OpenClaw has patched dozens) doesn't close that door; it just fixes what someone can do once they've walked through it.

What actually happened, in order

OpenClaw's 2026 security story reads less like "one bad exploit" and more like a slow-motion demonstration of the same root cause showing up again and again. Here's the timeline, pulled from security researchers' own scans and disclosures rather than secondhand summaries:

By mid-2026, security trackers had cataloged 138+ CVE-style disclosures against OpenClaw. That volume, on its own, tells you something: this isn't a project with one bad release. It's a design that keeps generating new ways to reach the same exposed surface.

Why patches keep needing patches

The mechanism is simple once you see it. OpenClaw's "Backend" — the process that actually holds your LLM API keys and executes tool calls — runs a local WebSocket server, by default on localhost:18789. To make an agent controllable from your phone, a browser tab on another machine, or a messaging integration, that gateway has to be reachable from somewhere other than the exact machine it's running on.

OpenClaw's own documentation and multiple independent security write-ups confirm the gateway does not ship with authentication turned on by default — no login screen, no API key check. It relies instead on the assumption that only "trusted" local traffic will ever reach it. That assumption breaks the moment someone runs OpenClaw on a cloud VPS instead of a home machine, which is exactly what most real deployments do — precisely because a cloud server, unlike a laptop, is on and reachable around the clock. Independent researchers estimate 98%+ of real-world OpenClaw deployments run on cloud or VPS infrastructure for that reason.

Put those two facts together and you get the actual failure mode: an unauthenticated control port, deliberately exposed to the internet by the deployment model itself. CVE-2026-25253 was one way to abuse that door (steal the token via a malicious link, then walk through). The 40-bug 2026.2.12 release fixed many others. But each of those is a fix for a specific way of exploiting an open door — not a fix for the door being open. That's why a version bump doesn't retire the underlying risk the way it would for, say, a single buffer-overflow bug: the gateway's default posture is what needs to change, and hardening guides still tell OpenClaw operators to manually enable auth, put the gateway behind a reverse proxy, or tunnel it through SSH themselves.

The number that matters isn't the CVE count — it's the exposure count. Even after 40+ fixes and a dedicated patch for ClawJacked, tens of thousands of instances were still found openly reachable months later. That gap between "patched" and "no longer exposed" is the real story.

Network cables plugged into a server rack in a data center

What this means if you're choosing an AI agent tool

None of this is a reason to avoid AI agents generally — it's a reason to ask a more specific question than "is this safe?" The useful question is: does this tool have a network listener at all, and if so, is it authenticated by default? A few concrete ways to check any agent tool, not just OpenClaw:

How bots.team is architected differently

bots.team runs as a desktop app on your own Mac or PC. Each bot runs on your machine, on the schedule you set, and reports back inside the app — there's no gateway process listening for inbound connections from the internet, because nothing about the product needs your computer to be reachable from outside. You don't open a port to make it work, so there's no unauthenticated port to accidentally leave open. That's a structural difference, not a configuration setting someone could get wrong — the "you'd have to expose a listener for this to be a problem" scenario simply doesn't come up.

To be precise about what this claim does and doesn't cover: bots still call out to Anthropic's Claude for the actual reasoning, the same way OpenClaw calls out to whichever model provider it's configured for — that outbound connection isn't the thing at risk here. What's different is the inbound side: nothing is listening for someone else to connect in.

Question OpenClaw (typical deployment) bots.team
Runs a network listener for remote control? Yes — gateway on port 18789 No inbound listener
Authenticated by default? No — must be enabled manually N/A — nothing to authenticate against
Typical hosting Cloud VPS, reachable 24/7 (~98% of deployments) Your own desktop, runs on your schedule
Community plugin marketplace Yes — ~12% of past listed skills found malicious No open plugin marketplace

A monitor displaying lines of programming code, representing a technical security patch

FAQ

Has OpenClaw fixed this by now?

The specific bugs, largely yes — ClawJacked (CVE-2026-25253) was patched in version 2026.2.25, and the 2026.2.12 release alone closed 40+ separate issues. What hasn't changed is the default posture: the gateway still ships without authentication turned on, and hardening it is still something an operator has to do themselves, per OpenClaw's own security guidance. That's why exposure counts (63,070 live instances as of late March) stayed high well after the highest-profile bugs were fixed.

Is this an OpenClaw-specific problem, or does it apply to any self-hosted AI agent?

It applies to any tool with the same shape: a control server designed to be reachable from outside the machine it runs on, shipped with authentication off by default. OpenClaw is the highest-profile example because of its scale, but the underlying lesson — "authenticated by default" matters more than "patched frequently" — applies to evaluating any agent framework.

Does bots.team ever send my files or screen to the cloud?

Bots call Anthropic's Claude API to do their reasoning, the same way almost every AI agent tool calls out to some model provider — so relevant context does reach that API when a bot is actively working on a task. What bots.team doesn't have is a standing, internet-reachable control server on your machine that something else could connect into between runs.

What's the one question I should ask before adopting any AI agent tool?

"Does this need to run a server that's reachable from outside my machine, and if so, is it locked down by default?" If the honest answer involves "you should enable authentication" as a setup step rather than a factory default, treat that as a real risk factor — not a minor detail.

Share X LinkedIn Facebook

Put a bot on it

A free Mac & Windows app for AI bots that monitor, research, and report back. Needs a Claude subscription — free if you already have one.

Download free