# OpenClaw Security: Risks and How to Run It Securely

Source: https://truvocyber.com/blog/openclaw-security
Published: 2026-12-03
Topic cluster: Cybersecurity

> OpenClaw security risks explained: exposed gateways, CVEs, malicious ClawHub skills and prompt injection, plus a reference architecture to run OpenClaw securely.

What are the main OpenClaw security risks, and how do you run OpenClaw securely? The main OpenClaw security risks are an internet-exposed gateway, unpatched vulnerabilities, malicious skills and prompt injection, and running OpenClaw securely means a dedicated machine, a loopback-only gateway, one allowlisted user, scoped read-only credentials, vetted skills, timely updates and a tested kill switch. OpenClaw security comes down to what the agent can reach and who can send the agent instructions, because OpenClaw is an open-source, self-hosted AI agent that holds chat accounts, workspace files, shell access and model credentials on its host.

At a glance

- **Checked:** 2026-12-02

- **What it is:** an MIT-licensed agent, formerly called Clawdbot and Moltbot ([NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-25253)), described by the maintainers as *local-first agent infrastructure for trusted operators* ([SECURITY.md](https://github.com/openclaw/openclaw/blob/main/SECURITY.md)).

- **Trust model:** one trust boundary per gateway. One gateway shared by mutually untrusted users is not supported ([docs](https://docs.openclaw.ai/gateway/security/trust-model)).

- **Advisories:** 723 published GitHub security advisories, 14 rated critical and 250 high, published January 31 to November 19, 2026 ([GitHub](https://github.com/openclaw/openclaw/security/advisories)).

- **Internet exposure:** 21,639 publicly reachable instances found by Censys on January 31, 2026 ([Censys](https://censys.com/blog/openclaw-in-the-wild-mapping-the-public-exposure-of-a-viral-ai-assistant/)).

- **Skill supply chain:** 341 malicious skills found in an audit of 2,857 ClawHub skills ([The Hacker News](https://thehackernews.com/2026/02/researchers-find-341-malicious-clawhub.html)).

- **Defaults to check:** the gateway binds to `127.0.0.1:18789` on regular hosts and to `0.0.0.0` in containers ([docs](https://docs.openclaw.ai/gateway/security/network-exposure)). Sandboxing is off by default ([docs](https://docs.openclaw.ai/gateway/sandboxing)).

- **Built-in check:** `openclaw security audit --deep` ([docs](https://docs.openclaw.ai/gateway/security/running-the-audit)).

## What Can an OpenClaw Agent Reach on Its Host?

An OpenClaw agent can reach everything the gateway process and tools can reach: every connected chat account, the workspace and memory files, the host shell through the exec tool, and the model credentials.

OpenClaw component
What it does
Security relevance

Gateway
One long-lived process that *owns all messaging surfaces* (WhatsApp, Telegram, Slack, Discord, Signal, iMessage, WebChat) ([docs](https://docs.openclaw.ai/concepts/architecture))
Every connected chat account is a way to send the agent instructions

Control plane
macOS app, CLI, web UI and automations connect over WebSocket, default `127.0.0.1:18789` ([docs](https://docs.openclaw.ai/concepts/architecture))
A reachable port is a remote-control target

Nodes
macOS, iOS, Android or headless devices that connect with declared capabilities and commands ([docs](https://docs.openclaw.ai/concepts/architecture))
Each node extends the agent's reach to another device

Workspace
`~/.openclaw/workspace`, holding `AGENTS.md`, `SOUL.md` (persona and boundaries), `MEMORY.md` and daily memory files ([docs](https://docs.openclaw.ai/concepts/agent-workspace))
Changing these files changes the agent's behavior in every later session

Skills
Markdown instruction files (`SKILL.md`) installed with `openclaw skills install` ([docs](https://docs.openclaw.ai/tools/skills))
Third-party instructions and code with the agent's access

Automations
Built-in scheduler that *persists jobs, wakes the agent at the right time* ([docs](https://docs.openclaw.ai/automation/cron-jobs))
A place for planted instructions to persist

Exec tool
Runs commands on the gateway or node host ([docs](https://docs.openclaw.ai/tools/exec-approvals))
Default security mode is `full` on gateway and node hosts, with approval prompts `off`

The workspace is *the **default cwd**, not a hard sandbox*, so absolute paths reach the rest of the host unless `agents.defaults.sandbox` is enabled ([docs](https://docs.openclaw.ai/concepts/agent-workspace)). Even with sandboxing on, *the Gateway process itself remains unsandboxed* ([docs](https://docs.openclaw.ai/gateway/sandboxing)).

Key insight

**Chat access equals OpenClaw tool access**

*Everyone who can message a tool-enabled agent shares that agent's delegated tool authority* ([docs](https://docs.openclaw.ai/gateway/security/trust-model)). Every member of a group chat that includes the OpenClaw agent holds the agent's permissions.

## What Are the Main OpenClaw Security Risks?

The main OpenClaw security risks are an internet-reachable gateway, vulnerabilities in gateway and sandbox code, malicious skills, and prompt injection through content the agent reads. All four hand the agent's access to an attacker.

OpenClaw security risk
How the attack works
Main control

Exposed gateway
Attacker reaches port 18789 and abuses a weak token or unpatched flaw
Loopback bind, strong token

Unpatched vulnerabilities
Known flaws in auth, sandbox or approval code
Track advisories, update promptly

Malicious skills
A ClawHub skill installs malware or instructs the agent to misbehave
Install only skills the team wrote or reviewed

Prompt injection
An email, document or web page carries instructions the agent follows
Limit tools and credentials, separate reader agent, monitoring

### How Many OpenClaw Gateways Are Exposed on the Internet?

Tens of thousands of OpenClaw gateways were reachable from the internet in early 2026, according to three research teams using different methods and dates:

- **Censys:** 21,639 instances on January 31, 2026. Most *still require a token value* ([Censys](https://censys.com/blog/openclaw-in-the-wild-mapping-the-public-exposure-of-a-viral-ai-assistant/)).

- **Bitsight:** *more than 30000 distinct instances* on port 18789 from January 27 to February 8, 2026. The Bitsight test instance accepted a trivial token such as `a`, and honeypot probes *arrived within minutes* ([Bitsight](https://www.bitsight.com/blog/openclaw-ai-security-risks-exposed-instances)).

- **SecurityScorecard STRIKE:** 42.9K unique IPs across 82 countries, 15.2K flagged as RCE-vulnerable ([SecurityScorecard](https://securityscorecard.com/blog/beyond-the-hype-moltbots-real-risk-is-exposed-infrastructure-not-ai-superintelligence/)).

Watch out

**OpenClaw containers bind the gateway to 0.0.0.0 by default**

Container deployments need the most attention: `gateway.bind` defaults to `"loopback"` on regular hosts and to `"auto"` (`0.0.0.0`) in containers ([docs](https://docs.openclaw.ai/gateway/security/network-exposure)). Non-loopback startup *requires configured auth and fails closed without it*, and the docs prefer Tailscale Serve over LAN binds.

### Which OpenClaw Vulnerabilities and CVEs Matter Most?

OpenClaw had 723 published GitHub security advisories on December 2, 2026: 14 critical, 250 high, 390 medium and 69 low, and only 39 of them carry a CVE ID ([GitHub](https://github.com/openclaw/openclaw/security/advisories)). No OpenClaw, Clawdbot or Moltbot entry appeared in the CISA Known Exploited Vulnerabilities catalog on the same date (KEV release of November 30, 2026) ([CISA](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)).

Several OpenClaw advisories hit the controls an operator depends on, such as gateway auth, the sandbox and exec approvals:

OpenClaw advisory
Issue
Severity
Fixed in

[CVE-2026-25253](https://nvd.nist.gov/vuln/detail/CVE-2026-25253)
Gateway URL taken from a query string, auto-connects over WebSocket and sends a token
8.8 High
2026.1.29

[CVE-2026-25593](https://nvd.nist.gov/vuln/detail/CVE-2026-25593)
Unauthenticated local client writes config via `config.apply`, leading to command injection
8.4 High
2026.1.20

[CVE-2026-24763](https://nvd.nist.gov/vuln/detail/CVE-2026-24763)
Command injection in the Docker sandbox through PATH handling
8.8 High
2026.1.29

[GHSA-4jpw-hj22-2xmc](https://github.com/openclaw/openclaw/security/advisories/GHSA-4jpw-hj22-2xmc)
Pairing-scoped device tokens could mint `operator.admin` and reach node RCE
9.9 Critical
2026.3.11

[CVE-2026-26325](https://github.com/openclaw/openclaw/security/advisories/GHSA-h3f9-mjwj-w476)
Node host `system.run` mismatch can bypass allowlist and approvals
High
2026.2.14

[GHSA-9p3r-hh9g-5cmg](https://github.com/openclaw/openclaw/security/advisories/GHSA-9p3r-hh9g-5cmg)
Sandbox escape via a race condition in the remote file system bridge
Not scored
2026.3.31

Version currency is an OpenClaw security control: a sandbox or approval setting protects only as well as the release enforcing the setting.

### Are ClawHub Skills Safe to Install for OpenClaw?

OpenClaw's own docs say to *Treat third-party skills as **untrusted code**. Read them before enabling* ([docs](https://docs.openclaw.ai/tools/skills)). Research on ClawHub, the public skill registry, found real malware:

- **Koi Security (ClawHavoc campaign):** 341 malicious skills out of 2,857 audited, 335 of which used fake prerequisites to install the Atomic Stealer (AMOS) macOS infostealer ([The Hacker News](https://thehackernews.com/2026/02/researchers-find-341-malicious-clawhub.html)).

- **VirusTotal:** of more than 3,000 skills analyzed, *hundreds of them show malicious characteristics*, and one ClawHub user accounted for 314 of them ([VirusTotal](https://blog.virustotal.com/2026/02/from-automation-to-infection-how.html)).

- **OpenClaw's response:** VirusTotal scanning on ClawHub with daily re-scans of active skills. The announcement adds: *A skill that uses natural language to instruct an agent to do something malicious won't trigger a virus signature* ([OpenClaw](https://www.openclaw.ai/blog/virustotal-partnership)).

Registry scanning catches known malware. A skill written as plain instructions still needs a human reviewer.

**Running OpenClaw or other AI agents and not sure what an attacker could reach?** [Book Your Strategy Call](/contact-us) for a security architecture review, or start with an [AI penetration test](/services/ai-penetration-testing).

### How Does Prompt Injection Work Against OpenClaw?

Prompt injection reaches OpenClaw through anything the agent reads. The docs state: *even if only you can message the bot, any untrusted content it reads...can carry adversarial instructions*, and smaller, cheaper models *are more susceptible* ([docs](https://docs.openclaw.ai/gateway/security/prompt-injection)).

Zenity Labs showed a full chain with *no software vulnerability* required ([Zenity Labs](https://labs.zenity.io/p/openclaw-or-opendoor-indirect-prompt-injection-makes-openclaw-vulnerable-to-backdoors-and-much-more)):

1. A document carries hidden instructions.

2. The agent adds an attacker-controlled Telegram bot integration.

3. The attacker edits `SOUL.md` and adds a scheduled task that re-injects instructions.

4. The chain ends with a Sliver C2 beacon on the host.

Watch out

**OpenClaw usually does not count prompt injection alone as a vulnerability**

The OpenClaw security policy lists *Prompt injection without a policy, auth, approval, sandbox, or tool-boundary bypass* as usually not a vulnerability ([SECURITY.md](https://github.com/openclaw/openclaw/blob/main/SECURITY.md)), so containment is the operator's job.

## How Are Governments and Companies Responding to OpenClaw Security Concerns?

Several governments and large employers issued OpenClaw warnings or restrictions in early 2026:

- **China's CNCERT/CC** warned about prompt injection and data deletion, and recommended keeping the management port off the internet and keys out of plaintext environment variables ([CGTN](https://news.cgtn.com/news/2026-03-10/China-s-internet-emergency-center-issues-OpenClaw-security-alert-1Lp96HIJQyY/share_amp.html)).

- **Hong Kong's Digital Policy Office** told government departments not to install OpenClaw on computers connected to government networks ([RTHK](https://news.rthk.hk/rthk/en/component/k2/1847482-20260316.htm)).

- **Kakao, Naver and Danggeun** in South Korea restricted OpenClaw on corporate networks and work devices ([Bizhankook](https://en.bizhankook.com/articles/31431.html)).

For most companies the first step is inventory: finding OpenClaw installs on employee laptops with access to work accounts.

## How to Run OpenClaw Securely: Controls by Lifecycle Function

Running OpenClaw securely applies the identify, protect, detect, respond and recover lifecycle from the [agentic AI security architecture guide](/blog/agentic-ai-security-architecture) to the settings OpenClaw provides.

Lifecycle function
OpenClaw security controls

Identify
Find every install, including on employee laptops. List connected channels, nodes, skills, automations and credentials. Run `openclaw security audit --deep` ([docs](https://docs.openclaw.ai/gateway/security/running-the-audit)).

Protect
One dedicated host or VM per trust boundary. `gateway.bind: "loopback"` with token auth. DM policy `allowlist` or `pairing` ([docs](https://docs.openclaw.ai/channels/pairing)). Exec set to `deny` or `allowlist` with `ask: "always"`, `tools.exec.strictInlineEval` on ([docs](https://docs.openclaw.ai/tools/exec-approvals)). Sandboxing on. `exec`, `browser`, `web_fetch` and `web_search` disabled unless needed, and a read-only reader agent for untrusted content ([docs](https://docs.openclaw.ai/gateway/security/prompt-injection)). Own or reviewed skills only. Read-only credentials scoped to the task.

Detect
Weekly review of the agent's actions. Alerts on changes to `SOUL.md`, `AGENTS.md`, skills and automations. New advisories tracked.

Respond
A written kill switch that stops the host and revokes every credential the agent holds.

Recover
Host snapshots, credential rotation, a fixed release, a reviewed restart.

The OpenClaw docs publish a hardened baseline configuration ([docs](https://docs.openclaw.ai/gateway/security/hardened-baseline)):

```
{
  gateway: { mode: "local", bind: "loopback", auth: { mode: "token", token: "replace-with-long-random-token" } },
  session: { dmScope: "per-channel-peer" },
  tools: {
    profile: "messaging",
    deny: ["group:automation", "group:runtime", "group:fs", "sessions_spawn", "sessions_send"],
    fs: { workspaceOnly: true },
    exec: { security: "deny", ask: "always" },
    elevated: { enabled: false },
    sessions: { visibility: "agent" },
    agentToAgent: { enabled: false },
  },
  channels: { whatsapp: { dmPolicy: "pairing", groups: { "*": { requireMention: true } } } },
}
```

Key insight

**The OpenClaw hardened baseline reduces capability but does not isolate users**

The docs call these settings *defense in depth that reduces direct capability for a requester, not as hostile multi-user isolation*. The host, network and credential design around OpenClaw does the containment. The [OpenClaw security best practices checklist](/blog/openclaw-security-best-practices) turns these controls into a step-by-step list.

## OpenClaw Reference Architecture: The Locked-Down Design We Built and Tested

The OpenClaw reference architecture below puts the agent in a dedicated VM with no inbound ports, one allowed user, read-only credentials and a kill switch. We built this design in our lab on a Mac mini and tested each setting. The step-by-step build is in [How to Set Up OpenClaw Safely on a Mac](/blog/set-up-openclaw-safely-mac), and the surprises are in [OpenClaw Security Audit: What We Found in a Default Install](/blog/openclaw-security-audit-default-install). Docker or a VPS can replace the VM.

![OpenClaw secure reference architecture: OpenClaw in a dedicated macOS VM on a Mac mini, gateway bound to loopback, Slack Socket Mode outbound only, one allowlisted user, read-only credentials, Vertex AI models through a restricted service account, action log review, snapshots and a kill switch](/hubfs/blog-diagrams/openclaw-secure-architecture-local.webp)

Figure: OpenClaw secure reference architecture in a dedicated VM on a Mac mini, based on the Truvo OpenClaw lab. Click to enlarge.

- **Dedicated VM:** a Lume macOS VM on a Mac mini, separate from any work laptop, as the trust boundary (*one OS user/host/VPS per boundary*, [docs](https://docs.openclaw.ai/gateway/security/trust-model)).

- **Loopback gateway:** `gateway.bind` is `"loopback"` with a long random token, so port 18789 is unreachable from the network.

- **Slack Socket Mode:** chat goes through a Slack app in Socket Mode, which opens an outbound connection, so the VM accepts no inbound traffic. OpenClaw's Slack channel uses Socket Mode by default ([docs](https://docs.openclaw.ai/channels/slack)).

- **One allowlisted user:** DM access is limited to one named user, and the agent is kept out of shared channels, so only that person shares the agent's tool authority.

- **Agent's own read-only credentials:** the agent gets dedicated accounts and tokens, read-only and scoped to the task, never a person's login.

- **Own skills only:** no ClawHub installs, and every skill is written in-house and reviewed like code.

- **Models via Google Vertex AI:** through the `anthropic-vertex` or `google-vertex` provider ([docs](https://docs.openclaw.ai/plugins/reference/anthropic-vertex), [docs](https://docs.openclaw.ai/plugins/reference/google)), with a service account limited to the Vertex AI User role and a billing budget on the project.

- **Weekly action log review:** a person reads what the agent did each week in the Gateway logs, which OpenClaw writes as one JSON object per line and tails with `openclaw logs --follow` ([docs](https://docs.openclaw.ai/gateway/logging)).

- **Snapshots:** VM snapshots give a known-good state to roll back to.

The OpenClaw kill switch has four steps, written down before the agent goes live:

1. Stop the VM.

2. Revoke the Slack app.

3. Disable the Vertex AI service account key.

4. Revoke every OAuth grant the agent holds.

## How Do OpenClaw Security Controls Map to SOC 2 and ISO 27001?

The OpenClaw controls above produce evidence for existing frameworks:

OpenClaw control
SOC 2
ISO 27001:2022

Own identity, allowlisted user, read-only scoped credentials
CC6.1 logical access
A.5.15 access control

Action log review, advisory tracking, file change alerts
CC7.2 monitoring for anomalies
A.8.16 monitoring activities

Reviewed in-house skills, pinned and updated releases, config in version control
CC8.1 change management
A.8.32 change management

ISO/IEC 42001 covers the AI management system around OpenClaw (inventory, risk assessment, ownership), with these controls as technical evidence.

### Get Your AI Agents Architecture-Reviewed

An effective security program covers every AI agent your team runs, from design to testing.

[Book Your Strategy Call](/contact-us)

## What Does OpenClaw Security Come Down To? Reach and Containment

Every OpenClaw security risk turns the agent's real access against the agent's owner. A dedicated host, a closed network path, one trusted sender, narrow credentials, reviewed skills and a rehearsed kill switch keep the worst outcome small and known. The [Is OpenClaw Safe?](/blog/is-openclaw-safe) post gives the short answer for teams deciding whether to allow OpenClaw at all.

If your team is running OpenClaw or other AI agents and a customer is asking how the agents are secured, Truvo designs and tests these controls. [Book a security architecture review](/contact-us) or start with an [AI penetration test](/services/ai-penetration-testing) of the agent's real data sources. For the build, see [How to Set Up OpenClaw Safely on a Mac](/blog/set-up-openclaw-safely-mac), and for background, [What Is OpenClaw?](/blog/what-is-openclaw).

## Frequently Asked Questions About OpenClaw Security

### Is OpenClaw safe to use?

OpenClaw can be run securely by a single trusted operator on a dedicated, patched host with a loopback-only gateway, allowlisted chat access, scoped credentials and reviewed skills. The OpenClaw maintainers describe the project as infrastructure for trusted operators, and OpenClaw does not support one gateway shared by mutually untrusted users.

### What are the biggest OpenClaw security risks?

The biggest OpenClaw security risks are an internet-reachable gateway, unpatched vulnerabilities in auth and sandbox code, malicious ClawHub skills, and prompt injection through emails, documents or web pages the agent reads. All four hand an attacker the agent's access to chat accounts, files and the host shell.

### Does OpenClaw have known vulnerabilities?

Yes. OpenClaw had 723 published GitHub security advisories on December 2, 2026, 14 rated critical, including CVE-2026-25253, a token exfiltration flaw fixed in 2026.1.29. None was in the CISA Known Exploited Vulnerabilities catalog on that date (KEV release of November 30, 2026). Staying on the latest release is a core control.

### Are ClawHub skills safe to install?

ClawHub skills are third-party code, and OpenClaw's docs say to treat them as untrusted. Researchers found 341 malicious skills in an audit of 2,857, mostly delivering a macOS infostealer. ClawHub now scans skills with VirusTotal, but instruction-only attacks pass signature scans, so read every skill before enabling the skill.

### How do I check an OpenClaw install for security issues?

Run `openclaw security audit --deep` for a live gateway check. The audit reviews DM and group policies, allowlists, gateway auth, token strength, browser control endpoints, file permissions and plugin allowlists, and `--fix` applies safe remediations.

### Can prompt injection be prevented in OpenClaw?

Prompt injection cannot be fully prevented, and OpenClaw treats injection alone as out of scope for vulnerability fixes. Containment limits the damage: disable unneeded tools, use a read-only reader agent for untrusted content, keep exec on deny or approval, and review the agent's actions.

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Is OpenClaw safe to use?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "OpenClaw can be run securely by a single trusted operator on a dedicated, patched host with a loopback-only gateway, allowlisted chat access, scoped credentials and reviewed skills. The OpenClaw maintainers describe the project as infrastructure for trusted operators, and OpenClaw does not support one gateway shared by mutually untrusted users."
      }
    },
    {
      "@type": "Question",
      "name": "What are the biggest OpenClaw security risks?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "The biggest OpenClaw security risks are an internet-reachable gateway, unpatched vulnerabilities in auth and sandbox code, malicious ClawHub skills, and prompt injection through emails, documents or web pages the agent reads. All four hand an attacker the agent's access to chat accounts, files and the host shell."
      }
    },
    {
      "@type": "Question",
      "name": "Does OpenClaw have known vulnerabilities?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. OpenClaw had 723 published GitHub security advisories on December 2, 2026, 14 rated critical, including CVE-2026-25253, a token exfiltration flaw fixed in 2026.1.29. None was in the CISA Known Exploited Vulnerabilities catalog on that date (KEV release of November 30, 2026). Staying on the latest release is a core control."
      }
    },
    {
      "@type": "Question",
      "name": "Are ClawHub skills safe to install?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "ClawHub skills are third-party code, and OpenClaw's docs say to treat them as untrusted. Researchers found 341 malicious skills in an audit of 2,857, mostly delivering a macOS infostealer. ClawHub now scans skills with VirusTotal, but instruction-only attacks pass signature scans, so read every skill before enabling the skill."
      }
    },
    {
      "@type": "Question",
      "name": "How do I check an OpenClaw install for security issues?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Run openclaw security audit --deep for a live gateway check. The audit reviews DM and group policies, allowlists, gateway auth, token strength, browser control endpoints, file permissions and plugin allowlists, and --fix applies safe remediations."
      }
    },
    {
      "@type": "Question",
      "name": "Can prompt injection be prevented in OpenClaw?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Prompt injection cannot be fully prevented, and OpenClaw treats injection alone as out of scope for vulnerability fixes. Containment limits the damage: disable unneeded tools, use a read-only reader agent for untrusted content, keep exec on deny or approval, and review the agent's actions."
      }
    }
  ]
}
