OpenMoat 0.15.0
Released 2026-11-05. GitHub release v0.15.0.
Security
Section titled “Security”- Codex and Cursor decide a command from the session’s project. The tool’s working directory is chosen by the model, so it no longer sets the project: a command run from outside the session’s project (Codex’s
workdir, a Cursorcwdoutside every workspace root) is decided as running in the session’s directory. A write from~/Library/LaunchAgentsis checked as that path (#726). - Codex: a bare shell or REPL needs review. A command that starts a shell, REPL, editor or login with no script or command of its own (
bash,python3,node,sqlite3 db,ssh host) needs review, because Codex types later input into it withwrite_stdin, which runs no hook.bash x.sh,python3 x.pyandssh host cmdare decided as before (#726). - Codex:
read_mcp_resourceandview_imageare checked as the resource or image they read (#726). - Hermes Agent: “always” on a review approves that call again and never another call held for the same reason. A relative file path is checked against the directory Hermes started in instead of always needing review; a path that climbs out (
..) and aterminalcall that moves the shell outside that directory need review, and the message names the file and whether it is read or written (#726). - Gemini CLI:
grep_searchandglobwithout adir_path, andread_many_files, are checked over the working directory and thecontext.includeDirectoriesof your settings instead of always asking (#726). - Cursor: a command Cursor runs in its own sandbox that no rule decides is allowed, as Cursor would run it, while OpenMoat’s
sandbox.jsonis installed; it no longer asks (#726). - Cline CLI: the payload limit counts Cline’s two copies of a call’s arguments once, so a file is refused at the same size as on other agents, with a message that says to write it in parts (#726).
openmoat initsays when it moves your own whole-file hook (Cline’sPreToolUse) aside, andinitanduninstallkeep a host file’s permission bits (#726).- Git hook folders need review. Writes to the folders a repository’s
core.hooksPathusually names (.githooks/,.git-hooks/,githooks/,git-hooks/,scripts/git-hooks/) need review (runs-later) and mark the session, because git runs those files on the next commit or push. Folders merely namedhooks(React hooks, docs) stay ordinary writes (#727). - Cline’s workspace hooks need review. Writes to
.clinerules/hooks/and.cline/hooks/, every file of which Cline runs on each tool call, and renames onto.clinerules,.clineor theirhooksfolders need review (runs-later). Rules files in.clinerules/stay ordinary writes (#727). - A quote or a backslash ends a variable’s name, as in the shell:
d=~/.ssh/id; cat "$d"_rsais a read of~/.ssh/id_rsaand denied bysecrets-paths, andecho "$GITHUB_TOKEN"xreadsGITHUB_TOKEN(env-secrets). Before, they were read as unknown variables and deferred (#727). - Editors count as writes.
vi,vim,nvim,nano,emacsandcodesave the file they open, sovim /usr/local/bin/openmoatandnano ~/.moat/policy.yamlare denied bykernel-selfandnvim ~/.zshrcbyshell-rc. An editor on a project file keeps its verdict (#727). - More passwords are masked in the audit log:
mysql -p<password>,PGPASSWORD=,MYSQL_PWD=and other environment names ending inPASSWORD,_KEY,_SECRET,_TOKENor_AUTH,sshpass -p,docker login -p,redis-cli -a,openssl -kand-pass pass:,zip -P,htpasswd -b,Cookie:andSet-Cookie:values,aws configure set aws_secret_access_key, Slack and Discord webhook URLs, and a key given as the user part of a URL. The same flags of other programs (cargo test -p,ssh -p,mkdir -p) keep their values (#728). - An agent cannot run
openmoat guardoropenmoat mcp proxyitself (kernel-self). Only a host runs them, so an agent cannot write audit rows, MCP tickets or a session’s proxy credential for calls it made up.--helpstill works (#728). openmoat allow --lastandopenmoat policy upgrade(and--undo) refuse to re-pin when a pinned file or the lock changed while they waited for your answer (#728).- Claude Code with
blockReadsOutsideWorkingDirectoriesoff: the guard again works out whether the sandbox is in place, so code a session wrote is held for review at once (#728). openmoat runon macOS also denies hard links to every path it denies reading or writing, so a sandboxed command cannot link~/.moat/proxy.keyoraudit.dbinto the project (#728).
@openmoat/sdkis on npm:npm install @openmoat/sdk. The release workflow publishes it through npm’s trusted publishing, with provenance, after the SDK’s conformance tests pass (#730).
Changed
Section titled “Changed”- Cline CLI limits are shown.
openmoat statusanddoctorprint Cline’s limits on a line of their own (cline --yoloruns no hooks; another hook or plugin can change a call after OpenMoat checked it; Cline runs the call when OpenMoat’s script cannot start or is killed after 120 s), and name every otherPreToolUsefile in Cline’s hook folders and every Cline plugin.status --format jsonlists them underother_hooksand gives each agent’slimit(#729). - Linux: plain
openmoat runsays what it leaves open. When it starts, it says on standard error that commands the agent starts can still read and write the project’s.env, create.envrcand write.moatand.git/hooks, and thatopenmoat run --isolatecloses this.openmoat doctorwarns about the same, andstatus,doctorandinitnameopenmoat run --isolatefor an agent without a sandbox of its own (#729). - Agent login files: the gap is written down. They are denied to the agent’s own tool calls but stay readable to programs an allowed command runs, inside every OS sandbox too. ADR-054 (proposed) plans denying them in the host sandboxes that confine only the agent’s commands (#729).
- Library crates:
openmoat-hosts’HookRequesthas a new public fieldsandboxed, plus new helpers andHostSpecfields. See the changelog (#726).
- Card ids are no longer denied. A 13 to 19 digit number counts as a card only in a card’s context: the value of a field named like a card’s (
card,cardNumber,cc,pan,card[number]), or sent beside a security code or expiry such ascvvorexp. A GitHub repository or job id in an API path, an order id or a number in a search is no longer denied. Card numbers in printed groups (4000 1234 5678 9017) count wherever they are (#727). git config user.nameand other reads are allowed, likegit config --get, also after one scope option such as--global. A value after the name, or a subcommand such asedit, still needs review (#727).sed -n "$n"p fin a loop is read as the shell reads it and allowed likesed -n "${n}p"(#727).- Upgrading from 0.13 no longer blocks every call on a large audit log. The first hook call used to copy the whole log to accept the
reviewverdict and could run past the guard’s time budget; the schema step now changes its check in place (#728). - Loading the policy on each hook call is faster: the old
askname check and policy merges no longer parse the policy a second time (#728). - The audit log’s last word matches the answer when a call’s MCP ticket or
openmoat runlink cannot be written after its row (#728). - A crash while the guard decides is denied in the format of the event (a
ConfigChangeis blocked as one), not always as a tool call (#728). - goose:
openmoat statusanddoctorreport goose not protected in a directory whose.agents/plugins/openmoatreplaces OpenMoat’s plugin, name the directory to remove, and warn about the hooks of the project’s other plugins (#729).