OpenMoat 0.6.0
Released 2026-10-19. GitHub release v0.6.0.
File provenance taint, package name checks and release age, agents cannot read OpenMoat’s state, audit anchors, signed policy packs, and fixes. Breaking for the library crates’ API; the moat command is unchanged for users.
Security
Section titled “Security”- Session taint follows the files a tainted session writes. A file written by a session that read untrusted content is recorded in the audit log (with the content’s hash for
Write); a later session that reads or runs it (Read,cat,source,bash run.sh,./run.sh,python x.py) while it still holds that content is tainted too, so its writes to CI, build and agent files ask, with a reason naming the file and the session that wrote it. No new asks of its own; a cleanWriteof the file clears it, andtaint: { provenance: false }turns it off (#577). - An install of a package whose name is one typo or a common trick away from a popular package (
pip install reqeusts,npm i lodahs,npm i react_dom,pip install python-requests) asks, naming the package that was probably meant (package-near-miss). The check is offline, against a bundled list of popular names for npm, PyPI, crates.io, RubyGems and Go; popular names and names that resemble none are decided exactly as before.moat allow --alwaysfor such an install also answers its near-miss ask. Existing policies get the group withmoat policy upgrade(#577). moat runkeeps npm and uv off package versions published in the last 7 days (npm_config_before,UV_EXCLUDE_NEWER), so a malicious release taken down within days does not reach the agent;sandbox.package_min_release_age_dayssets the days and0turns it off. A cut-off you set yourself is kept, and a project with auv.lockis left alone (#577).kernel-selfdenies the agent reads of OpenMoat’s state beside the policy: the audit log (audit.db*),policy.lock,hosts.json,approvals.json,trust.json,allowed_signersand the MCP pins inmcp/, whereverMOAT_HOMEputs them. The host sandboxes andmoat runcarry the same denies;policy.yamlstays readable.sqlite3 -readonly ~/.moat/audit.dbis now denied rather than left to the agent. Existing policies get it withmoat policy upgrade(#577).- A policy pack is installed only when its OpenSSH signature verifies against a key a person trusted, and is pinned by the lock, so a pack changed after install denies every call (
kernel-integrity) (#577). moat audit anchoris denied to agents (kernel-self). Existing policies get it withmoat policy upgrade(#577).
moat audit anchor --git <repo>commits the audit log’s head (event, hash, time) onrefs/moat/anchorsin a repository you name, and--file <path>appends it to a file you keep; nothing is pushed or sent anywhere.moat audit verify --against <repo|file>checks today’s log against every anchor and fails, naming the first anchor whose event was deleted or rewritten.moat doctorshows when you last anchored (#577).- Signed policy packs:
moat policy trust-key <key.pub> --name <who>trusts an SSH key to sign policy,moat policy install <pack.yaml> [--sig …]verifies the pack with the systemssh-keygen -Y verify(namespaceopenmoat-policy) and merges its rules aspack:<name>:<id>, andmoat policy removetakes it out. Withrequire_signed_repo_policy: truein the policy, a repository policy’s allow rules apply only when it is signed by a trusted key (.moat/policy.yaml.sig): a signed one needs nomoat trust, and an unsigned one, or one signed by another key, is not trusted even aftermoat trust. Without it nothing changes (#577).
Changed
Section titled “Changed”- The push check gives git 10 s instead of 2 s before a push asks as unchecked (
push-unchecked): starting git can take seconds on Windows and on a loaded machine (#577). - The audit database moves to schema version 4 to record file provenance. Older
moatbuilds cannot open a version-4 audit database (#577). moat run’s first line names its proxy’s loopback port again (network only through OpenMoat's proxy on 127.0.0.1:<port>) (#578).