Skip to content

0.26.0 - 2026-11-23

Choose a tag to compare

@github-actions github-actions released this 23 Nov 22:20
4e82c50

Alpha: the hook's decisions are not enforced by the operating system (ADR-013). Only commands inside the host sandboxes openmoat init configures, or under openmoat 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 proxy for Codex takes only the hook decision with the exact threadId and callId Codex 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 sent SIGTERM to 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, /usr but 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; persistence covers the system's cron and systemd folders, /Library/LaunchDaemons and /Library/LaunchAgents, systemctl enable and launchctl load; a fetch tool reaches no address curl cannot (an IP address in any spelling is net, plain localhost still defers) and a URL inside a URL (?target=http://169.254.169.254/) is checked for fetch tools and curl alike; token-egress knows 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's sandbox.json, which cannot deny a path inside one it grants, keeps /etc granted and lists the new secret paths in it as wider than the policy (cursor.system-folder); an openmoat allow --dir grant in /usr/local still 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 apiKeyHelper and statusLine, a project's hook files and hook and plugin folders, Claude Code's installed plugins (hooks/hooks.json and the manifest's hooks), Cline's other hook files and .git/config programs (core.fsmonitor, core.pager, core.sshCommand, ! aliases, …). While one is new or changed, openmoat status, openmoat doctor and openmoat watch name it with the shell classifier's verdict on its command until a person runs openmoat hooks accept in a terminal, and openmoat hooks list lists them. Only one whose command the classifier denies (a plugin update adding curl … | sh) changes the agent's calls: they are denied (rule foreign-hook) and status exits 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 first openmoat init after 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 openmoat is 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. Run openmoat init again 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 --widen decides 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 --fixtures files, 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 upgrade lists what an upgrade widens and applies it only with --accept-widening; openmoat trust and openmoat policy install show 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 with diff-widens (docs/POLICY.md §8.3, ADR-111) (#852).
  • On Linux 7.2 and later (Landlock ABI 10), openmoat run also 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 with landlock 0.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 doctor prints it for each tier this system can start and for the hook alone (0), and openmoat run --print-boundary and the run's boundary record carry it (score). (#852)
  • sandbox.strict: true (your own policy only): openmoat run starts 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 run command in openmoat status and doctor, and the sandboxed-start question of openmoat init. openmoat status lists each hook-only agent that openmoat run can confine here and that has no sandboxed-start shim under Needs your attention, with the one command that confines it; openmoat init names 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, a Host header 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 checkpoint signs one, openmoat audit anchor signs 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 doctor shows the public key and checks the newest checkpoint. Logs from earlier releases keep recording and verifying as before; the key is made by openmoat init or 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-review row 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_paths names) and content someone else may have written (a page, a search, an MCP result, an issue read with gh), every call that can send data out, to an allowed host too, needs review with rule lethal-trifecta and 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-egress rule 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/, then git push). A send after many outside reads with nothing packed stays recorded until its thresholds are measured. Run openmoat policy upgrade to 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 (../x was read as /x), and a command written with its program's directory, ./ or ~ (#852).
  • openmoat mcp proxy speaks MCP 2026-07-28 beside the 2025 revisions, read from each message: it pins a server's server/discover answer (without the ttlMs and cacheScope cache hints) as it pins the initialize answer, and holds the whole server, all its calls refused, when a result's _meta server 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 not https, 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's inputRequests (#853).
  • A tool's x-mcp-header mappings are named in openmoat mcp accept and 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 tool install's version, an image digest), read offline; a new release holds the server as a changed definition does, so npx -y postmark-mcp moving to a new release needs a person again (#853).

Added

  • openmoat init --hooks-only writes 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 json prints one document for scripts and asks no question, so it needs --hosts, --yes or --dry-run (from a contribution by Marlon Costa, #846). (#851)
  • Commands run through rtk (Rust Token Killer) and direnv exec DIR are classified as the command they run: rtk git reset --hard is denied as git reset --hard, and rtk err --shell bash '…' and rtk run -c '…' as the script they run; rtk's own subcommands are read as what they do (rtk read F as a read of F, rtk env as an environment dump), and direnv exec checks its directory and a file named in its place (from a contribution by Marlon Costa, #845) (#851).
  • Argument conditions on deny and review rules (when:): under/not_under, host_in/host_not_in, in/not_in (recipient lists), matches/not_matches and provenance: 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 run on 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 --write paths are refused, and .git, .moat and 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-boundary and openmoat doctor say so, and the protection score counts both as missing (at most 55/100 on Windows). Batch files such as npm .cmd shims are not started; openmoat mcp wrap keeps servers out of the tier unless --sandbox is given (ADR-115) (#853).

Changed

  • openmoat status, openmoat doctor and openmoat watch warn 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 --widen ranks each taint: key instead of asking a person to read the section: trifecta: deny → review and an entry gone from private_paths widen, the reverse narrows. A rule's when conditions 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, watch and hooks read 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 install and 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: each openmoat guard call takes about half the CPU time it did (0.65 s down to 0.31 s per call in a debug build), and status, doctor and init about 40% less. Release builds were already optimised, so their guard is unchanged. (#853)

Fixed

  • Antigravity CLI: Antigravity 2.0's read_file, write_file and edit_file are decided as reads and writes of the file their Path names, so a secret, a shell startup file or a git hook gets the same verdict as through the other file tools; a call without a Path is still decided as an unknown tool (from a contribution by Marlon Costa, #844) (#851).
  • openmoat mcp proxy gives a server 5 seconds, not one, to close its output and exit after the agent closes its input, so a server started under openmoat run is no longer stopped while its sandbox closes (#852).
  • Linux: openmoat doctor and openmoat status no longer suggest Ubuntu's bwrap-userns-restrict AppArmor profile for Claude Code, whose sandbox fails under it (apply-seccomp: write /proc/self/setgroups (nested userns is capability-restricted …)) even with kernel.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/) and kernel.apparmor_restrict_unprivileged_unconfined, warn for Claude Code when bwrap-userns-restrict applies although bubblewrap starts, and name each agent's own documented fix: Claude Code's unconfined profile for /usr/bin/bwrap, Codex's bwrap-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 | sh

Install 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/openmoat

Download 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/openmoat

You 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>