What does an OpenClaw security audit of a default install find? It found a model with a shell, a gateway that advertised itself on the local network, a VNC port reachable from other devices and a Mac with the firewall off. We found these while building a locked-down OpenClaw agent inside a macOS virtual machine on a Mac mini in October 2026, on OpenClaw 2026.10.7. Each finding below says what we saw, how we confirmed it and the setting that closed it.
At a glance
- Tested: OpenClaw 2026.10.7, October 23 to 25, 2026
- Shell: a bare test run gave the model an
exectool and about 40 other tools reachable throughexec. - Code Mode:
execstayed available with shell tools denied, untiltools.codeMode.enabledwas set tofalse. - Gateway discovery: the gateway advertised itself on the local network over Bonjour (mDNS) until
discovery.mdns.modewas set tooff. - VNC: the VNC server of Lume, the tool that runs macOS virtual machines, listened on all host interfaces.
- Firewall: the Mac mini was on the macOS default, application firewall off.
- Secrets: the secret store is an unencrypted SQLite file readable by the user that runs the gateway.
- Sandbox: sandboxing is off by default (OpenClaw docs).
What does a default OpenClaw install give the model?
A default OpenClaw install gives the model a shell. We ran a bare test with no configuration, and the agent had an exec tool plus about 40 other tools reachable through exec. The OpenClaw docs state the cause: Sandboxing is off by default (OpenClaw sandboxing docs). Defaults favour convenience, and a convenient default for an agent is a shell on the host.
A shell matters because the agent then acts with the permissions of the user that runs the gateway. In our VM, that user could read the Google Cloud service-account key and the secret-store file. A messaging-only agent does not need either capability, so we denied the shell tool group and kept messaging and session tools.
Does denying the shell tools remove exec from an OpenClaw agent?
Denying the shell tools did not remove exec in our test. With group:runtime denied, Code Mode still offered exec, running on a node:vm executor. The Code Mode executor docs warn that Node's node:vm is not a security boundary and that the worker shares the Gateway process's operating-system privileges (OpenClaw Code Mode executors docs).
We closed the gap with tools.codeMode.enabled: false. The setting needs a fresh check, because an existing session can keep the old tool list after a config change. We started a new session with --session-id and confirmed the agent had messaging and session tools only.
Key insight
Denying group:runtime did not remove exec in our OpenClaw test
Code Mode still offered exec on a node:vm executor. Setting tools.codeMode.enabled: false and starting a fresh session closed the gap.
The Code Mode quickstart explains why the behaviour depends on the model. With tools.codeMode absent, OpenClaw uses the auto tier, which engages Code Mode only for models marked preferred in the provider catalog (OpenClaw Code Mode quickstart, checked December 2, 2026). Changing the model can therefore change the tool list. One internals page we read says Default state: disabled, which contradicts the quickstart, so we tested the behaviour instead of trusting either page.
Does the OpenClaw gateway advertise itself on the local network?
The OpenClaw gateway advertised itself over Bonjour (mDNS) until we turned discovery off. Any device on the same network could see that an OpenClaw gateway existed. We disabled the Bonjour plugin and set discovery.mdns.mode: off, and the gateway now listens on loopback only.
Network discovery matters for a gateway that holds chat tokens and model credentials. A gateway on loopback with no announcement gives a neighbour on the same Wi-Fi nothing to find.
Approving OpenClaw for real work? Truvo tests the tool list, sandbox mode and network reachability of the deployment. Book Your Strategy Call
Is the VNC port of a Lume virtual machine reachable from other devices?
Lume's VNC server listens on all host interfaces and has no bind option. The Lume flags cover --vnc enabled|disabled, --vnc-port and --vnc-password, and nothing else. The address lume ls displays is 127.0.0.1, which misleads: we connected through the Mac's LAN address and reached the VM screen.
The same behaviour is open as an issue in the Lume project (trycua/cua #3878, reported on 0.5.3). We saw the same behaviour on Lume 0.6.1. Two controls limit the risk:
- A four-word VNC password that changes on each run.
- The Mac's firewall, covered in the next section.
Watch out
The Lume VNC server answers on the Mac LAN address even though lume ls shows 127.0.0.1
We reached the VM screen through the Mac's LAN address. Test from a second device on the same network, because a test from the Mac itself proves nothing.
Was the Mac's own firewall on?
The macOS application firewall was off. macOS ships with the firewall off by default, and the Mac mini was not MDM-managed, so nothing had changed that setting. We turned the firewall on with stealth mode and turned off auto-allow for built-in and signed software. We also blocked Lume inbound.
Turning auto-allow off brought up older allowances for python3, ruby, smbd and sshd-keygen-wrapper, and we blocked those too. The check that mattered came last: a VNC connection from an iPad on the same network to the Mac's LAN address and the Lume VNC port failed with the firewall on.
Where does OpenClaw store secrets?
OpenClaw keeps Slack tokens and other secrets in a protected secret store. Stored values are write-only to the CLI, the UI and the agent, so the agent cannot read a token back. The store itself is an unencrypted SQLite file readable by the user that runs the gateway. In our design the VM boundary protects the file, so the agent should not get a shell.
Two smaller findings from the same build:
- OpenClaw silently drops
GOOGLE_APPLICATION_CREDENTIALSfromenv.vars. We export the variable in a 0700 wrapper script before the gateway starts. - A screenshot of a Slack app settings page showed the legacy Verification Token in plain text. The token is unused in Socket Mode, and regenerating the token takes a minute.
How can you run the same checks on your OpenClaw install?
Run these five checks on any OpenClaw install before OpenClaw connects to real accounts:
- Start a fresh session with
--session-idand list the tools the agent can use. Compare the list with the tools the job needs. - Run
openclaw sandbox explainand read the sandboxmode. We sawmode: off. - Run
openclaw security audit --deep(OpenClaw audit docs). - From a second device on the same network, try to reach the gateway port and any VNC port on the host.
- Check whether the host firewall is on, and which programs the firewall allows.
The full set of 10 settings, with the exact configs, is in How to Set Up OpenClaw Safely on a Mac. The OpenClaw best practices checklist covers the same controls for any host.
Do these findings still apply to current OpenClaw versions?
We tested OpenClaw 2026.10.7 in October 2026. On December 2, 2026, we re-ran the checks that need no model call on a clean install of OpenClaw 2026.12.1, the latest version on the npm registry that day. The results matched: sandbox mode is off, command approvals are full with no prompts, exec is allowed by default, and the audit on a bare install reports 1 critical finding and 2 warnings on both versions. One difference: 2026.12.1 adds github_read, github_search and github_publish to the default allowed tools.
We did not re-test Code Mode with a model, the Bonjour advertising or the Lume and macOS findings. The Code Mode docs we quote were current on December 2 and still describe the auto tier and the node:vm warning. The docs also list a quickjs executor with Hardened guest isolation, and we did not test it.
Run the same check on your own install with check-default-install.sh in our repo. The script uses a throwaway home directory, so no config or secret is read.
Treat our results as a checklist of questions to ask your own install, and re-run the checks after every upgrade.
Get an OpenClaw deployment tested before the deployment touches real data
If your team is approving OpenClaw for real work, Truvo tests the deployment the way we tested our own: tool lists, sandbox mode, network reachability and credential storage. Book a security architecture review, or start with the AI penetration testing service. For the risk background, read OpenClaw Security: Risks and How to Run It Securely and Is OpenClaw Safe?.
Test your OpenClaw deployment first
Fit AI agents into an effective security program before they touch company accounts.
Frequently asked questions about OpenClaw security audits
Is OpenClaw sandboxed by default?
No. The OpenClaw docs state that sandboxing is off by default and controlled by agents.defaults.sandbox. We confirmed mode: off with openclaw sandbox explain on a default agent.
Should OpenClaw run on the host or in a virtual machine?
A virtual machine gives the agent a boundary that does not depend on OpenClaw's own settings. We ran OpenClaw in a macOS VM with the gateway on loopback, no inbound ports and a kill switch. The setup guide has every step.
What does openclaw security audit check?
The OpenClaw docs describe checks on DM and group policies, allowlists, gateway auth, token strength and browser control, with flags --deep, --fix and --json (audit docs). The command did not cover the host findings above, such as the Mac firewall or the Lume VNC port.
How do you turn off OpenClaw Code Mode?
Set tools.codeMode.enabled to false, then start a fresh session with --session-id and check the tool list. An existing session can keep the old tool list after a config change.
How do you stop the OpenClaw gateway from advertising itself on the network?
Disable the Bonjour plugin and set discovery.mdns.mode to off. After that change, our gateway listened on loopback only.
Ready to Start Your Compliance Journey?
Get a clear, actionable roadmap with our readiness assessment.
Contact Us
Sample SOC 2 Control List
Input your email to download the list.
About the Author
Former security architect for Payments Canada. 20+ years building compliance programs for critical infrastructure.