OpenMoat 0.19.0
Released 2026-11-09. GitHub release v0.19.0.
Security
Section titled “Security”openmoat doctorchecks the mode and owner of the state directory and each file in it that decides or records a call (lock, policy, approvals, trust and host records, audit log, keys): a file other users may write, or one another user owns, is a problem with thechmodorchownthat fixes it, one they may read or a symbolic link is a warning, and--verboselists every file’s mode and owner. Not checked on Windows (ADR-071) (#772).- The lock records the SHA-256 and release of the binary the hooks run, and
openmoat guardcompares the file it runs from with it (hashed once per change of the file, cached beside the lock): other bytes under the same release deny every call untilopenmoat init, andopenmoat statusandopenmoat doctorshow it; an upgrade to another release keeps working and is only reported untilopenmoat initrecords it (ADR-071) (#772). openmoat initwrites the state directory into every hook it installs (guard --host <id> --home <dir>, pinned by the lock with the hook file), andopenmoat guarddecides with that directory whatever the agent’s environment says: aMOAT_HOMEin the hook’s environment that names another directory makes it deny the call. Before, an agent that built its hooks’ environment from a file or setting OpenMoat does not guard could point the guard at another policy and lock. Hooks written by earlier releases still work and show as out of date inopenmoat statusandopenmoat doctoruntil you runopenmoat init(ADR-071) (#772).- A shell command that creates or replaces a project file an agent reads as its hook settings (
.codex/config.toml,opencode.json,.pi/settings.json, by a redirect,tee,cp,mvorsed -i) is denied (project-settings) where that agent would load it and OpenMoat is set up for it, because what it leaves cannot be known before it runs. Reading those files, removing them, moving them away, and same-named files elsewhere keep their verdict; changes through the agent’s file tools are judged by their content as before (#773). - Under
openmoat run, tool commands of Claude Code, OpenCode, goose, Hermes Agent, OpenClaw, the Continue CLI and pi no longer receive the run’s relay token, and a command cannot read it from the agent that started it (macOS: the sandbox denieskern.procargs*; Linux: no grant covers/proc, and a wrapped command gets a Landlock layer of its own). Codex, Cursor, GitHub Copilot CLI, Gemini CLI, the Cline CLI and the Antigravity CLI start tool commands in a way OpenMoat cannot yet tell from their hooks, so theirs still do.openmoat doctornames both groups andopenmoat bench --reporttries the attack (ADR-075) (#774). echo … | base64 <-d | sh ; truewas held for review where the same line without; truewas denied: a decoder’s dash-word after a redirection now counts as its flag (#775).openmoat runno longer lets commands read the shared temp directories:/tmpand macOS’s temp folder are left out of its read roots (the run keeps its own temp directory; macOS keeps its per-user caches), which also closes Kerberos ticket caches in/tmpon Linux without a network namespace (ADR-018) (#775).
- Antigravity CLI (
agy) support:openmoat initwrites a namedopenmoatentry with onePreToolUsehook to~/.gemini/config/hooks.json, shared with the Antigravity app and IDE. Every documented tool is mapped by what it does; a review is sent asforce_askso a saved “Always Allow” cannot answer it, and a savedtoolPermission: always-proceedturns one into a deny. The default policy keeps the agent from changing its hook, settings, MCP and plugin files and from reading its MCP OAuth tokens. Built from the official documentation (no version stated) and not yet checked against a runningagy: what the host does when the hook fails is not documented, so treat a failing hook as letting the call run (#774).
Changed
Section titled “Changed”- Breaking
openmoat-hosts:HookFile::entry,HookFile::upsert,HookFile::state,yaml_hooks::upsert,ConsentFile::upsertandConsentFile::holdstake a&GuardCommand(the binary and the state directory the hook names) instead of the binary as&str, andOwnedFile::texttakes the state directory as a second argument; the crate exportsGuardCommand,HOME_FLAG,encode_homeanddecode_home(#772). - The row that ties an agent session to an
openmoat runnow says that the session’s rows come through the run’s relay, which any program in the run’s sandbox can use, so they show what was asked from inside the run, not that the agent asked it. THREAT_MODEL, LIMITS and ADR-071 say why the relay token cannot be bound to the agent’s hook process on any OS today, and what the run still refuses (ADR-071) (#772). - Breaking
openmoat-hosts:HostgainsAntigravityCli, so an exhaustivematchonHostneeds the new arm;HookFilegainssection,section_switchandturned_off, andUnseengainsfile(#774). - The end-to-end tests run an MCP server that tries to read a planted secret by a relative path, an absolute path and a symbolic link out of its folder and to write outside the project:
openmoat mcp proxy --sandboxis shown to stop each by the files on disk, and the same calls reach the files without it, asdocs/LIMITS.mdnow says (#775).
openmoat runon Linux no longer refuses to start whenTMPDIRis so long that its network namespace’s socket could not be bound; the proof report’s OS rows now run on Linux with bubblewrap (ADR-065) (#775).