OpenMoat 0.20.0
Released 2026-11-12. GitHub release v0.20.0.
New in this release, with setup and limits:
- Approve reviews from your phone (
openmoat approvals, Telegram) - Undo an agent’s changes (
openmoat snapshot,openmoat restore) - Send the audit log to a SIEM (OTLP and signed webhooks)
- Short-lived tokens from a program (preview)
- Linux tiers and the Landlock ABI ladder
- Protection by agent and OS
- Requiring openmoat run’s full boundary (
require.run: full-boundary)
Security
Section titled “Security”- A pipeline a rule matches at its end is decided the same when another command follows it on the line:
curl URL | x ; truecould be left to the agent wherecurl URL | xwas denied (#781). - Under
require.run: full-boundary, only an allowlist of inherited environment variables reaches whatopenmoat runstarts, so a cloud credential in the shell does not; add a name withsandbox.env_allowor--env NAME, andopenmoat doctorandopenmoat run --verbosename what is withheld, never a value. Without the setting, one line says how many inherited variables look like credentials (ADR-077) (#782). require.run: full-boundarymakesopenmoat runrefuse to start without an OS sandbox or, on Linux, without a network namespace for the agent, whatever--netnssays;openmoat statusandopenmoat doctorreport whether it holds on the system (ADR-077) (#782).- Every line
openmoat mcp wrap,unwrapandinitprint about an MCP server (wrapped, skipped, without the sandbox, tools held) shows its name without the control or hidden characters an agent’s file may put in it (#786). - The policy lock’s copy of a pinned MCP server definition no longer keeps the values of OpenCode’s
environmentor goose’senvsin clear, andopenmoat mcp acceptandopenmoat doctornever show them: they are hidden likeenv. A lock an older version wrote keeps every server pinned as it was, so nothing is accepted again;openmoat doctornames one that still holds such a value,openmoat doctor --acceptrewrites it, and so does any other change to the lock (#786). - What
openmoat mcp wrapandunwrapprint for a server to set by hand no longer passes a control or hidden character from the server’s name or arguments to the terminal (#786). - What
openmoat mcp acceptandopenmoat doctor --acceptshow before asking to accept an MCP server definition, and doctor’s line for each changed definition, no longer pass a control or hidden character from the server’s name, keys or arguments to the terminal (#788). - A key or a variable’s name with line breaks in an MCP server definition can no longer add lines of its own to what
openmoat mcp acceptshows before it asks, so it cannot push the real change off the screen or show another server’s (#788). - What
openmoat status,openmoat doctorandrequire.run: full-boundarysay about each MCP server, and doctor’s line on a server’s held tools, name the server without its control or hidden characters wherever the text is printed (#788). ~/.moat/delivery.yaml, which decides where the audit log is sent, is pinned by the policy lock like the policy: a file no person accepted withopenmoat doctor --acceptstops every hook call and sends nothing. Its keys and tokens must be files inside~/.moat/delivery/or keychain items (env:is refused), the background run gets a cleared environment (noSSL_CERT_FILE, no proxy variables), plainhttpgoes to loopback only, and link-local, cloud metadata and non-unicast addresses are refused on every resolved address (ADR-081) (#789).- A sink’s header secret is masked in what is delivered in every form an event could hold it, not only as the full header value: the bare token after a
Bearerprefix, the token with its spaces trimmed, and forBasiccredentials the decodeduser:passwordand the password alone, soecho $TOKENin an agent’s call is not sent to the collector in the clear (#789). kernel-selfdenies agents and sandboxed commands reading~/.moat/delivery/(anddelivery/in any.moat/), where audit delivery’s webhook key and collector token live, socat ~/.moat/delivery/webhook.keyis denied; a key or token file elsewhere in the state directory, which the agent may read, is refused (#789).- The default policy’s
kernel-selfrule denies agents reading~/.moat/remote(each approval channel’s credential under~/.moat/remote/<channel>/, and the key that signs requests, answers and the approver list) and running anyopenmoat approvalscommand, by either name, by path and under the pseudo-terminal wrappers (ADR-078) (#790). - Remote approval: a call longer than the 1500 characters an approver is shown can only be denied from another device, on every channel; the request records that it was cut, under its signature, and the guard uses no approval for such a request (ADR-078) (#790).
- Remote approval: a call whose shown text redaction changed (a value that looks like a secret, a URL’s user and password) can only be denied from another device, since the hidden part may be what runs; the approver is told to approve it at the terminal (ADR-078) (#790).
- Remote approval: an approval is bound to every argument the agent’s tool call carries, hashed as canonical JSON, not only to the fields OpenMoat reads, so an approved notebook edit, a host’s own write or replace tool, or an unknown tool’s call cannot be swapped for one with other content (ADR-078) (#790).
- Remote approval: when a call’s approval was used but the call was then refused because its audit row could not be written, the call stays denied and the approver is told “approved, but the call was refused” with the reason, and it is recorded, instead of the approval vanishing silently (ADR-078) (#790).
- Remote approval: a channel’s chunked HTTPS response with a chunk size past the 4 MiB response limit is refused, where a size near the largest number could overflow and stop
openmoat approvals listen(ADR-078) (#790). - Remote approval:
openmoat approvals listenanswers every reply of a poll even when one fails (it is logged), and only then moves past them on the channel’s server, where one failing reply used to drop the rest of that poll (ADR-078) (#790). - Remote approval: a line break in the call is shown as a line break marked with
⏎, not as?, sols foofollowed byrm -rf ~/workreads as the two commands it is (ADR-078) (#790). openmoat runon Linux no longer lets a command reach a pathname datagram socket outside the sandbox (/dev/log, journald’s socket) through a datagram socket pair, which it could connect again or send to with an address: the seccomp filter now allowssocketpair()only for stream and sequenced-packet sockets, which Node, Python and Chromium use, and a datagram pair fails withEPERM(#794).- Where the kernel has Landlock ABI 9 (Linux 7.1),
openmoat runalso has Landlock refuse connecting or sending to any pathname Unix socket made outside the sandbox (EACCES), beside the seccomp filter; an older kernel keeps the filter alone, as before (ADR-082) (#794).
openmoat statusandopenmoat doctorname the exactopenmoat runcommand for each agent OpenMoat writes no OS sandbox for, or say why there is none on this system or for that agent (ADR-076) (#779).openmoat statusandopenmoat doctorshow each MCP server OpenMoat can read as protected or unprotected, with why; underrequire.run: full-boundaryan unprotected local server fails the requirement, which is reported because the agent starts its servers itself (ADR-077) (#782).openmoat mcp wrapreads each agent’s own form of a server: OpenCode’s singlecommandlist is wrapped and undone in place, and goose’scmdandargsare read, soopenmoat statusandopenmoat doctorreport goose’s extensions. A YAML file or an OpenCode file with comments is named with what to set by hand and no longer stops the other servers; a goose extension of inline Python is named as having no command to wrap (#785).- Live audit delivery to a SIEM or log collector:
~/.moat/delivery.yamlnames up to four sinks, OTLP/HTTP logs (JSON) or an HTTPS webhook whose bodies are signed with HMAC-SHA-256 (X-OpenMoat-Signature). The hook never waits for it: after answering, the guard starts a detached delivery run, which sends the events after each sink’s place in the audit log, every text masked again. A sink that fails is tried again with growing waits; one that answers with an error trying again cannot fix is paused; one that falls more thanmax_backlogevents behind is told which events it missed, and the skip is recorded in the audit log (audit-delivery-overflow). New commandsopenmoat audit deliver status,testandflush(docs/DELIVERY.md, ADR-081) (#789). - One oversized event no longer stops audit delivery for good: each event is trimmed after masking to the batch size and at most 256 KiB (long texts cut with a
…[openmoat trimmed N bytes]marker), a413answer halves the events per request, and one event that still gets413alone is skipped, recorded (audit-delivery-too-large) and sent as a gap, instead of pausing the sink (#789). - A delivery run that fails as a whole (the audit log or the policy cannot be read) no longer makes every hook call start another: the guard waits a minute, doubling to 15 minutes while it keeps failing, and after any run it starts the next one a second later at the soonest (#789).
- An OTLP collector that answers
200but rejects records (partial_success) no longer counts as having taken them: the records are not sent again, as the OTLP specification asks, but the loss is recorded in the audit log (audit-delivery-partial, with the count and the collector’s message, masked) and sent to the collector as a gap with the next request (#789). - A sink that has accepted no event yet (a first try that failed, was refused or found nothing to send) no longer stops audit delivery: its state file holds the place before the first event as
0, which the next run now reads back instead of refusing as an event id (#789). openmoat doctornames each agent that runs a tool call when OpenMoat’s hook cannot start, crashes or times out (“fails open”), with the way out: start it withopenmoat runand addrequire.run: full-boundaryto the policy.openmoat status --format jsoncarries each agent’shook_failurefacts and their sources, anddocs/LIMITS.mdhas a per-agent “If the hook fails” table generated from them (ADR-079) (#789).- The weekly latest-agent job makes OpenMoat’s hook fail (exit 1, binary gone) under each real agent it starts, and fails when an agent runs a call its facts say it blocks (ADR-079) (#789).
- Cline CLI counts as running the call when OpenMoat’s hook fails: OpenMoat’s script blocks it when
openmoatis missing or crashes, but Cline runs the call when the script itself cannot start (nosh, as on native Windows), soopenmoat doctornames Cline as failing open rather than promising a block (#789). openmoat runtakes a snapshot of the project’s files before the agent starts and after it exits, into OpenMoat’s own store outside the project (--no-snapshotopts out, recorded);openmoat restoreputs them back after showing each change and asking, and takes an undo snapshot first;openmoat snapshottakes, lists (--list) and prunes (--prune) them. Secrets and other paths a deny rule names, ignored files and files over 5 MiB are left out and named; both commands are person-only, and the default policy denies them, and reading or changing the store, to agents (ADR-085) (#789).- A snapshot holds each file’s bytes as they are and a restore writes back those bytes, whatever the project’s
.gitattributessay: line-ending conversion (text,eol),identandworking-tree-encodingare off in OpenMoat’s store, so a.gitattributesan agent plants can neither change what comes back nor make a snapshot fail (#789). - Every
openmoat runrecords its own start snapshot, even when the files are as the previous snapshot holds them, so a plainopenmoat restoregoes back to the start of the last run and never undoes an earlier run’s work as well (#789). - Two
openmoat runin one project, or a run beside a person’sopenmoat snapshotoropenmoat restore, no longer race on the snapshot store: taking, pruning and restoring hold the store’s lock, each snapshot is staged in its own index file, and pruning drops only unreferenced files older than an hour (#789). openmoat restorecannot be made to write or delete outside the project by a process of the agent that swaps a checked folder for a link while the restore runs: on macOS and Linux every write, rename and delete is made relative to the folder it checked, held open (openatwithO_NOFOLLOW); on Windows each folder is checked again right before each change and any change refuses the path (ADR-085) (#789).openmoat restoreno longer deletes a file that was there but ignored when the snapshot was taken (an agent that stops ignoringnotes.localcannot get it deleted): each snapshot lists the ignored paths that existed, and the restore leaves them as they are and says so (#789).- A call held for review can be approved from your phone:
openmoat approvals connect telegramconnects a Telegram bot you made,openmoat approvals allow telegram:<user-id>names who may approve, and whileopenmoat approvals listenruns each review is sent there with Approve and Deny buttons. An approval lets that exact call (agent, session, folder, command or file and its content, and the rules that held it) run once, within 5 minutes by default; a deny is never sent, and every failure leaves the review as it was.openmoat approvals status,test,removeanddisconnectcomplete it; nothing changes without a channel. Channels are built to be added one folder at a time: each declares what it can do, and OpenMoat shapes the message to it (buttons, or reply codes to send back, and Deny only when a channel cannot show the whole call); approver ids carry the channel’s name, so the same user number on two services never counts twice. docs/APPROVALS.md says how to add one (ADR-078) (#790). - Short-lived brokered secrets (preview): a secret’s
source: { command: { run: [...], lifetime: 15m } }names a program, such as a cloud CLI’s token command, thatopenmoat proxyruns for the value, uses it for at mostlifetime(1 minute to 12 hours, or less when the program prints an expiry) and runs again before it ends, on a thread of its own. Past its deadline a request that needs the value is refused before anything is sent and recorded asproxy-secret-expired; a stale value is never sent. The program runs only when a denyfs.writerule covers it or only an administrator can change it, never from/tmp, pinned by its SHA-256 for the life of the proxy, with no input, a bare environment, a 30-second limit and 64 KiB of output; its output is never quoted and every value it gave is masked in the audit log.openmoat guard, audit delivery and Claude Code’s broker never run it, and a repository policy or pack cannot add one (docs/POLICY.md§2.2, ADR-087) (#793). - A
commandsource’s program starts in/, never in the agent’s project, with an empty home of its own under OpenMoat’s state folder;home: usergives it your home for a tool that keeps its login there (#793). - A
commandsource’s program finds tools in the system’s folders only, never its own; every folder above it, up to your home, must be kept from the agent as the file is, and a script’s interpreter must pass the same check and is pinned too (#!/usr/bin/envis refused). The example is now Vault’s CLI, notgcloud, whose Python loads from folders you can write (#793). - The proxy runs a private copy of the bytes it hashed, checked again before each run, never the file at the program’s path; a deny rule counts as proof only outside the project and
openmoat run’s write roots, where only root ownership does (#793). - On macOS and Linux the time limit ends a
commandsource’s whole process group, and its output is read with a deadline, so a child it left holding its output neither outlives the run nor keeps a thread of the proxy waiting (#793). - A
commandsource is renewed from the lifetime its value actually got (the shorter oflifetimeand the expiry it printed), a fifth of it before the end, at least a minute ahead and at most once a minute after an answer, each secret on its own thread; a program that printed an expiry shorter thanrefresh_beforewas run on every look (#793). - Under
openmoat run, a repository policy’s deny rules no longer count as proof that the agent cannot change acommandsource’s program; only your own policy’s do (#793). openmoat guard’s audit rows do not mask acommandsource’s value: OpenMoat does not write the values to a file for it, which would be a copy on disk of the tokens the source keeps short-lived; LIMITS.md says so (#793).openmoat doctoron Linux names the kernel’s Landlock ABI and whatopenmoat runapplies from it (each ABI from 4 to 12 with--verbose: used, available but not used and why, or not available and what holds instead);openmoat sandbox showandopenmoat run --verboseshow the same,sandbox show --format jsonhas it underlightweight.landlock.abi, and every Linux run writes it to the audit log (rulerun-landlock-abi) before the agent starts (ADR-082) (#794).docs/PROTECTION.md: one row per agent on Linux, macOS and Windows of what protects its calls (the hook as protected, preview or none; what the agent does when the hook fails; its own sandbox; the tieropenmoat runstarts it in; its MCP servers; what a command can read inside a run), with the tests and weekly real-agent runs behind each claim. It is generated from the agents’ facts and from end-to-end tests marked// protection:, a claim nothing backs readsno evidence yetand its summarypreview, and the docs test fails when the page or a mark is wrong;openmoat doctor --verboseends with a pointer to it (ADR-079) (#795).
Changed
Section titled “Changed”docs/COVERAGE.mdnow shows all ten risks of the OWASP Top 10 for Agentic Applications (2026), each marked covered, partial or out of scope with a one-line reason that says what is left out. Risks no fixture class maps to show no counts, and a test keeps a row for every risk from ASI01 to ASI10 (#777).- The README shows OpenMoat’s own MoatBench result for 0.19.0 from the benchmark’s own repository; the older comparison with other tools is removed (#778).
- At a terminal,
openmoat initnow offers to run the agents’ stdio MCP servers throughopenmoat mcp proxy, shows the change and asks before writing;--no-mcp-proxyopts out, a no is remembered per definition, and without a person nothing is rewritten (ADR-076) (#779). - Breaking
openmoat-hosts:HookLayout::Pluginholds a&'static dyn PluginConfig, the new trait that edits a host’s plugin configuration, instead of the plugin’s&'static OwnedFile(PluginConfig::pluginreturns that file); theOPENCLAW_CONFIG_FILE,OPENCLAW_PLUGIN_ID,OPENCLAW_STATE_DIR_NAMEandOPENCLAW_STATE_DIR_VARIABLEexports are gone, since what they named is in the host’s spec (#780). - Breaking
openmoat-core:SandboxSettingshas a new public fieldenv_allow, andopenmoat-hosts:HostSpeca new public fieldrun_env, which breaks code that builds them field by field (#782). - Breaking
openmoat-core:Requirehas a new public fieldrun(Option<RunBoundary>), which breaks code that builds it field by field (#782). - Breaking
openmoat-hosts: theCONTINUE_ENVexport is gone;HostSpec::speaks_variableholds the variable andHost::caller_variablereturns it (#785). - Generic code names no agent for the lock’s settings pins, Claude Code’s secret masking rows in
sandbox showanddoctor, or the variable that says the Continue CLI runs the hook: each comes from the sandbox backend or the host’s spec. The lock’s file format, what it pins and the output are unchanged (#785). - The policy lock digests a settings file it pins by OpenMoat’s part with the backend of the host whose file it is, found by the file’s name, rather than with the first backend that pins by part; what the lock pins and its digests are unchanged (#786).
- Antigravity CLI is checked against a real
agy: the weeklylatest agentsjob records what agy loads and runs (#789), and in its run of 2026-11-12 (43254846914) a realagyon Linux and macOS ran OpenMoat’sPreToolUsehook, which denied a read of a planted key, and blocked the call when the hook binary was missing and when it exited 1 without output.docs/PROTECTION.mdshows its hook as protected on Linux and macOS, andopenmoat doctornames it as failing open only when the hook times out, which agy does not document and the job does not try; the weekly job now fails if a lateragyruns a call when the hook fails. - The OWASP agentic table in
docs/COVERAGE.mdnow states its evidence: end-to-end tests marked for a risk count beside the fixtures, a new section lists each risk’s test names and fixture ids, and a risk nothing tests readsnot testedwhatever is claimed for it; the conformance suite fails when a risk claimed as covered or partly covered has no evidence, and when the document differs from what it generates (ADR-079) (#789). - Migration:
openmoat runon Linux starts the Isolated tier (bubblewrap) by default where bubblewrap works, so commands the agent starts can no longer read.envor write.git/hooksand.moatin the project. The agent sees only the project, the read roots, its executable, the--writepaths and an empty temp directory; an agent whose runtime lives elsewhere in the home can need that directory insandbox.read_roots. Where bubblewrap is missing or blocked it says why on every start, recordsrun-isolation-unavailablein the audit log and starts the Lightweight tier as before.--no-isolatestarts the Lightweight tier on purpose and recordsrun-no-isolate;openmoat doctorsays which tier applies in its OpenMoat section, without--verbose. Underrequire.run: full-boundarythe Isolated tier is required on Linux and--no-isolateis refused (ADR-080) (#789). - An MCP server started with
openmoat mcp proxy --sandboxruns in the Isolated tier on Linux too, so a path outside the project and the read roots is not there for it at all, rather than there and denied (#789). - The guard’s p95 budget is 20 ms for its own decision on Linux CI runners and 45 ms on macOS ones, where the same binary measures 17 to 37 ms median; a row over it warns. The latency check now times the commit before on the same runner on every run, pushes to
mainincluded, instead of holdingmainto a fixed limit that failed macOS runs whose guard code had not changed, and both latency scripts report the median, p95 and p99 (ADR-080) (#789). - Breaking
openmoat-hosts:HookRequesthas a new field,input: the call’s whole tool arguments as canonical JSON (keys sorted, no whitespace),Nonefor an event without a tool call (#790). - Breaking
openmoat-core:SecretSourcehas aCommandvariant (SecretCommand), so an exhaustivematchon it needs an arm, andSecretCommand::home(SecretCommandHome);SecretSource::proxy_onlyanddescribe, andlint::write_denied, are new.openmoat-proxyaddsBroker::rotation,RotationandRULE_SECRET_EXPIRED;openmoat-auditaddsStore::set_secrets(#793).
- When
openmoat mcp proxyrefuses every call of a server that was not started, a request id holding U+2028 or a similar line separator is escaped in the reply, so no reader that splits lines on it sees two messages (#785). openmoat statusandopenmoat doctorno longer adviseopenmoat mcp wrapfor a goose extension of inline Python, which cannot be wrapped, andopenmoat mcp wrapno longer warns about an OpenCode entry that names no program, such as{"enabled": false}or aurlwith notype(#786).openmoat mcp wrap <server>andunwrap <server>exit 64 when a server asked for by name is left as it is (one OpenMoat cannot put behind the proxy, or one with a change nobody accepted) instead of printing “no stdio MCP server to wrap” and succeeding, and a file that cannot be read or parsed, or no longer holds the server, fails the command again rather than being named as one to set by hand (#786).- A wrapped MCP server’s variables reach it under
require.run: full-boundaryfor OpenCode (environment) and goose (envs) as they do underenv, and a definition is read in the form its agent reads it: a straycmdbesidecommandandargsno longer leaves a wrapped server without its--hostor stopsopenmoat mcp unwrapandopenmoat uninstallfrom restoring it (#786). - A long agent session that moves to another folder no longer has every call denied with
kernel-errorwhile OpenMoat reads the session’s earlier calls again: the session’s taint is kept for every directory, and only calls recorded without a working directory keep a directory’s own (#787). - Working out a session’s taint classifies each earlier call once instead of twice, so a session read again after an upgrade or a policy edit catches up in fewer calls (#787).
openmoat doctorlists the calls the guard denied in the last day because it could not decide them (kernel-error), with the latest one’s time, agent and reason (not its session id) and what to run next, so it no longer says “All good” while the guard refuses every call (#787).openmoat doctor --acceptover a drifted lock no longer exits 64 on the line about MCP server values an older version kept in clear: the re-pin has already written the lock without them, and the line is now decided from the lock as it is on disk (#788).openmoat mcp wrap <server>andunwrap <server>exit 64 with a line naming the server when the name matches no server in the agents’ own files (a typo), andwrapdoes so for a named remote server, which has nothing to wrap, instead of printing “no stdio MCP server to wrap” and succeeding; a named server already wrapped still succeeds (#788).- Under
openmoat run, Claude Code’s Bash tool no longer fails on every call when OpenMoat is installed under the home directory (~/.cargo/bin, Homebrew on Linux): Claude Code’s sandbox, with theblockReadsOutsideWorkingDirectoriesthatopenmoat initsets, hides that directory, and the tool-shell wrapper was a link to it. The wrapper’s directory in the system temp directory now holds a copy of the binary, so it starts with nothing outside that directory (ADR-075) (#789).