Repository navigation
0.26.0 - 2026-11-23
Alpha: the hook's decisions are not enforced by the operating system (ADR-013). Only commands inside the host sandboxes
openmoat initconfigures, or underopenmoat run, are confined by the OS. Elsewhere an allowed call runs with your permissions, so a classifier mistake is a security bug.
Release Notes
Upgrading: run openmoat policy upgrade in your own terminal for the new default rules (system-files, stops-system, credential-egress, staging-egress, and more in secrets-paths, persistence and token-egress; from the 0.25.0 default this only narrows), then openmoat init once: it rewrites the hook entries of Codex, Gemini CLI, Qwen Code and Crush so a missing or killed openmoat blocks the call (Codex asks once to trust the changed hook) and records the other hooks the agents already load. A wrapped MCP server's sampling requests are now refused unless mcp.allow_sampling is set. Details: INSTALL.md.
Security
openmoat mcp proxyfor Codex takes only the hook decision with the exactthreadIdandcallIdCodex sends in a call's_meta, so one Codex session's identical call can no longer use another session's allow; a call with one id, an empty one or a mismatched pair is refused (ADR-107). The guard writes the MCP decision last, so a call whose audit write failed leaves none behind. When the agent closes the proxy's input, a server that does not exit is sentSIGTERMto its process group and killed 5 seconds later (from a contribution by Marlon Costa, #847). (#851)- The default policy closes the gaps two outside benchmarks (RedCode-Exec, agent-egress-bench) found, adding denies and reviews only (ADR-112): the system's password hashes and SSH host private keys are secret paths (
/etc/shadow,/etc/gshadow,/etc/security/opasswd,/etc/ssh/ssh_host_*_key); writes, deletes and moves in the operating system's folders need review (system-files:/etc,/usrbut not/usr/local,/bin,/sbin,/lib*,/boot,/System), and inline code that deletes a file (os.remove,Path.unlink,fs.rmSync) counts as a write there and everywhere;persistencecovers the system's cron and systemd folders,/Library/LaunchDaemonsand/Library/LaunchAgents,systemctl enableandlaunchctl load; a fetch tool reaches no addresscurlcannot (an IP address in any spelling isnet, plainlocalhoststill defers) and a URL inside a URL (?target=http://169.254.169.254/) is checked for fetch tools andcurlalike;token-egressknows GitLab's other token prefixes, an AWS secret key given by name and PEM private keys; a JWT or a database URL with a password sent off the machine needs review (credential-egress); and stopping a system process (pkill sshd,pkill -u root,kill -9 1,kill $(pgrep sshd)) needs review (stops-system). Cursor'ssandbox.json, which cannot deny a path inside one it grants, keeps/etcgranted and lists the new secret paths in it as wider than the policy (cursor.system-folder); anopenmoat allow --dirgrant in/usr/localstill allows writes there (#852). - A ledger of the hook commands, plugin hooks, program-running settings and git programs the agents load besides OpenMoat's hook, pinned in the policy lock (ADR-109): the hook file's other entries, helper commands such as
apiKeyHelperandstatusLine, a project's hook files and hook and plugin folders, Claude Code's installed plugins (hooks/hooks.jsonand the manifest'shooks), Cline's other hook files and.git/configprograms (core.fsmonitor,core.pager,core.sshCommand,!aliases, …). While one is new or changed,openmoat status,openmoat doctorandopenmoat watchname it with the shell classifier's verdict on its command until a person runsopenmoat hooks acceptin a terminal, andopenmoat hooks listlists them. Only one whose command the classifier denies (a plugin update addingcurl … | sh) changes the agent's calls: they are denied (ruleforeign-hook) andstatusexits 64; any other is a warning.hooks: { foreign: hold }in your own policy holds the calls for review for every new or changed one instead. The firstopenmoat initafter the upgrade records what is there, so nothing that was there before is blocked. (#852) - Codex, Gemini CLI, Qwen Code and Crush now block a call when
openmoatis missing or killed: the hook command turns any exit but the guard's own 0 or 2 into exit 2 with a reason, which each of them reads as a block. Runopenmoat initagain to rewrite the entries (Codex then asks you to trust the changed hook in/hooks). A hook that times out still runs the call there; the guard denies on its own after 30 s. (#852) - Every policy change is checked for widening:
openmoat policy diff OLD NEW --widendecides both policies over the bundled calls, cases generated from both policies' rules (each pattern's matches and near misses, host lookalikes, shell argument lists, each request rule's methods and paths, the defaults) and--fixturesfiles, lists every call that moves toward allow (deny > review > defer > allow) with the rules before and after, and exits 2 when something widens. For file, host, fetch, environment and MCP rules it also searches every subject and, when the search finishes, proves no subject widens; shell commands, request rules and whole calls are checked over cases only, and the output says which.openmoat policy upgradelists what an upgrade widens and applies it only with--accept-widening;openmoat trustandopenmoat policy installshow what trusting a repository policy or installing a pack widens;openmoat policy check-diff --base, and so the merge check, fails a change whose policy file widens withdiff-widens(docs/POLICY.md §8.3, ADR-111) (#852). - On Linux 7.2 and later (Landlock ABI 10),
openmoat runalso refuses every UDP bind, connect and send through Landlock, beside the seccomp filter's refusal of UDP sockets, so no datagram (DNS to any resolver) leaves the sandbox. Built withlandlock0.4.8. (#852) - A protection score for
openmoat run: the kernel features the platform's sandbox can use, weighted to 100, with each missing one named and what brings it.openmoat doctorprints it for each tier this system can start and for the hook alone (0), andopenmoat run --print-boundaryand the run's boundary record carry it (score). (#852) sandbox.strict: true(your own policy only):openmoat runstarts only with its whole protection score, refusing before anything starts and stopping the agent when the check after the start cannot confirm a feature. On Linux that is the Isolated tier on Landlock ABI 10 (Linux 7.2) or later. (#852)- Qwen Code and Crush get an
openmoat runcommand inopenmoat statusanddoctor, and the sandboxed-start question ofopenmoat init.openmoat statuslists each hook-only agent thatopenmoat runcan confine here and that has no sandboxed-start shim underNeeds your attention, with the one command that confines it;openmoat initnames each such agent before it asks about sandboxed start. (#852) - Tests for the egress bypasses other agent sandboxes document: UDP and DNS from inside
openmoat run, a request to the proxy's port without the session's credential, a raw address, aHostheader that fronts another host, and an empty network allowlist, which reaches no host at every layer. (#852) - Signed audit checkpoints: the audit log can now be checked by anyone with its public key, without the audit key and on another machine. A checkpoint states how many events the log held and a Merkle root over them, in the C2SP signed-note format transparency logs use, signed with an Ed25519 key of its own (
~/.moat/audit.key.ed25519, kept from agents like the audit key).openmoat audit checkpointsigns one,openmoat audit anchorsigns one beside each anchor, and the guard signs one every 1000 events;openmoat audit verify <export> --checkpoint <file> --pubkey <key>fails when an event it covers was edited, deleted or rewritten, or the log was cut below it.openmoat doctorshows the public key and checks the newest checkpoint. Logs from earlier releases keep recording and verifying as before; the key is made byopenmoat initor the first checkpoint (#852). - What you were shown at a review, beside what ran (OWASP ASI09): a call held for review records the exact text the agent's prompt showed, and where the agent reports a call after it ran (Claude Code), a
ran-after-reviewrow says whether what ran is the action you were shown (review-ran-as-shown) or not (review-ran-changed, with what ran) (#852). - The lethal trifecta: once a session has read private data (a secret, an agent's or a build tool's credentials, a decoy key, the whole environment, or a file
taint.private_pathsnames) and content someone else may have written (a page, a search, an MCP result, an issue read withgh), every call that can send data out, to an allowed host too, needs review with rulelethal-trifectaand a reason naming both reads;taint: { trifecta: deny }denies instead. Sessions that never read private data are unchanged (#852). - Staging is decided, not only recorded: the default policy's new
staging-egressrule reviews a send of a file the session packed from files outside the project, and any send after the session wrote private data into a file (cp ~/.aws/credentials notes/, thengit push). A send after many outside reads with nothing packed stays recorded until its thresholds are measured. Runopenmoat policy upgradeto add the rule to an existing policy (#852). - Injected input is linked across more spellings: a percent-encoded host, a relative path placed against the directory it was read in (
../xwas read as/x), and a command written with its program's directory,./or~(#852). openmoat mcp proxyspeaks MCP 2026-07-28 beside the 2025 revisions, read from each message: it pins a server'sserver/discoveranswer (without thettlMsandcacheScopecache hints) as it pins theinitializeanswer, and holds the whole server, all its calls refused, when a result's_metaserver information is not the accepted one or changes mid-run; a server accepted under the older revision keeps its acceptance while its text is the same (#853).- The MCP gateway refuses a server's sampling requests unless the policy sets
mcp: { allow_sampling: true }, and a URL-mode elicitation that is nothttps, carries credentials, or points at this machine, a private or link-local address (the cloud metadata service) or a host the policy denies; the same check covers a 2026-07-28 result'sinputRequests(#853). - A tool's
x-mcp-headermappings are named inopenmoat mcp acceptand a changed one holds the tool; a tool whose mappings break the specification's rules, or whose schema's$refs leave it, loop or chain deeper than 16, is left out and its calls refused (#853). - Accepting a stdio MCP server records the package release its command runs (npm version and integrity from npx's install, a
uv toolinstall's version, an image digest), read offline; a new release holds the server as a changed definition does, sonpx -y postmark-mcpmoving to a new release needs a person again (#853).
Added
openmoat init --hooks-onlywrites and pins the agents' hooks and nothing else (no agent sandbox, no MCP step, no opt-in question); over a readable lock the other agents' pins stay as they are, and without one every installed hook is pinned.openmoat init --format jsonprints one document for scripts and asks no question, so it needs--hosts,--yesor--dry-run(from a contribution by Marlon Costa, #846). (#851)- Commands run through
rtk(Rust Token Killer) anddirenv exec DIRare classified as the command they run:rtk git reset --hardis denied asgit reset --hard, andrtk err --shell bash '…'andrtk run -c '…'as the script they run; rtk's own subcommands are read as what they do (rtk read Fas a read ofF,rtk envas an environment dump), anddirenv execchecks its directory and a file named in its place (from a contribution by Marlon Costa, #845) (#851). - Argument conditions on
denyandreviewrules (when:):under/not_under,host_in/host_not_in,in/not_in(recipient lists),matches/not_matchesandprovenance: untrusted, over an MCP call's arguments and a host tool's path, URL, command or query; a negated condition holds when the call names no such value, and operating-system layers apply a conditional rule as if every condition held (#852). openmoat runon native Windows (preview): the agent starts suspended under a write-restricted token, in a job object that ends every process it started when the run ends and lets none leave, and both are read back before it runs. Writes outside the project, the run's temp directory and--writepaths are refused, and.git,.moatand the CI and editor folders at the project's top too. Reads are not restricted and the network is held only by the proxy variables; the boundary record (proxy_variables),--print-boundaryandopenmoat doctorsay so, and the protection score counts both as missing (at most 55/100 on Windows). Batch files such as npm.cmdshims are not started;openmoat mcp wrapkeeps servers out of the tier unless--sandboxis given (ADR-115) (#853).
Changed
openmoat status,openmoat doctorandopenmoat watchwarn at once when a Claude Code session whose start reached OpenMoat called a tool OpenMoat's hook covers and no call of it reached OpenMoat, instead of after the session is ten minutes old. (#852)openmoat policy diff --widenranks eachtaint:key instead of asking a person to read the section:trifecta: deny→reviewand an entry gone fromprivate_pathswiden, the reverse narrows. A rule'swhenconditions are compared too, and the search over every subject reads the old policy's conditions as met and the new policy's as unmet, so a condition added to a deny rule is found as a widening (#852).- Faster checks.
openmoat status,doctor,init,watchandhooksread and compile your policy for the hook ledger only when one of the agents' other hooks is new or changed, not on every run. The never-widen check (policy diff --widen,policy upgrade,trust,policy installand the merge check) searches about twice as fast when a change widens: 127 s down to 54 s on the 0.24.0 default policy in a debug build. Debug builds, which the tests run, now optimise the YAML, glob, regex and SQLite libraries they use: eachopenmoat guardcall takes about half the CPU time it did (0.65 s down to 0.31 s per call in a debug build), andstatus,doctorandinitabout 40% less. Release builds were already optimised, so their guard is unchanged. (#853)
Fixed
- Antigravity CLI: Antigravity 2.0's
read_file,write_fileandedit_fileare decided as reads and writes of the file theirPathnames, so a secret, a shell startup file or a git hook gets the same verdict as through the other file tools; a call without aPathis still decided as an unknown tool (from a contribution by Marlon Costa, #844) (#851). openmoat mcp proxygives a server 5 seconds, not one, to close its output and exit after the agent closes its input, so a server started underopenmoat runis no longer stopped while its sandbox closes (#852).- Linux:
openmoat doctorandopenmoat statusno longer suggest Ubuntu'sbwrap-userns-restrictAppArmor profile for Claude Code, whose sandbox fails under it (apply-seccomp: write /proc/self/setgroups (nested userns is capability-restricted …)) even withkernel.apparmor_restrict_unprivileged_userns=0. They now read which AppArmor profile applies to/usr/bin/bwrap(the kernel's list where readable, else/etc/apparmor.d/) andkernel.apparmor_restrict_unprivileged_unconfined, warn for Claude Code whenbwrap-userns-restrictapplies although bubblewrap starts, and name each agent's own documented fix: Claude Code's unconfined profile for/usr/bin/bwrap, Codex'sbwrap-userns-restrict, Cursor's AppArmor package (#784) (#853).
Install openmoat 0.26.0
Install prebuilt binaries via shell script
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/crocodile-labs/openmoat/releases/download/v0.26.0/openmoat-installer.sh | shInstall prebuilt binaries via powershell script
powershell -ExecutionPolicy Bypass -c "irm https://github.com/crocodile-labs/openmoat/releases/download/v0.26.0/openmoat-installer.ps1 | iex"Install prebuilt binaries via Homebrew
brew install crocodile-labs/tap/openmoatDownload openmoat 0.26.0
| File | Platform | Checksum |
|---|---|---|
| openmoat-aarch64-apple-darwin.tar.xz | Apple Silicon macOS | checksum |
| openmoat-x86_64-apple-darwin.tar.xz | Intel macOS | checksum |
| openmoat-x86_64-pc-windows-msvc.zip | x64 Windows | checksum |
| openmoat-aarch64-unknown-linux-gnu.tar.xz | ARM64 Linux | checksum |
| openmoat-x86_64-unknown-linux-gnu.tar.xz | x64 Linux | checksum |
| openmoat-aarch64-unknown-linux-musl.tar.xz | ARM64 MUSL Linux | checksum |
| openmoat-x86_64-unknown-linux-musl.tar.xz | x64 MUSL Linux | checksum |
Verifying GitHub Artifact Attestations
The artifacts in this release have attestations generated with GitHub Artifact Attestations. These can be verified by using the GitHub CLI:
gh attestation verify <file-path of downloaded artifact> --repo crocodile-labs/openmoatYou can also download the attestation from GitHub and verify against that directly:
gh attestation verify <file-path of downloaded artifact> --bundle <file-path of downloaded attestation>