Repository navigation
0.4.0 - 2026-10-11
Alpha: the hook's decisions are not enforced by the operating system (ADR-013). Only commands inside the host sandboxes
moat initconfigures, or undermoat 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 doctorwarns 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 initandmoat sandbox syncso the installed hooks and sandbox settings pick up the changes below. - Claude Code and Cursor
WebSearchare now governed asweb.search; apolicy.yamlwithoutweb.searchunderdefaultsasks for every search, so addweb.search: allowto 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-fsrule; add"!${project}/**/.git/**"to itsfs.writelist (as new policies have) to ask before writes to nested.git(#462).
Security
- The
moatbinary is protected by its recorded path, link target and directory wherever it is installed, andmoat initrefuses one inside a project or temp directory (#458). - Claude Code's own deny rules keep secrets, OpenMoat's files and the
moatbinary out of its file tools even when the hook is missing or killed (#459) (#465). - Writing a
.gitfile 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) undermoat run, Claude Code and Codex (#454) (#464).sqlite3andduckdbcount their database file as a write, so an agent cannot edit~/.moat/audit.db(#453).- Claude Code and Cursor
WebSearchis 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 uninstallremoves 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 | shInstall 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/moatDownload 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/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>