OpenMoat 0.5.0 to 0.5.7
Released 2026-10-12 to 2026-10-18. Each version below links to its GitHub release.
Released 2026-10-18. GitHub release v0.5.7.
Push check for tokens and secrets, token egress, MCP server and tool pinning, a Claude Code hook that blocks when it fails, per-session proxy credentials, hooks inside moat run, human-only commands, and classifier fixes.
Security
Section titled “Security”git pushandgh pr createare checked for what they would publish: a commit that adds a known token format or a brokered secret’s value is denied (push-secret), a change to a CI workflow or anotherruns-laterfile asks in a session that read untrusted content or a secret (push-runs-later), and a push that cannot be checked within 2 s or 8 MiB asks (push-unchecked); any other push is decided as before (#574).- With Claude Code 2.1.295 or later,
moat initsets"onFailure": "block"on OpenMoat’sPreToolUsehook, so a call is blocked whenmoatcannot start, crashes or times out instead of running unchecked. The key is written only when theclaudeonPATHreports that version;moat statusandmoat doctorreport a hook without it as out of date (runmoat init), andmoat doctorwarns when Claude Code is older or not found (#574). token-egressdenies a GitHub, OpenAI/Anthropic, AWS, Slack, Google, npm or GitLab token sent to a host that is not its service’s, allowed hosts included: in a fetch or network tool’s URL, an MCP URL argument, a web search, or the arguments of a command that connects to a host and of commands piped into it.placeholder-egressdenies a brokered secret’s placeholder sent anywhere but that secret’s host. Only prefixed token formats count, so commit SHAs, UUIDs and base64 data are not affected. Existing policies get both withmoat policy upgrade(#574).- Audit redaction also masks Anthropic keys (
sk-ant-…) and OpenAI project, service-account and admin keys whose body holds-or_(#574). - The policy lock pins each MCP server definition the agents read (
~/.claude.json, a project’s.mcp.json, Cursor’smcp.json, Codex’sconfig.toml, and their project files). A server whose definition changed, or one added since (a cloned repository’s.mcp.jsonincluded), has its tool calls denied withmcp-server-changeduntil a person runsmoat mcp accept, which shows the change and asks. Other servers and tools are not affected, andmoat doctorandmoat statusreport it (#574). moat mcp accept,moat mcp wrapandmoat mcp unwrapare denied to agents (kernel-self), pseudo-terminal wrappers included. Existing policies get it withmoat policy upgrade(#574).moat run’s proxy serves its own run only: the agent’sHTTP_PROXY/HTTPS_PROXYcarry a per-run credential (http://<session>:<token>@127.0.0.1:<port>), and a request without it, or with another run’s, gets 407. Each proxy row is recorded under the run’s session (#574).- Session taint reaches
moat run’s proxy: once an agent session of the run has read secret material, a request to any host but that secret’s own is refused (session-taint), registries included, so a script the hook never sees cannot send it on. The default policy denies secret reads, so default setups see no change (#574). - One session of
moat run’s proxy, or the connections that have not authenticated yet, can hold at most half of its connections; the next gets 503 (#574). - A deny can no longer be turned into a defer by padding the rest of a command line until the classifier stops. A here-document with no delimiter line and a trailing backslash are read as bash runs them, a command substitution that cannot be classified keeps its command’s own reads and writes, and a line not read in full or past a classifier limit (64 KB, nesting depth, 2048 actions) asks instead of taking the catch-all (#569).
moat runremoves the environment variables brokered secrets are read from before it starts the agent; the agent and its commands held the real value instead of the placeholder (#569).runs-laterasks before the agent writes what its host starts in the next session, outside any sandbox: a project’s.claude/hooks/,.mcp.json,.cursor/mcp.jsonand.codex/config.toml, and~/.claude.json,~/.claude/plugins/,~/.cursor/mcp.jsonand~/.cursor/cli-config.json. Existing policies get it withmoat policy upgrade(#569).- A tool OpenMoat does not govern is left to the host’s own permission flow instead of being approved past it; it is still recorded. Cursor, whose hooks cannot leave a call undecided, keeps the allow (#569).
moat run --isolatetakes bubblewrap from/usr/bin,/binor/usr/local/binonly, never fromPATH, where a relative entry let a project ship its own (#571).- A project root whose path holds a glob character (
*,?, brackets, braces) names no files: spliced into${project}/**it widenedproject-fs, with a project at~/*to the whole home (#572). - Under
moat runon macOS, a pattern with**inside braces (~/{.ssh/**,.aws/**}) and a pattern under a symlinked directory (/tmp/x/**, which is/private/tmp/x) are enforced as the hook reads them; both were narrower (#572). - A patch handed to
apply_patchin a shell command, which Codex applies like its own patch tool, is checked as writes to every file it names; a write to a denied file deferred (#572). - MCP arguments named in camel or kebab case (
sourcePath,output-dir,baseUrl) are read as paths and URLs, and a write verb anywhere in a tool’s name (file_write,download_file) makes its paths writes (#572). - In Claude Code’s
bypassPermissionsanddontAskmodes, where no question reaches a person, an OpenMoat ask is a deny that says how to approve it (moat allow --last), as for Codex; calls OpenMoat leaves to Claude Code are unchanged (#574). moat allow,moat doctor --accept,moat trust,moat secret add,moat edit,moat policy upgrade,moat uninstall,moat sandbox sync,moat mcp accept/wrap/unwrapandmoat proxy install/uninstallrefuse when Claude Code, Codex, the Cursor CLI ormoat runstarted them, even through a terminal wrapper, and read their answer from the controlling terminal. Windows checks the terminal only (#574).moat proxyrefuses a TLS tunnel whose ClientHello carries an encrypted server name (ECH or ESNI), with which an allowed host’s provider could serve another site;sandbox.proxy_allow_ech: trueallows it (#574).- The Claude Code hook also receives
ReadMcpResourceTool(afile:resource is checked as a read of that file, another as the MCP server’s read),EnterWorktree(entering an existing worktree is checked as a read of its directory) andSkill(recorded, left to Claude Code). Existing installs show the hook as out of date untilmoat initis run (#574). - Session taint protects every file
runs-laterasks about (azure-pipelines.yml,Jenkinsfile,.buildkite/,.pre-commit-config.yaml,lefthook.yml,~/.claude.json) and OpenMoat’s own.moat/, and a test keeps the lists in step (#574). - A shell command that gives
HOME,PWDorprojecta value it does not show (project=$(cat f),read HOME) no longer has paths under them read as the real home, working directory or project:project=$(cat f); cat ${project}/id_rsawas allowed as a project file, and now asks like any unknown directory (#574). ${project}in a shell command is the shell’s variableproject, empty when unset, not the project root:cat ${project}/Users/me/.ssh/id_rsareads the key and was allowed as a project file (#574).- A relative path from the root directory (
cd / && cat Users/me/.ssh/id_rsa) is checked as/Users/…; it was read as the network path//Users/…, which no rule names (#574). xargsinput that the command line shows, a here-string, a here-document or text piped fromecho, is checked as the arguments of the command xargs runs, with-I,-nand-0read as xargs reads them (#575).- Files that
curlandwgetsend are checked as reads:curl -F name=@FILE,-F name=<FILE,--form,-T/--upload-file,-d @FILEand the other data options,--data-urlencode name@FILEand-K FILE, andwget --post-file,--body-fileand-i(#575). - Files rewritten in place are checked as writes: the file operands of
perl -iandruby -i(and their backups), the filepatchpatches and its-oand-rfiles (its-ipatch file is a read), anddd of=~/…, whose~bash expands (#575). env -S 'cmd args'(--split-string) is checked as the command line env runs (#575).- An unquoted glob that starts with
.(.*) also names.and.., as macOS/bin/bashand other bash before 5.2 expand it, so the directory and its parent are checked;rmandrmdir, which refuse those two operands, are unchanged (#575). - Shell rule patterns match in time bounded by the pattern length times the command length; a pattern with many
*against a long command took exponential time (#575). - The program git runs for the other side of a remote,
--upload-packand-uforclone,fetch,pullandls-remote,push --receive-pack/--execandarchive --exec, is checked as a command line. A local repository thatclone,fetch,pull,ls-remoteorarchive --remotenames is a read, and the directoryclonecreates and a local repositorypushupdates are writes (#575). - Hooks inside
moat runsend each tool call to themoat runprocess over the proxy’s port with a token made for the run, and that process decides and records it; the sandbox stays closed to~/.moat, a wrong token is recorded and gets no decision, and any failure denies (#575).
moat mcp proxy, opt-in per server withmoat mcp wrapormoat init --mcp-proxy: it runs a stdio MCP server through OpenMoat, pins each tool’s description and input schema on first sight, hides a tool that changed or is new untilmoat mcp accept, and records every tool call in the audit log. With--sandboxthe server runs undermoat run.moat uninstallandmoat mcp unwraprestore the original command (#574).
Changed
Section titled “Changed”- Changing one of Claude Code’s own settings, such as
permissions.blockReadsOutsideWorkingDirectories, a permission list or mode, or a display toggle, no longer makesmoat guarddeny every call untilmoat doctor --accept. Calls are decided by the policy as usual, the change is recorded once per session, andmoat doctorandmoat statusreport it until you accept it. Any change to hooks, to keys that run a program or redirect the agent (env,apiKeyHelper, the model, plugins, MCP servers,sandbox), removing a deny rule OpenMoat wrote, an unknown key or a file that no longer parses still denies every call. Under a lock pinned by an earlier release a change topermissionsstill denies until the next re-pin (#575). moat proxysays at start-up that it asks for no session credential, so any local process may use it and session taint does not apply; the host sandboxes cannot send one (#574).moat statussays when a policy update waits formoat policy upgrade, and its JSON addspolicy_updateandlock_drift(#573).- On a session-taint ask,
moat allow --lastofferss: it approves every protected write of that session until it reads untrusted content again (other sessions still ask; a secret’s asks never) (#573). moat initshows a diff of every file it would change for an agent before asking about it, hooks and sandbox settings together (#573).--helpand themoat runbanner use plain words: no ADR numbers or tier names, and the banner is two lines (--verbosefor the rest) (#573).- A tool call over the 1 MiB payload limit is refused with a message naming the limit, instead of failing as malformed input (#573).
moat guardstays fast in long agent sessions: the session’s taint is folded from the calls since the last one, cached in the audit database, instead of from the whole session. Late in a 5,000-call session a call took 158 ms on Linux and 370 ms on macOS; it now takes about 10 and 18 ms (#571).
moat guardno longer denies slow calls on a heavily loaded machine asno decision within 10 s: the time limit is 30 s (still a deny when it runs out), the session-cache write skips instead of waiting for the audit database’s lock and shares the record’s connection, andmoat doctornames the step most such calls were stuck in (#574).- Under
moat run, every governed tool call was denied as akernel-errorand nothing was recorded, because the hook could not read the policy lock or write the audit log from inside the sandbox; hooks now get the real decision, and session taint reaches the run’s proxy (#575).
Released 2026-10-18. GitHub release v0.5.6.
Security hardening: the egress proxy applies deny rules that name an address to every address a host resolves to and refuses two ambiguous plain-HTTP framings, and session grants are ordered by audit row instead of the clock.
Security
Section titled “Security”- The egress proxy checks a policy deny rule naming an address against every address a host resolves to: a deny such as
net: ["203.0.113.7"]only matched the name, so an allowed name resolving to that address was connected to; it is refused now (#565). - The egress proxy refuses plain-HTTP framing a server could read differently: an HTTP/1.0 request that carries
Transfer-Encoding, and a chunk size over 2^31 - 1 (#565). moat policy lintwarns when a secret setsplain_http: truefor a loopback host: the proxy never connects there, so the secret is never injected (#565).- A session grant answering a taint ask is ordered against the session’s latest untrusted read by audit row instead of wall-clock time, so a clock that steps back cannot make a grant made before the read look newer (#566).
Released 2026-10-17. GitHub release v0.5.5.
Two security fixes: moat allow --last shows which ask it takes and asks before approving, and the egress proxy refuses numeric host spellings and more local addresses. New read-only listings: moat allowed, moat secret list and moat doctor --format json.
Security
Section titled “Security”moat allow --lastsays which ask it takes (id, host, session, how long ago, what the agent wanted) and asksApprove it? [y/N]before it approves anything; another ask could have come in after the one you meant (#552).- The egress proxy refuses a host whose last label is a number or starts with
0x(0x7f.1,2130706433), which some resolvers read as an IP address, and refuses more local addresses: NAT64 local-use64:ff9b:1::/48, Azure’s WireServer168.63.129.16(as metadata) and192.0.0.0/24(#551).
moat allowedlists what you have allowed: policy rules, session grants with what they cover and when they expire, and trusted repositories;moat secret listsays whether a secret’s source is still readable by the agent. Both are read-only and take--format json(#550).moat doctor --format jsonprints every check with its status and detail, for scripts and the menu bar app (#549).
Changed
Section titled “Changed”- A session-taint ask answered with
moat allow --laststays answered for that call for the rest of the session, until the agent reads untrusted content again; secret taint is never answered this way. Claude Code’s prompt says how (#544).
Released 2026-10-17. GitHub release v0.5.4.
Two security fixes: the egress proxy no longer passes along a second request pipelined after the first, and a session grant can no longer be made for a call without a session id, where it applied to every such session. Long agent sessions also stay fast.
Security
Section titled “Security”- The egress proxy forwards one plain-HTTP request per connection: a request pipelined after the first one’s body, possibly for another host, was relayed to the first host’s server without a decision; it is now dropped, and chunked framing the proxy cannot follow is refused (#540).
moat allow --laston a call whose agent sent no session id wrote a “session” grant that held for every session without an id for 24 hours; it is refused now, and the guard never applies such a grant (#541).
Changed
Section titled “Changed”- The guard stays fast in long agent sessions: when it works out a session’s taint, each distinct earlier call is classified once instead of once per later call (#542).
Released 2026-10-15. GitHub release v0.5.3.
Two security fixes: a path that steps up (..) after a symlink is checked where the OS really goes, and a shell variable whose value names itself can no longer crash the guard, which let Claude Code and Codex run a command unchecked.
Security
Section titled “Security”- A path that steps up (
..) after a symlink is checked where the OS really goes: withclinked to~/.config,cat c/../.ssh/id_rsaand a file-tool read of it were allowed as project files; they are denied, and so iscd -P c/.. && cat .ssh/id_rsa(#536). - A shell variable whose value names itself (
e='${e}'; cat $e) was expanded again and again until the guard crashed; a crashed guard is not a deny, so Claude Code and Codex ran the rest of the command unchecked. A value is now expanded once, as the shell does (#539).
Released 2026-10-15. GitHub release v0.5.2.
Writes an agent should not make without a question now ask: CI workflows and commit hooks (runs-later), and .git in a directory allowed with moat allow --dir. moat secret add denies the secret’s source to the agent, and moat allow updates the agents’ sandboxes at once.
Security
Section titled “Security”- A new ask group,
runs-later, asks before an agent writes what CI runs with the repository’s secrets once a branch is pushed (.github/workflows/,.gitlab-ci.yml,.circleci/,azure-pipelines.yml,Jenkinsfile,.buildkite/) or what runs on this machine outside any sandbox (.husky/,.pre-commit-config.yaml,lefthook.yml,.vscode/tasks.json). They were allowed as project files.project-fsandmoat allow --dirleave them out; reading them stays allowed, and the OS sandboxes do not deny them. Existing policies get the group withmoat policy upgrade. moat allow --dirno longer allows writes into a.gitin that directory (hooks, config, a.gitfile pointing elsewhere). As in the project, git runs what those name later, outside any sandbox; such a write now goes to the agent’s own prompt. Rules added by an earlier version keep their old form: remove and add the directory again to get it.moat secret addadds a deny rule for the secret’s source when none covers it (an environment variable whose name the policy does not deny, a file outside the secret paths), so the agent cannot read the value it brokers. It only warned before.
Changed
Section titled “Changed”moat allow --dir,--site,--removeand a permanent file rule update the agents’ sandbox settings at once, asmoat sandbox syncdoes; before, sandboxed commands met the old settings until you ran it.- The README says where a brokered secret’s value is injected today: into HTTPS through Claude Code’s sandbox broker, through
moat proxyinto plain HTTP only.
Released 2026-10-14. GitHub release v0.5.1.
Security fixes from an outside review of 0.5.0: paths hidden in $'…' quoting or in a command’s output, file: URLs, $IFS, commands handed to ssh, git rebase --exec and other programs, /proc/*/environ and commands that print a stored token.
Security
Section titled “Security”$'…'(ANSI-C quoting) is decoded the way bash decodes it, and$"…"is read as"…".cat $'/Users/me/.ssh/id_rsa'andcat $'\x2f'Users/me/.ssh/id_rsawere allowed as project files; they are reads of the key and denied, and$'moat' allow --lastis denied likemoat allow --last.- A path that is the output of a command (
cat $(cat list.txt),cat `cmd`) is no longer allowed as a project file: like a path through an unknown variable it defers, and asks when its file name is a key’s or a.env. - A
file:URL is a read of its file:curl file:///Users/me/.ssh/id_rsais denied; it was left to the agent’s prompt. $IFSsplits a word where it stands:cat${IFS}~/.ssh/id_rsais denied.- A command handed to
watch,git rebase --exec,git submodule foreach,git bisect run,git difftool --extcmd,git filter-branch --*-filter,ssh -o ProxyCommand=(andLocalCommand,KnownHostsCommand) orrsync -eis checked as a command of its own. env-dumpdenies reading a process environment from/proc/<pid>/environ, andsecrets-pathsdenies the commands that print a stored token or password (gh auth token,gcloud auth print-access-token,az account get-access-token,aws configure export-credentials,git credential fill,security find-generic-password -w).
Released 2026-10-14. GitHub release v0.5.0.
The first stable release with the quiet default (ADR-025): OpenMoat denies what must never happen, asks for the few calls whose effect outlives the session, and leaves every other call to your agent’s own permission prompt. This section lists what changed since 0.5.0-rc.5; the release candidates below list the rest since 0.4.0.
Security
Section titled “Security”- A key’s, a token file’s or a
.env’s name in a directory a variable hides (cat $X/id_rsa) asks (secret-names) instead of being left to the agent’s prompt, so an auto-approve mode does not run it unseen. - An uppercase variable set on the line (
X=~/.ssh; cat $X/id_rsa,export D=~/.ssh) is substituted where it names a path or a host, like a lowercase one, so the read is denied; it was left to the agent’s prompt.
Changed
Section titled “Changed”- The README starts with three setup steps, one command for each everyday case and answers to common questions, and its demo shows the quiet default; the docs describe 0.5.0 as it behaves.
0.5.0-rc.5
Section titled “0.5.0-rc.5”Released 2026-10-14. GitHub release v0.5.0-rc.5.
A release candidate for testing; not a stable release. A security fix: a shell variable set on the command line is checked as the path or host it holds, so d=~/.ssh; cat $d/id_rsa is denied (it was allowed in 0.5.0-rc.2 to rc.4). Inline code of versioned interpreters, lua and Rscript is scanned too.
Security
Section titled “Security”- A shell variable set on the line is substituted where it names a path or a host:
d=~/.ssh; cat $d/id_rsais denied. Since 0.5.0-rc.2 a lowercase variable’s read was no environment read, and its path was taken as a file in the project, so the read was allowed. A path through a variable whose value is not known ($X/id_rsa,d=$(pwd),${d:-x}) isunparseable, never allowed, and$PWDis the working directory. - Inline code of versioned interpreters (
python3.12 -c,python2.7 -c) and oflua -e,luajit -eandRscript -eis scanned for paths and hosts likepython3 -c.
0.5.0-rc.4
Section titled “0.5.0-rc.4”Released 2026-10-14. GitHub release v0.5.0-rc.4.
A release candidate for testing; not a stable release. Fixes from a day of dogfooding the quiet default: commands after shell reserved words are checked as themselves, for loops, lowercase shell variables, python3 -I script.py, grep patterns and tr no longer leave normal work to the agent’s prompt, and moat secret add gh keeps the GitHub token from the agent in one step.
moat secret add ghkeeps the GitHub token from the agent in one step: it adds the brokered secret to the policy, shows the diff and asks, then re-pins and syncs the sandbox settings. Other services take--hostand--envor--file. Agents are deniedmoat secretlikemoat edit(kernel-self).
Security
Section titled “Security”- The command after a shell reserved word (
do,then,if,!,{, …) is classified as that command, sofor f in a; do cat ~/.ssh/id_rsa; doneis a read of the key; the reserved word was taken as the program and the command’s file operands were missed.for PATH in …is a set ofPATH, whichenv-poisondenies.
Changed
Section titled “Changed”- Common shell forms an agent writes no longer leave the call to the agent: a
forloop or a lowercase shell variable (n=3; git log -$n) over allowed commands is allowed (shell-locals), and so is a project script run with whole-word safe Python options (python3 -I script.py).
- A
greppattern is no longer read as a file:grep -n '\.env' notes.mdwas denied as a read of.env(a\became a path separator); with-eor-fanywhere every operand is still a file.tris allowed (text-tools) and its character sets are not files, and reading Claude Code’s own temporary folder is allowed (agent-temp). - docs/POLICY.md §3 and §4 had an outdated copy of seven paragraphs (here-documents, shell options,
cd, symlinks, globs, braces) next to the current one; the outdated copies are gone. moat show,moat auditand the other readers refuse an audit log a newermoatwrote (schema too new), asmoat guardalready does, instead of reading it with an older schema.
0.5.0-rc.3
Section titled “0.5.0-rc.3”Released 2026-10-13. GitHub release v0.5.0-rc.3.
A release candidate for testing; not a stable release. Security fixes found in a review of the quiet default: a bracket-glob read of a secret file that was allowed, more network clients and quoted hosts in inline code denied, unknown Cursor tools checked as writes, other users’ homes asked, and docs that match the defer verdict.
Security
Section titled “Security”- More network clients count as naming a host (
openssl,socataddresses,psql/mysql/redis-cli -h,nmap,mosh,aria2cand others), and a host in a quoted string in inline interpreter code is network access again, so an unlisted host there is denied, not left to the agent. A path in another user’s home (~alice/.ssh/id_rsa) always asks (other-home). - A host quoted as an argument of a program that names hosts (
curl 'host',ssh "user@host") and a host after git’s global options (git -C dir push host:repo) are network again, so an unlisted host is denied instead of left to the agent; the output of any program other thancat,echoorprintf, and of a( … )group, piped into a shell asks (opaque-code) like other text the command line does not show. shis read with bash’s long options (sh --norc -c '…'), as macOS runs it, so the command string is classified and a secret read in it is denied; it was left to the agent asunparseable.- A glob operand with a POSIX bracket class (
cat .e[[:alpha:]]v,cat ~/.s[[:alpha:]]h/id_rsa) names the paths the shell opens, sosecrets-pathsdenies it; it was allowed inside the project and left to the agent outside it. - A Cursor
preToolUsetool OpenMoat does not know that names a path is checked as writing it unless it is one of Cursor’s listing or search tools, so an editing tool without a write verb in its name (search_replace) can no longer change.cursor/hooks.jsonor.git/hooksunder the project read allow.
- docs/THREAT_MODEL.md, docs/POLICY.md and SECURITY.md say
deferwhere the default policy leaves a call to the agent’s own prompt; they still saidaskforunparseableinput, recursiverm, discarding checkouts,local-net,WebFetch,npxand PowerShell (#505).
0.5.0-rc.2
Section titled “0.5.0-rc.2”Released 2026-10-13. GitHub release v0.5.0-rc.2.
A release candidate for testing; not a stable release. Quiet by default: OpenMoat denies what must never happen and leaves every other call to your agent’s own permission prompt. Existing policies keep their ask defaults until moat policy upgrade.
Changed
Section titled “Changed”- Quiet by default (ADR-025). A new verdict,
defer, leaves a call to the agent’s own permission prompt (Claude Code’s prompt or auto mode, Codex’s approval policy), exactly as without OpenMoat. The default policy defers everything no rule names, installs, pushes, publishing,WebFetchand local services included, so OpenMoat shows no prompt of its own in normal work (the first dogfood day had 191 asks in 4 hours, none of them an attack). OpenMoat still asks itself where the effect outlives the sandbox or the session: newgit-internals,persistence,home-sweep,opaque-codeanddocker-secretsask groups, and session taint. Every deny rule and the generated sandboxes are unchanged; OS layers treatdeferlikeask, andmoat proxyrefuses a deferred host. Codex and the Continue CLI no longer turn an unknown command into a deny. Cursor’s file tools cannot prompt, so there a deferred call still asks. (#499) - A host-shaped word without a scheme outside programs that name hosts (
check_runs.0.id,defaults.net) is matched bynetrules but is no longer denied bydefaults.net; it gets the catch-all default. - The policy has a
defer:rule list, evaluated afterask;defaultsacceptdefer.unparseableinput defers under anallowordefercatch-all and asks underaskordeny. - A policy written before this release keeps its own
askdefaults;moat policy upgradeoffers the new ones. The audit log moves to schema version 3 (adeferverdict); an oldermoatrefuses to open it.moat reportandmoat team reportcount calls left to the agent. Library:Verdict::Defer,AtomicAction::NetWordandPolicy::deferare new (VerdictandAtomicActionare#[non_exhaustive];Policygains a field).
Security
Section titled “Security”destructivedenies writes to raw disks (/dev/disk*,/dev/sd*,/dev/nvme*, …), and text piped into a shell that the command line does not show (printf '\x63at .env' | sh) asks (opaque-code).
moat sandbox showstarts with aSecretslist: each policy secret’s host, header and source (never the value), and whether Claude Code injects it or why it skips it (#498).
- The Codex sandbox profile no longer lists
**/denies below a file it grants (~/.gitconfig/**/.env); they could match nothing (#496). - A function call in interpreter code, such as Python’s
subprocess.run(, is no longer taken for a host name, so the command asks instead of being denied as network access (#495). moat sandbox syncwrites only the agents whose OpenMoat hook is installed: it no longer added OpenMoat’s sandbox to an agent you left out (such as Codex aftermoat init --hosts claude-code) or removed withmoat uninstall, and saysnot set upfor it instead;moat statusandmoat doctorcheck the sandbox of those agents only (#493).moat statusno longer lists Claude CodeWebSearchas a known gap: it has been checked asweb.searchsince 0.5.0-rc.1 (#494).moat show,audit,reportand the other audit readers say the audit log cannot be read, not that it is missing andmoat initshould run, when an agent’s sandbox blocks~/.moat(#494).
0.5.0-rc.1
Section titled “0.5.0-rc.1”Released 2026-10-12. GitHub release v0.5.0-rc.1.
A release candidate for testing; not a stable release.
moat policy upgradebrings a new release’s default-policy changes into your policy: it keeps every line you changed, shows the diff, asks, and--undorestores the old file;moat,moat initandmoat doctorsay when an update is available (#477).- docs/USAGE.md “If OpenMoat gets in your way”: one command for each way it can block work, including turning it off with
moat uninstall(#486).
Changed
Section titled “Changed”- After upgrading, run
moat policy upgrade(the default-policy fixes below) andmoat sandbox sync. - A policy that repeats a key in one mapping, or uses
<<merge keys, no longer loads (the old parser kept the last value silently);moat policy lintnames the line,moat editfixes it (#492). - Breaking Breaking for openmoat-audit:
ExportReport::anchor_foundis nowanchor(AnchorCheck);moat audit verifysays when an export is not anchored, and--require-anchorfails then (#469). - Breaking Breaking for the library crates:
Kind,ActionandAtomicActiongainUnknownTool(#472). - Docs state plainly that
moat runon Linux does not protect.env,.gitor.moatinside the project (use--isolate), and ADR-023 has a correction note on Apple’s container tooling (#487).
- Normal work no longer asks: redirections to
/dev/nulland the standard streams (#471), read-only git commands (andgit config --get user.name, which was denied as a host) (#473), read-only utilities, in-project edits (sed -i,git merge,git restore,rm -rf build) and the build and test commands of more ecosystems (#483), and toolchain version checks (#484). moat uninstalldeletes only the backups OpenMoat created, never a file of yours at a backup’s name (#478).
Security
Section titled “Security”- An output or build directory given as an option value outside the project asks in every spelling (
cmake -B/tmp/x,go build -o/tmp/x), and options that load code (cmake -C,cargo --config,pytest -p) ask (#490). - After a web fetch or MCP result, editing the build definitions of every ecosystem the default policy runs asks (
CMakeLists.txt,pom.xml,build.gradle,*.csproj,Rakefile,.cargo/config.tomland more) (#491). - Policies are parsed by a maintained pure-Rust YAML parser instead of one built on the unmaintained
unsafe-libyaml(RUSTSEC-2024-0449) (#492). - Cursor tools OpenMoat cannot classify ask (
tool.unknown), and CursorWebFetchis checked as a fetch (#472). - Codex from its standalone installer works on Linux and keeps working across updates, while its credentials, conversations and databases stay unreadable to commands (#470).