OpenMoat 0.7.0
Released 2026-10-19. GitHub release v0.7.0.
The host adapters behind one contract, moat doctor --bundle for bug reports, and a round of checks: tar and su options that run a program, bash network redirections, more credential files, variables and secret-printing commands, MCP pins under CLAUDE_CONFIG_DIR, model switches that no longer freeze a session, and long sessions that no longer time out moat guard.
Security
Section titled “Security”- MCP server pinning reads Claude Code’s
.claude.jsoninside~/.claudeas well as the one beside it: Claude Code uses the inner one wheneverCLAUDE_CONFIG_DIRis set, even to the default directory, and its servers were left unpinned, so a changed server was not held back (#598). moat runon Linux refuses to start when OpenMoat’s state directory (MOAT_HOME) is inside a tree the sandbox grants (the project, a read root such as/tmp, a--writepath, the temp directory), or a granted path is inside it: Landlock cannot deny inside a grant, so commands could read the audit log and the lock there. The message names the tree to moveMOAT_HOMEout of;--isolatestill starts when the state directory is below the temp directory, which it hides. The default~/.moatis unaffected, andmoat doctorwarns on Linux when the state directory is inside a grant (#580).moat mcp proxyno longer trusts a server the first time it sees it: every tool of a server with no tool pins yet is left out oftools/listand its calls are refused, namingmoat mcp accept <server>, which shows each tool’s name, description and input schema and asks.moat mcp wrapandmoat init --mcp-proxysay so when they wrap a server. Servers already pinned keep their pins;mcp: { trust_first_sight: true }in the policy restores pinning on first sight, andmoat policy lintwarns about it (#580).kernel-selfprotects OpenClaw’s state directory,openclaw.jsonand OpenMoat’s plugin from the agent’s writes, and writes to OpenClaw plugin directories (~/.openclaw/extensions/, a project’s.openclaw/extensions/) ask (runs-later); session taint protects the same files. Existing policies get it withmoat policy upgrade(#581).- OpenClaw’s MCP servers (
mcp.serversinopenclaw.json) are pinned one by one, like Claude Code’s, Codex’s and Cursor’s: a changed or new server denies only its own tools (mcp-server-changed) untilmoat mcp accept, instead of every call through a changedopenclaw.json. OpenClaw’s tool names (<server>__<tool>, with its own spelling of the server’s name) are matched to their server. An$includethat may bring servers from another file holds back every OpenClaw MCP call (#584). - An agent cannot add or update OpenClaw
cronjobs or write OpenClaw’s state database (~/.openclaw/state/, which holds its exec approvals and the jobs the Gateway runs later, a command job directly in its own process, which no hook sees):kernel-selfdenies it. Existing policies get it withmoat policy upgrade(#584). - OpenClaw
view_imageis checked as a read of each local image (a secret’s path is denied) or a fetch of its URL,nodesinvoke(a command relayed to a paired device) isunparseable, and anodescapture saved withoutPathis a write of that path; readingcronandnodesstate stays unchecked (#584). kernel-selfprotects OpenClaw’s configuration whereOPENCLAW_CONFIG_PATHputs it and its state directory whereOPENCLAW_HOMEorOPENCLAW_STATE_DIRput it (#584).taroptions that run a program (--to-command,-I/--use-compress-program,--checkpoint-action=exec=,-F/--info-script,--new-volume-script,--rsh-command,--rmt-command, in every spelling GNU tar accepts, abbreviations included) are checked as the command they run (#596).su -c/--command/--session-commandandrunuser -care checked as the command they run, andpkexecandrunuser -u USERas wrappers likesudo(#596).secrets-pathsalso covers~/.pgpass,~/.my.cnf,~/.mylogin.cnf,~/.vault-token,~/.terraform.d/credentials.tfrc.json,~/.gem/credentials,~/.config/op/,~/.password-store/and~/.local/share/keyrings/, andkubectl config view --raw. Existing policies get it withmoat policy upgrade(#596).env-secretsalso covers passwords and connection strings:*_PASS,*_PASSWD,*_PWD,PGPASSWORD,*_CREDENTIALS,*_DSN,DATABASE_URL,*_DATABASE_URL,REDIS_URL,MONGODB_URIandMONGO_URL; other*_URLvariables are unchanged. Existing policies get it withmoat policy upgrade(#596).moat proxychecks a 6to4 (2002::/16) or Teredo (2001::/32) address as the IPv4 addresses it leads to (for Teredo the client and the server), as it already did for NAT64 and IPv4-compatible ones, so an embedded loopback, link-local, metadata or private address is refused and address deny rules apply to it (#596).- A shell redirection to or from
/dev/tcp/HOST/PORTor/dev/udp/HOST/PORT, which bash opens as a network connection, is checked as network access toHOST, likecurlto it: unlisted hosts and cloud metadata addresses are denied (#597). secrets-pathsalso covers~/.authinfo,~/.authinfo.gpg, Podman and Buildah registry logins (~/.config/containers/auth.json) and~/.config/doctl/config.yaml, and the commandsvault kv get,vault read,vault print token,op read,op item get --reveal,heroku auth:tokenandpassshowing or searching a password (pass NAME,pass show,pass grep; listing and managing entries is unchanged). Existing policies get it withmoat policy upgrade(#597).
moat doctor --bundle <file>writes one local file for a bug report: themoatversion and build target, the operating system, each agent’s hook state and protection level, the policy version and lint warnings, the doctor checks, and the last 20 audit decisions (--bundle-events N) with only time, host, tool name, verdict and rule ids. Commands, paths, arguments and URLs are left out, every text is redacted and the home directory reads~; nothing is sent. The bug report template asks for it (#589).- OpenClaw support:
moat init --hosts openclawinstalls a small OpenMoat plugin whosebefore_tool_callhook checks every tool call withmoat guard --host openclaw(shell, file, patch, fetch, search, browser and MCP tools; other tools aretool.unknown). A deny blocks the call, an ask becomes OpenClaw’s own approval request, and any failure or a missing answer blocks the call.moat uninstallrestoresopenclaw.jsonand deletes the plugin. Not yet tested against a running Gateway (#581). moat doctorshows, for each policy secret, whether Claude Code’s own broker masks it in the settings on disk: masked, denied instead of masked (afilesource on macOS), skipped with the reason, or not yet written (runmoat sandbox sync). It also namessandbox.credentials.allowPlaintextInject: trueas a weakness when the policy did not ask for it, since it lets every masked secret go to a plain-HTTP host (#580).
Changed
Section titled “Changed”- Breaking
openmoat-audit(library API, breaking):Store::session_cachetakes the digest it looks up, since a session keeps one saved fold per digest, andStore::session_pagereads a session’s events a page at a time (#596). moat initfollowsOPENCLAW_HOME,OPENCLAW_STATE_DIRandOPENCLAW_CONFIG_PATHas OpenClaw does (~, blank,undefinedandnullincluded) and records where it set OpenClaw up, so later commands find it without them;moat doctorreports a shell whose variables name another OpenClaw. The plugin goes in the state directory, wherever the configuration is (#584).openclaw.jsonis read as JSON5 (comments, unquoted keys, single quotes, trailing commas), somoat initsets up a JSON5 configuration and writes it back as plain JSON with every value kept. A file with comments is not written, since that would drop them:init,uninstallandmoat mcp wrapsay so and change nothing. No new dependency (#584).openmoat-hostskeeps each host’s facts (id, name, the hook format it sends, what it does with anask) in oneHostSpec, returned byHost::spec, and turns anaskinto adenyin one place from it; every host’s answers are unchanged (#586).- Breaking
openmoat-hosts(library API, breaking):HostSpecalso says what the host does when its hook fails, what OpenMoat does not cover for it and where its configuration lives (InstallSpec);HostSpec,AsksandInstallSpecare#[non_exhaustive].Host::bench_payload,Host::read_replyandHost::seenwith thebenchmodule build and scoremoat benchcalls per host.moatitself behaves as before (#589). openmoat-hosts(library API):HostSpecalso says where the host reads its MCP server definitions (McpSpec) and which OS sandbox OpenMoat writes for it (SandboxSpec), both#[non_exhaustive].moat init,sandbox,uninstall,doctor,statusand the MCP pins read them instead of naming each agent, and behave as before (#589).moat sandbox showsays afilesecret on macOS is denied rather than masked, and that nothing is masked on native Windows, where it used to say Claude Code injects it (#580).
moat guardno longer times out in long sessions whose calls switch between working directories: each directory keeps its own saved session taint instead of replacing the other’s, so a call reads only the calls recorded since rather than the whole session again. A session too long to read in one call saves its progress and is denied with a recorded reason, and the next call reads on from there; taint verdicts are unchanged. Hooks insidemoat runthat time out are listed under therelayphase instead ofstdin(#596).- Switching models in Claude Code no longer makes
moat guarddeny every call untilmoat doctor --accept: themodel(a string) andswitchModelsOnFlag(a string, number or boolean) keys Claude Code writes insettings.jsonare settings drift the guard decides through, aslanguageandeffortLevelalready were.moat doctorandmoat statusstill show the change; the same change next to any other key, or an object or list under either key, still denies every call (#596). moat guardlooks up whether a session already recorded settings drift with one indexed query that stops at the first match instead of reading the whole session, and the long-session latency check in CI takes the median p95 of three batches and shows thelatency_usp95 beside it (#585).- A hook inside
moat runon macOS connects again, a few times within its time limit, when Seatbelt refuses the connection tomoat runfor a moment, as it does on some macOS 14 machines, instead of denying the call withkernel-error; a refusal that lasts still denies (#595). moat bench’s hook-failure line for Claude Code says that from Claude Code 2.1.295 a hook that is missing, crashes or times out blocks the call (moat initsetsonFailure: "block"); it said only that the call runs (#589).