OpenClaw Security: Risks & Best Practices
OpenClaw is moving beyond the idea of an AI chatbot. It runs on your machine, connects to the chat apps you already use, and can browse, execute tools, manage files, and continue work across sessions. That capability makes it useful, but it also creates a security responsibility that ordinary chat software does not carry.
Because OpenClaw can take actions on a user’s behalf, its developers are treating security as a core requirement as the project grows. They have reduced the package size and dependency count, improved tool handling across model runtimes, and partnered with NVIDIA to inspect skills for hidden instructions, unsafe capabilities, and code that does not match their stated purpose.
But stronger safeguards in the project do not remove the risks created by running an autonomous agent with access to your systems. Therefore, this article explains OpenClaw’s main security risks, safer deployment choices, and practical controls for running it with less exposure.
#What Is OpenClaw?
OpenClaw is a free, open-source AI agent that runs on your own computer or server. Unlike a standard chatbot that only responds inside a browser, OpenClaw can carry out tasks through integrated applications and system tools. You can message it through WhatsApp, Telegram, Discord, Slack, Signal, or another chat app, then ask it to handle work in the background.
OpenClaw supports macOS, Windows, and Linux. Users can install it through a desktop application, a one-line installer, npm, or a developer-focused Git installation that lets them work directly with the source code and customize the setup. The desktop applications install the gateway, chat interface, setup tools, Node.js, and other required components together.
The project promotes personal control over memories, skills, models, machines, and data. Since OpenClaw is self-hosted, these resources stay within the user’s chosen environment instead of being managed through a separate hosted assistant service. OpenClaw does not use a subscription-based hosted tier.
OpenClaw’s appeal comes from combining natural-language interaction with access to files, software, online services, and everyday communication tools. That combination makes OpenClaw more capable than a chatbot, but it also means that its setup and security controls need careful attention.
#What Does OpenClaw Do?
OpenClaw can organize an inbox, summarize messages, send emails, manage a calendar, check flight details, browse websites, read files, and run terminal commands. It can also connect to external APIs and use models from providers such as OpenAI, Anthropic, and DeepSeek. This gives users control over where the agent runs, which model it uses, and which services it can access. The following are some of OpenClaw’s major functionality features
#Running on Your Machine
OpenClaw works on macOS, Windows, and Linux. You can connect it to hosted or local AI models, while its stored information is on the machine or server where you run it.
#Working Through Chat Apps
You can talk to OpenClaw through WhatsApp, Telegram, Discord, Slack, Signal, iMessage, and other supported channels. It can handle direct messages and group conversations.
#Remembering Information Between Sessions
OpenClaw can retain preferences, projects, and contact details from one conversation to the next.
#Working with Files, Websites, and Commands
OpenClaw can browse the web, fill in forms, read and write files, and run shell commands. You can configure its access level or run it inside a sandbox.
#Supporting Shared Access
Several users can connect to one gateway, open shared sessions, and guide the agent through group conversations.
#Supporting Skills and Plugins
OpenClaw can use community-built skills or custom skills created for specific tasks. For example, a skill can connect it to a calendar, email service, project management tool, spreadsheet, or external API. This lets OpenClaw follow the instructions and use the tools required for a particular workflow.
Scalable VPS Hosting
Deploy fast, secure VPS for websites, apps, and dev environments. Scale on demand, manage with full root access, and get 24/7 expert support.
#How OpenClaw Works Under the Hood
OpenClaw uses a Gateway service as its central control plane. The Gateway handles session management, request routing, and communication with supported channels such as WhatsApp, Telegram, Discord, Slack, WebChat, and the command-line interface. When a user sends an instruction, the Gateway authenticates the request, identifies the relevant session, and passes it to the agent runtime. Local requests are trusted by default, while pairing rules, allowlists, and mention requirements can restrict access from users and group chats.
The agent runtime is the execution engine. It interprets the instruction, creates a task plan, selects the required tools, and processes the results returned by each action. Depending on the request, it may use browser automation, file operations, shell commands, API calls, or media processing. It can then continue the task based on the output from those tools.
OpenClaw extends this runtime through skills and plugins. Skills are reusable procedures that the agent loads when a task requires them. Plugins can add channels, model providers, and additional tools. Since these extensions may receive access to system resources, they should be reviewed before installation.
OpenClaw also maintains persistent session state and memory across conversations. Direct messages generally use a shared main session, while group chats can use separate sessions. This lets the agent refer to earlier context, but it also means that information from previous sessions may affect later tasks.
#Why Does OpenClaw Pose Security Risks?
OpenClaw represents a potential security risk because it combines three capabilities that are usually kept separate: access to private data, the ability to process external content, and the ability to communicate with other systems. It can read local files, use browser sessions, call APIs, send messages, and run commands on the host machine. If an attacker influences the instructions it receives, the agent may become a path into the systems connected to it.
Here are a few conditions that make OpenClaw especially risky:
#Autonomous Actions Increase the Impact of Mistakes
Its autonomy increases the impact of mistakes. A chatbot may produce an incorrect answer, but OpenClaw can act on an incorrect instruction by deleting files, sending messages, changing records, or making external requests. If the agent runs scheduled tasks or continues a multi-step workflow, one bad decision can lead to several actions before a user notices.
#Broad Permissions Increase the Potential Damage
OpenClaw effectively inherits the permissions of the account that runs it. A setup with shell access, broad file permissions, browser sessions, API keys, or cloud credentials gives the agent a large operating range, so if the agent becomes manipulated or compromised, an attacker may use those permissions to access data and services that were never intended to be part of the original task.
#Misconfiguration Creates Additional Exposure
Configuration adds another source of risk. Users may expose the Gateway, leave authentication incomplete, store secrets in accessible files, or install extensions without reviewing their code. A deployment can therefore become unsafe even when the OpenClaw software itself has not been attacked. Security depends on the full setup: the host, network access, credentials, plugins, model providers, and data sources.
These conditions create several distinct attack paths, from manipulated instructions and unsafe extensions to exposed network services, excessive permissions, and stolen credentials.
#What Are the Biggest Security Risks of OpenClaw?
The access and permissions that OpenClaw is afforded make it an attractive target to bad actors due to the variety of ways it can be manipulated and thereby utilized.
#Prompt Injection and Hijacked Instructions
Prompt injection happens when an attacker hides instructions inside content that OpenClaw is asked to process. The content may come from a web page, email, document, chat message, or browser session. For example, an attacker could hide instructions in a web page that OpenClaw is asked to read. Those instructions might tell the agent to disregard the user’s original request, search specific folders for sensitive files, and send the findings to an external server.
The danger comes from the agent’s difficulty in separating data from instructions. OpenClaw may treat text found on a page or inside an email as part of the task rather than as untrusted content. If the injected instruction is followed, the agent may browse to another site, run a shell command, change stored information, or send data through an API.
This attack does not require the attacker to access the OpenClaw host directly. The attacker only needs to control, or influence, content that the agent will read. Researchers have also demonstrated prompt-injection attacks that target agents operating on social platforms and attempt to make them send API requests.
#Malicious Skills from the Plugin Registry
OpenClaw skills extend the agent with procedures for applications, APIs, and workflows. The security issue is that a skill runs within the agent’s operating context and may inherit access to files, browser sessions, credentials, shell commands, and connected services.
A malicious skill can appear useful while carrying out hidden actions in the background. It may collect API keys, read browser cookies, download another payload, or send local data to an attacker-controlled server. Some deceptive skills also instruct users to copy commands into a terminal, turning the installation process into the infection route.
ClawHub, the public registry for OpenClaw skills, has been used to distribute malicious packages disguised as productivity tools, coding helpers, trading bots, and security utilities. The ClawHavoc campaign showed how a public skill marketplace can become a supply-chain target: attackers publish extensions under convincing names, prey on the user’s trust, and use the skill’s access to compromise the host.
#Excessive Permissions and Privilege Escalation
OpenClaw becomes more dangerous when it receives broader permissions than its task requires. A user may intend to give it access to one project folder, but the process may also inherit permission to read other files, inspect environment variables, use saved browser sessions, execute shell commands, and access cloud services.
Security research found cases where a narrow setup exposed more of the filesystem than expected. This creates a large blast radius: once an attacker controls the agent, the attacker may move from one permitted resource to other files, accounts, or services available to the same user.
Privilege escalation can also happen through credentials. An API key, SSH key, session token, or cloud credential stored on the host may give the agent access beyond the original workstation. If the OpenClaw process runs with administrative privileges, a malicious instruction may also affect system files, install software, create persistence, or change security settings.
#Exposed Instances on the Public Internet
The OpenClaw Gateway is intended to coordinate sessions and tool use, but exposing its dashboard or control interface to the public internet creates an external attack surface. Attackers can scan for exposed instances, test authentication, exploit software vulnerabilities, and attempt to take control of the agent.
Misconfigured deployments may bind the Gateway to a public network interface, use weak authentication, or rely on localhost protections that do not hold when a browser or another service is involved. Earlier vulnerabilities showed how a malicious website could abuse a local OpenClaw instance, obtain an authentication token, and use the agent connection for unauthorized actions.
A compromised exposed instance can provide more than access to the OpenClaw interface. It may give an attacker a route to the host machine, local files, stored secrets, browser sessions, connected APIs, and other services reachable from that system.
#Credential and Data Exfiltration
OpenClaw may handle API keys, OAuth tokens, SSH keys, browser cookies, email content, documents, session histories, and configuration files. These resources are valuable because they can provide direct access to other systems.
Credential theft can follow several routes. A malicious skill may read local configuration files, an injected instruction may direct the agent to search for secrets, or an exposed Gateway may give an attacker access to stored session data. Secrets may also exposed in logs, backups, prompts, or tool output. Once an attacker copies these secrets, they can use them from another system to access integrated services. You may then need to revoke and replace the affected tokens while tracing how the compromise happened.
Data exfiltration does not always look like a large file transfer. An agent can send small pieces of information through email, a chat message, an API request, or a web form. It may also collect data over several tasks while appearing to perform normal work. This makes outbound monitoring, credential protection, and strict data access controls essential for any OpenClaw deployment.
#Best Practices for Securing OpenClaw
None of those risks are an inevitability. There is a great deal you can do on a set up level, as well as in exercising caution in managing OpenClaw to mitigate any potential exposure. The following are just some examples of controls you can apply to reduce OpenClaw’s attack surface and limit any damage if the agent does become compromised.
#Restrict Network Access
- Bind the Gateway to 127.0.0.1, not 0.0.0.0, and use SSH port forwarding or a private VPN for remote access. This prevents internet scanners and unknown users from reaching the control interface.
- Configure the firewall to deny incoming traffic by default and expose only required ports. This reduces the number of services attackers can probe.
- Check the Gateway with
ss -tulpnand confirm it listens on 127.0.0.1:18789, not 0.0.0.0:18789.
#Apply Least Privilege
- Create a dedicated operating-system user for OpenClaw and never run it as root. This limits the damage caused by a compromised agent.
- Give it access only to required folders and commands. Block paths such as ~/.ssh, ~/.aws, ~/.kube, /etc, and /var/run/docker.sock to prevent access to private keys, cloud credentials, and system controls.
- Require confirmation from an authorized human operator before file deletion, external messages, shell commands, financial actions, or production changes. This adds human review before high-impact operations.
#Isolate the Runtime
- Run OpenClaw in Docker or another sandbox under a non-root user. Make its filesystem read-only, remove system privileges the agent does not need, and restrict its network access to approved services. These controls reduce the chance that a compromised agent can modify the host system, access unrelated files, or attack other services.
- Mount only required working directories. Never mount the entire home directory or Docker socket, because either can expose the host to serious compromise.
#Vet Skills and Dependencies
- Review each skill’s source code, installation commands, publisher, dependencies, and requested permissions before installation. This reduces supply-chain risk from malicious extensions.
- Pin approved skills to known versions or hashes. This prevents silent updates from introducing unsafe code.
#Protect Credentials and Monitor Activity
- Store API keys, OAuth tokens, and SSH keys outside readable agent directories. Use environment variables or a secret manager, restrict files to mode 600, and rotate exposed credentials.
- Keep OpenClaw and its dependencies updated, then review logs for unusual commands, file access, login attempts, skill installations, and API usage spikes. This helps identify compromise before damage spreads.
#Isolate Browser Automation
- Restrict browser automation to approved domains and use read-only sessions where possible. Do not let OpenClaw browse arbitrary websites while logged in to sensitive accounts.
- For Docker deployments that use browser tools, assign explicit shared memory with shm_size so browser processes do not fail unpredictably.
Also Read: OpenClaw Cost Guide
#How Should You Deploy OpenClaw Safely?
The most general rule is to not install OpenClaw on your main work computer. A compromised agent could access browser sessions, files, SSH keys, source code, and saved credentials on that device, so it’s best to use a separate server for OpenClaw activities, and keep your daily work environment isolated.
For stronger isolation, deploy OpenClaw on a dedicated VPS rather than a local virtual machine. Create a separate non-root user for the service, disable root SSH login, and use SSH keys instead of passwords. Take a VPS snapshot before major configuration or update changes so you can restore the deployment if a change causes a problem.
A provider such as Cherry Servers can supply a separate VPS or dedicated server for this deployment. Running OpenClaw on one of these environments keeps it away from your primary workstation and gives you total control over the operating system, firewall, user permissions, container setup, and network rules, enabling you to apply management controls and any required damage mitigation in a safe environment.
Additionally, it’s best practice to keep the Gateway private after installation. Bind it to 127.0.0.1 so it listens only on the VPS, then use SSH port forwarding or a private VPN such as Tailscale for administration. Do not publish port 18789 or the dashboard on a public network interface.
You can further add a host firewall with incoming traffic denied by default. Permit only the SSH access method and other services the VPS genuinely needs, then restrict outbound traffic to approved model providers, APIs, repositories, and monitoring services. This reduces the chance that a compromised agent can contact an attacker-controlled server.
#Should You Allow OpenClaw in Your Organization?
Whether you run OpenClaw across your business depends on the level to which your organization can control the data, permissions, software supply chain, and response process around the agent, and how quickly and effectively it can respond to a potential danger.
We recommend assessing the following factors before introducing OpenClaw into your organization.
- Data sensitivity: Assess whether OpenClaw would handle regulated data, customer records, private keys, financial information, or confidential documents.
- Isolation and least privilege: Assess whether your organization can run OpenClaw on a dedicated VPS or sandbox with a non-root account, restricted filesystem access, and only the required service connections.
- Skill approval: Assess whether your security process can review each skill, plugin, dependency, and update before installation, then maintain an approved list.
- Monitoring and response: Assess whether you can record tool calls, file access, login attempts, and configuration changes, then respond by isolating the VPS from the network, terminating the OpenClaw process or container, preserving logs, revoking and replacing exposed credentials, and redeploying from a trusted system image.
#Why Use Cherry Servers for OpenClaw?
Cherry Servers provides cloud VPS, virtual dedicated servers, and dedicated bare metal that can host an isolated OpenClaw deployment with full customizability and manual control. You can select a separate server, choose its location, manage it through a portal or API, and automate provisioning with tools such as Terraform and Ansible. This means you can run OpenClaw away from your main workstation, under a dedicated non-root account, with its own firewall and private Gateway configuration.
Cherry Servers also offers multiple data-center locations and 24/7 technical support, which can help with infrastructure management. However, you must still configure OpenClaw, network access, credentials, and monitoring securely.
If you’re ready to run OpenClaw in an isolated environment, sign up for Cherry Servers and deploy a VPS or dedicated server that fits your services.
Starting at just $3.51 / month, get virtual servers with top-tier performance.