Skip to content

0.4.0 - 2026-10-11

Choose a tag to compare

@github-actions github-actions released this 11 Oct 15:12
98683de

Alpha: the hook's decisions are not enforced by the operating system (ADR-013). Only commands inside the host sandboxes moat init configures, or under moat run, are confined by the OS. Elsewhere an allowed call runs with your permissions, so a classifier mistake is a security bug.

Release Notes

Added

  • moat doctor warns about guard calls denied for taking over 10 s, and, with Codex on Linux, when the kernel lets a command type into the terminal (#456).

Changed

  • After upgrading, run moat init and moat sandbox sync so the installed hooks and sandbox settings pick up the changes below.
  • Claude Code and Cursor WebSearch are now governed as web.search; a policy.yaml without web.search under defaults asks for every search, so add web.search: allow to keep searches silent (#455).
  • Claude Code's file tools now refuse the paths the policy denies on every OS, including .env.example, which the hook would allow (#459).
  • Existing policies keep their project-fs rule; add "!${project}/**/.git/**" to its fs.write list (as new policies have) to ask before writes to nested .git (#462).

Security

  • The moat binary is protected by its recorded path, link target and directory wherever it is installed, and moat init refuses one inside a project or temp directory (#458).
  • Claude Code's own deny rules keep secrets, OpenMoat's files and the moat binary out of its file tools even when the hook is missing or killed (#459) (#465).
  • Writing a .git file or directory below the project root asks, like the root's .git (#462).
  • git --git-dir=… asks, and git opens a planted bare repository only when named (safe.bareRepository=explicit) under moat run, Claude Code and Codex (#454) (#464).
  • sqlite3 and duckdb count their database file as a write, so an agent cannot edit ~/.moat/audit.db (#453).
  • Claude Code and Cursor WebSearch is checked and recorded, asks after a secret read and marks the session untrusted (#455).
  • OpenMoat's own output shows control characters in agent text as ?, so a logged escape sequence cannot drive the terminal (#452).

Fixed

  • moat uninstall removes only the Claude Code deny rules OpenMoat added (#457).

Install openmoat 0.4.0

Install prebuilt binaries via shell script

curl --proto '=https' --tlsv1.2 -LsSf https://github.com/crocodile-labs/openmoat/releases/download/v0.4.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.4.0/openmoat-installer.ps1 | iex"

Install prebuilt binaries via Homebrew

brew install crocodile-labs/tap/moat

Download openmoat 0.4.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>