OpenClaw security.exposure.open_channels_with_exec: What It Means and How to Fix It
Published 2026-10-22 · Updated 2026-10-22 · By The Is My Agent Safe team
Short answer
security.exposure.open_channels_with_exec is a finding from openclaw security audit. OpenClaw's docs rate it warn/critical. Follow the fix steps below, then run openclaw security audit --deep again and check that the finding no longer appears.
This page covers one finding from OpenClaw's own security audit: what it means, how to fix it, and what to check afterward. It's based on OpenClaw's docs and source, linked at the end.
Paste your audit: run openclaw security audit --deep and paste the output into our free check for a red/amber/green result with the most important finding first (Limits of the check).
How to fix it
- Read the finding's detail. It lists each open policy path (for example
channels.telegram.dmPolicy) and each agent whose exec security isn'tdeny, with its host setting. - This stops your agent. It stays offline until you start it again a few steps below. Stop the Gateway with
openclaw gateway stopbefore you change anything. Make a backup withopenclaw backup create, and a quick copy of your config file so you can undo the change (openclaw config fileshows where it is). - Close each open path in the detail. For DMs, set
dmPolicytopairingorallowlist. For groups, setgroupPolicytoallowlistordisabled. Withallowlist, only the senders or groups you list can trigger the agent, and an empty group allowlist blocks group messages.openclaw security audit --fixswitches common open group policies toallowlist, but it doesn't change DM policies or turn off tools. - If a channel has to stay open, turn off exec for the agents instead: set
tools.exec.modetodeny. An agent's ownagents.entries.<id>.tools.execsetting wins over the global one, so change any agent the detail still lists. - Start the Gateway again and run the audit. If you think someone has already used an open chat to make the agent run commands or change files, these steps aren't enough: follow OpenClaw's full incident-response plan (linked in the sources below).
openclaw gateway stop openclaw backup create cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak # use the path from openclaw config file if it's different # close each open path from the detail, for example: openclaw config set channels.telegram.dmPolicy pairing openclaw config set channels.telegram.groupPolicy allowlist # or, if the channel has to stay open, turn off exec: openclaw config set tools.exec.mode deny openclaw config validate openclaw gateway start openclaw security audit --deep
After any change, run openclaw config validate. If you stopped the Gateway, start it with openclaw gateway start. Then run openclaw security audit --deep and check that the finding is gone.
OpenClaw's docs say openclaw security audit --fix doesn't fix this finding, so the steps above are manual.
What this finding means
OpenClaw's audit raises this when at least one channel lets anyone message your agent (a DM or group policy set to open) and at least one agent can still use the exec tool, which runs shell commands on the host (its exec security isn't deny). Anyone who can post in that open chat can try to talk the agent into running commands, a risk known as prompt injection. In OpenClaw 2026.10.5's source, the finding is critical when any agent has exec security full (commands run without approval) and warn otherwise. The detail lists every open policy path and every exec-enabled agent, so you know exactly what to change.
Related checkIds covered on this page
| checkId | Rating in OpenClaw's docs | What OpenClaw's docs say it flags |
|---|---|---|
security.exposure.open_channels_with_exec | warn/critical | Shared/public rooms can reach exec-enabled agents |
What it looks like in the audit output
Made-up example, not from a real agent:
CRITICAL security.exposure.open_channels_with_exec Open channels can reach exec-enabled agents Open DM/group access detected at: - channels.telegram.dmPolicy Exec-enabled scopes: - main: security=full, host=auto Fix: Tighten dmPolicy/groupPolicy to pairing or allowlist, or disable exec for agents reachable from shared/public channels.
False alarms and open reports
- The audit counts an agent as exec-enabled whenever its exec security isn't
deny. That includesallowlist, which OpenClaw'saskandautomodes use. So the finding can stay at warn even when most commands need approval. That's how the check is written in the 2026.10.5 source. - In the 2026.10.5 source, this check compares open channels with every agent's exec setting. It doesn't look at which agent each channel is routed to. Issue #175215 (opened October 17, 2026) reports the same pattern for the related runtime/filesystem and control-plane findings. OpenClaw's maintainers haven't confirmed it or shipped a fix.
What our free check covers
The free check at /check is paste-only. We check the text you paste: your openclaw security audit output. The check never connects to your agent or tests anything live. Nothing is installed into the agent you're checking. Green means no issues found in the checks we ran. The free check puts the most important finding first, in plain English, with how to fix that one when we have steps for it. The full report explains every finding and lists the fixes in order. The check doesn't detect malicious skills. We don't review the code inside skills or MCP servers ourselves, beyond what OpenClaw's own audit reports. The check is free, and a full report is $29. See Limits of the check.
Next steps
- OpenClaw Security Audit: What Each Finding Means and What to Fix First
- OpenClaw tools.exec.security_full_configured: Posture Warning or Real Problem?
- OpenClaw dm.open Finding (channels.<provider>.dm.open): What It Means and How to Fix It
- OpenClaw security.exposure.open_groups_with_elevated: What It Means and How to Fix It
Sources
- OpenClaw docs: security audit checks (checkId catalog)
- OpenClaw docs: openclaw backup
- OpenClaw docs: openclaw config (config file)
- OpenClaw 2026.10.5 source: src/security/audit.ts (where the check is defined)
- OpenClaw docs: exec tool (tools.exec.mode)
- OpenClaw docs: groups (groupPolicy)
- OpenClaw docs: pairing (dmPolicy)
- OpenClaw docs: openclaw security (what --fix changes)
- OpenClaw docs: Gateway service commands (start, stop)
- OpenClaw GitHub issue #175215: exposure checks ignore exact channel-to-agent bindings (open)
- OpenClaw docs: exposure runbook (full rollback plan)
- OpenClaw docs: operator incident response (full plan)
Get the plain-English agent security brief
Agents & AI Security, explained: a short, plain-English email when we have something useful. Free. Unsubscribe any time.
We'll only use your email to send the newsletter. The newsletter is sent by beehiiv, which records opens and link clicks. Privacy policy.