Repository navigation
Releases
v0.5.2
Controls guaranteed in this release (v0.5.2)
Script / interpreter launch (fail-closed)
- Delegating shebang launchers are refused before spawn: a script whose
interpreter is itself a launcher that re-dispatches to another leaf can no
longer swap the executed payload. Kernel shebang parsing — including the
env -Smulti-token form — is shared between the resolver and the launch
driver, so the leaf the OS actually executes is the one the policy and the
pin cover; token drift between the two parsers is closed - Log-share overlap is closed: a log directory that traverses into artifacts
the launch needs refuses, and CRT lookup directories plus interpreter
arguments that would divert the executed leaf are covered by the same
validation - DNS alias judgment is hardened — chained or ambiguous alias targets are
judged against explicit rules only macos-proxy-runenforces therequire_lifetime_boundarygate on
supervised launches
Pinned workloads / verifier
- Launch targets are hashed once through the held pin and re-proved by stamp
instead of being re-read per stage; mid-read rewrites are detected when
re-pinning the held target.pin.rsis split into
anchor/bind/plan/spawn/stamp/workload modules
Policy
arguments { opaque "field" … }declares free-form argument fields that
skip resource classification — for fields that never carry a path, host, or
URL. An object or array value makes the whole subtree below it opaque.
Candidates surface as escaped/params/argumentsJSON pointers, audit
counts them separately, andplanreports their limitsgenerate-policy --policy-version 3emits a draft whose only difference
is the declaredpolicy version=3line
Filesystem grants (macOS exec)
mode="exec"on a globaldefaults.filesystemallow marks a directory
the workload may map code from: macOS emitsfile-read*+
file-map-executableso dyld loads non-system dylibs; Linux treats it as
read (Landlock read rights already includeExecute); Windows lands it as
a read-only grant. Exec implies read, never write — an overlap with a
writable grant, in either direction, is refused at load. The spelling is
global-only and refused per-tool- Independently of policy, every macOS launch derives the workload's own
code roots — the installed runtime prefix, the transitive Mach-O dylib
closure, and an interpreted payload's project dir — and grants them
read+map-executable
Linux / namespaced
- A workload resolving under a masked tree (
/run,/tmpbridges) is
refused before spawn instead of dying at exec; the exec ENOENT stage hint
names the masked tree and the--linux-mechanism nativefallback - Workload-masked tokens no longer leak into probe-attributed refusal prose
CLI / discovery
--unsafe-discovery-best-effort-lifetimekeeps live discovery inside the
Warden sandbox while waiving only the kernel descendant-lifetime boundary —
for macOS / Linux without writable cgroup v2 (descendants can outlive the
run and are reaped best-effort). Conflicts with--static-onlyand
--unsafe-unsandboxed-discovery
Performance
- Launch-time hashing reads each pinned target once (held pin + stamp)
- Auditor: per-tool check storage is shared via
Rc, plain-ASCII argument
classification short-circuits, and normalization is reused — the
extraction and secret-path hot paths no longer allocate redundantly
CI / fuzzing
- A boundary fuzzing harness (
fuzz/workspace,fuzzingfeature gate,
fuzz.ymlworkflow) covers framing, JSON-RPC, DNS-gate wire, and
namespaced-packet inputs with input format tags, in-flight crash
persistence with per-generation crash-dir rotation, chunked framing, and
NAT cap coverage - CI, Linux tests, and MCP server verification now run weekly on
main
(schedule), isolated from push-triggered concurrency so a scheduled run
cannot cancel release evidence
Docs / operations
SECURITY.mdis published and ships inside every release archive; the
remote-gateway deployment guide and maintainer runbooks document driver
placement, adding a protocol revision, and serial composition; Windows
audit-log rotation and per-request protocol revisions are documented
Compatibility / migration
- Delegating shebang launchers are refused — invoke scripts through a real
interpreter - Discovery on hosts without writable cgroup v2 now needs
--unsafe-discovery-best-effort-lifetime(keeps the sandbox, waives the
descendant lifetime boundary) or--unsafe-unsandboxed-discovery - Workloads resolving under masked trees refuse on the namespaced route —
relocate the workload or pass--linux-mechanism native arguments { opaque }fields are never inspected — a field that can
carry a path/host/URL must not be declared opaquemode="exec"is global-only and incompatible with writable overlaps —
an overlap refuses at load- The
darwin-amd64archive is dropped (GitHub retired the last Intel
macOS runner image): x86-64 macOS users build from source; the release
ships five archives - Pinned-launch hashing moved to held-pin + stamp — a payload rewritten
mid-launch surfaces as a refusal instead of a post-spawn mismatch
Validation
The release-preflight gate held: all six required workflows green on the
exact tagged commit (09b0d7c) — CI, Platform tests, Container tests, Go
runtime, Linux tests (real AArch64), and MCP server verification. New
coverage: the boundary fuzz targets in CI, in-flight crash persistence,
masked-tree workload refusal, arguments { opaque } e2e, exec-grant dylib
loading on macOS, shebang/CRT share-traversal fixtures, and
substrate_boundary_gap-gated runner-launch legs.
Remaining limitations
entrypoint-hash: on POSIX-native and Windows the verify→exec window
narrows to the pre-spawn path re-check (Windows additionally holds the
share-mode pin); only the namespaced bind-mount removes it- v3 migration is preview-only:
generate-policy --policy-version 3stamps
the declared version but emitted rules stay v2-shaped;check's
migration preview remains informational arguments { opaque }subtrees are uninspected by design —
over-declaring widens the uninspected surface- The discovery sandbox covers the interpreted runtimes exercised in CI
(Node, Python, Go fixture); loaders outside the documented runtime
surface may still need--unsafe-unsandboxed-discovery ebpf-run/macos-proxy-runremain opt-in PoCs;namespaced-runstays
pocin the capability matrix- namespaced: names sharing an IP are indistinguishable; DoH via an allowed
destination and DoT remain structural limits; link-local v6 is refused;
external v6 needs host reachability - Windows unchanged: no destination pinning under AppContainer,
psec
conditional,os.fs=unknownby default - Landlock ABI < 6 → AF_UNIX/signal
not_applied; pathunix=needs
ABI ≥ 9 - Kernel-internal denials remain unobservable (
file_denied/
process_deniedstay reserved event types) defaults.environmentgaps are diagnosed, not auto-corrected- No
darwin-amd64archive — x86-64 macOS builds from source - The six release workflows run on manual dispatch
- TOCTOU between RPC checks and internal server behavior remains a design
boundary; SIGKILL can lose the audit tail — use--audit-sync
v0.5.1
Controls guaranteed in this release (v0.5.1)
Sandboxed live discovery (Legislator)
generate-policy --live-discovery now executes the target server inside the OS sandbox by default instead of bare on the host:
- The probe runs with a private TMPDIR cwd, no ambient environment inheritance, and no network; fs grants are scoped to the verified image, the interpreter's install prefix (resolved and argv0 spellings, including venv
pyvenv.cfghome bases),node_modulesancestor roots, PATH-resolved helper prefixes,/etc/ssl/**, and a/dev/nullwrite — matching the documented runtime profiles - The probe's syscall surface follows the documented interpreter baselines (
uname,eventfd2,timerfd_*,socketpair, …), so Node'suv_loop_initand CPython startup work under seccomp --unsafe-unsandboxed-discoveryis the documented opt-out (implies--live-discovery, ambient environment);--self-testnever uses it- Carve walks run on the blocking pool under a shared deadline; a timed-out or failed walk refuses the spawn with an
Inconclusiveverdict — discovery never proceeds unguarded - Argument-derived carve roots skip option tokens and expand around reserved secret names (
.env,.ssh,.gnupg,.aws) into per-entry grants with the excluded paths recorded as denied
Pinned workloads / verifier
entrypoint-hashpinned scripts now launch by their real path instead of a snapshot spelling — Node ESM servers with relative imports andnode_modulesancestor walks run under the pin on all three OSes, closing the v0.5.0 limitation. The executable keeps its snapshot exec (memfd/staged/share-mode handle);server.connecteddistinguishesexe_exec=fd|stagedfromentrypoint_exec=path- On the namespaced route init re-reads the pinned object through the held descriptor, re-hashes it against the manifest digest, and bind-mounts the verified bytes over the payload path — the verify→exec window is closed in-namespace, not just narrowed
- fs grants rooted under a masked tree (
/run, and/tmpwhen the resolv.conf bridge needs it) or on filesystems Landlock cannot mediate (WSL drvfs/9p) refuse before spawn with the cause named — dead policy never reaches launch - Windows holds the share-mode pin for the entire session, blocking a payload swap outright
Policy
policy version=3: allow sides compose additively (union) across extends/include/when/profile/server-defaults layers; a block opts back into v2 replacement withreplace=#true.defaults.syscallsgainsdenyentries that deny-wins prune everywhere (aliases share the syscall number — a deniedforkclosesclone); a tool may name multiple profiles; bareallow none=#truerequiresreplace=#true. The spawn execve gate requires a literalexecvegrant. v1/v2 documents keep their semantics, guarded at parse, schema, and validationpolicy resolve --version-diffreports each effective field the rule change moves;checkreplays the load under v3 and reports an informationalmigrationmember (unchanged/fields_differ/simulation_failed) — status, reason_code, and the exit code never move// REVIEWmarkers carry kinds (header,schema-unsupported,blocked-capability,unbound-tool,hash-pin-host,regenerate-on-update,unbound-workload,runtime-seed) with per-kind remediation incheckoutput and in generated draftsgenerate-policyseeds runtime fs/environment defaults for interpreted workloads — interpreter prefix, venv/pyvenv.cfghome validated against a real base install, package trees — plus the interpreter seccomp baseline, markedruntime-seedREVIEWdefaults.environmentnames absent from the parent environment (or holding a dangling absolute path) surface as names-only diagnostics onlaunch.env,server.connected(env_missing=/env_path_missing=), and stderr — never values, never a refusal
Auditor
- The session call tally (per-tool calls and denials) is bounded by entry-count and byte budgets with
truncatedflags; the denial tally counts target-policy denials only. The launch report forwards the tally and correction candidates - The
tools/listverified-set recheck and the child write hold one epoch so the gate cannot flip mid-write; the epoch-held write is bounded (5s) and poisons the stdin writer on timeout — a stalled write can no longer deadlock the session - A 16 MiB shared budget bounds retained
tools/listpage bytes in both the discovery accumulator and the Auditor relay — page/frame caps alone no longer admit unbounded tool definitions tools_list.filterednow recordsoutcome=success(a filtered list is a successful shaped response); blocked verification records are committed instead of dropped- Init-order denials name the offending direction to the peer
tools/callrefusals for unadvertised names stay membership-blind on the wire but audit as authorization denialsjs_bind: TypeScript return-type annotations in arrow heads parse, keyword matching is whole-identifier, dynamicchild_processre-aliases resolve as unresolved,...restimports bind as namespaces — a semicolon-free arrow can no longer steal the next declaration's body; Python tool registrations report output-cap truncation
Audit
- Schema "2.0": every record carries a
session_idunique within the same millisecond;policy.loadedorderssession_idbefore the percent-encodedsourceso byte-budget truncation cannot clip the identifier;secret_overlay=falseis recorded when the overlay is off;allow_replaceable_paths:trueis recorded when the opt-out env is set - SIGUSR1 reopens a live file sink — logrotate coexistence on Unix
- The audit sink pins its parent directory and re-verifies the leaf name still names the opened file before committing durable acknowledgments — entry-swap attacks surface as audit failures
Linux / namespaced
CLONE_NEWPIDis probed at selection andpidnsis reported as measured evidence;/procremount readiness is probed soautono longer selects a route that fails at init- DNS-gate bind races are retried; SCM_RIGHTS cmsg is validated before the fd read; deny-wins is enforced across seccomp layers and an
execvedeny is refused underallow_degraded
Security hardening (fail-closed)
- Trusted policy sources: the root document and every file it reaches (extends/include ancestors,
@fileschemas) must sit on owned, write-restricted, replacement-resistant paths on every launch route — replaceable sources refuse.MCP_WRIT_ALLOW_REPLACEABLE_PATHSis the documented opt-out, is recorded on the launch report, and marks the gateunverifiedinplan - Descendant teardown: a supervised launch refuses without a kernel-enforced teardown path;
setsid/pgid escapees are attributed by a per-launch lineage tag and killed via a pre-kill descendant snapshot plus the subreaper orphan sweep — sibling sessions' children are never signaled; releasing a child handle sweeps its descendants - Guard environment variables (
MCP_WRIT_*) are stripped from workload environments; share roots are bounded by a registry; malformed CNAME/DNAME targets fail closed - Driver/helper resolution is pinned to administrator-owned objects with fail-closed re-verification; handle-pinned reads stay within a canonical root; group-writable components are refused; inode ctime is pinned; exec duplicates use
F_DUPFD_CLOEXEC - Mach-O executable sections are bounded and coalesced; the discovery tmpdir is created exclusively at 0700
- DNS: authority/additional section names are judged against explicit deny rules only — delegation NS/glue outside the allowlist mints no grants but no longer refuses the response; revalidation races and unjudged sections fail closed
- Release authorization: the workflow's
release-gatejob requires the tag commit reachable from the default branch and a pusher holding admin/maintain
CLI
<subcommand> --helpnow shows that subcommand's options instead of the sibling list; stray sibling tokens route to the correct parser
Compatibility / migration
- Audit schema 2.0:
session_idadded to every record;policy.loadedtoken order changed;sourcepercent-encoded — update external log parsers --live-discoveryis sandboxed by default; pass--unsafe-unsandboxed-discoveryto restore ambient execution- Policies reachable through replaceable paths now refuse — CI/shared workspaces need
MCP_WRIT_ALLOW_REPLACEABLE_PATHS=1, which is always reported entrypoint-hashlaunches by real path: on the native POSIX and Windows routes the verify→exec window narrows to the pre-spawn path re-check (Windows additionally holds the share-mode pin); only the namespaced bind-mount closes it entirely- v3 composition is opt-in; v1/v2 semantics are unchanged and
check's migration preview is informational
Validation
release-preflight.sh still gates the tag on six workflows at the exact commit. New coverage: pinned Node entrypoint e2e with an ESM relative import (initialize + tools/list under the pin on all three OSes), env-gap diagnostics, v3 migration preview, cgroup-v2 delegation plus capability probes on hosted runners, and trusted-source DACL fixtures.
Remaining limitations
entrypoint-hash: on POSIX-native and Windows the verify→exec window narrows to the pre-spawn path re-check; only the namespaced bind-mount removes it- v3 migration is preview-only — no
generate-policyoutput switch yet; drafts still emit v2-style documents - The discovery sandbox covers the interpreted runtimes exercised in CI (Node, Python, Go fixture); loaders outside the documented runtime surface may still need
--unsafe-unsandboxed-discovery ebpf-run/macos-proxy-runremain opt-in PoCs;namespaced-runstayspocin the capability matrix- namespaced: names sharing an IP are indistinguishable; DoH via an allowed destination and DoT remain structu...
v0.5.0
Controls guaranteed in this release (v0.5.0)
Linux egress
The namespaced route is now the product path, selected per launch (unexpressible requirements refuse before spawn):
--linux-mechanism auto|namespaced|native(defaultauto, CLI only — the mechanism is host-dependent, not policy semantics):autoprefers the unprivileged namespaced route when userns/netns/TUN probing succeeds, falls back to Landlock+seccomp native only when it can express the request, and refuses otherwise. Explicitnamespacednever falls back; explicitnativechecks the request first- Dual-stack: IPv6 flows over the TUN peer, TCP/UDP relay picks the host socket by destination family, AAAA goes through the same gate/grant path, and v6
resolv.conf/--dns-upstreamupstreams work. Extension headers, fragments, and ICMPv6 are dropped by spec; link-local v6 is always refused; unreachable v6 refuses only the affected flows - UDP allows propagate through generation, inheritance, and export; dead deny-all UDP allows are refused before spawn on the legacy container-runner dispatch
- Losing the proxy mid-traffic kills the workload and closes the audit with
supervision_lost— verified by fault-injection e2e - Selection, refusal reasons, and applied granularity come from one decision object into
plan/--report/JSONL; native never advertises Landlock port limits as IP/CIDR or UDP enforcement
Native-route IPC containment (Linux)
- Landlock scope on ABI ≥ 6 covers abstract UNIX sockets and signals, closing the abstract-connect / sendto / kill escapes. Below ABI 6 those classes report
os.ipc.*=not_appliedinstead of claiming enforcement - Under a deny posture
socket()is family-pinned to AF_INET/AF_INET6,socketpair(AF_UNIX, SOCK_DGRAM)is refused, andMSG_FASTOPENis pinned clear on destination-bearing sends - Schema-v2
unix=opt-in:unix="*"grants the family; path-scopedunix=needs Landlock ABI ≥ 9 (ResolveUnix) and refuses below; non-Linux and the namespaced route refuse it at load/selection
Policy
mcp-writ checkre-verifies bound pins (tools-list/binary/entrypoint/lockfile/docker-manifest hashes) against live files — per-pinverified/mismatch/unreadable/unverified,plan-style exit codes (clean 0 / drifted 1 / invalid 2), CI-usable.// REVIEWmarkers are scanned at load (MCP_WRIT_REVIEW_MODE, warn default)mcp-writ policy resolveprints merged KDL with per-field provenance (file, node, set/union/replace/prune)- Inheritance fixes: redeclared tools keep parent fs/network allowlists,
defaultscan no longer widen a tool'sallow none,when-derived and ancestor-declared fields surviveinclude, posture/inbound move only when declared, and an unknown ancestorpolicy versionis refused. Weakening directions emit named load warnings - v2 strictness: unknown/duplicate nodes, malformed
profile(s), extraextends/includeargs, and unknown transports are refused at load (v1 warns)
Auditor
--max-frame-bytes(default 10 MiB, matching the TS SDK): an oversize frame is drained to its newline, its id recovered, and the request alone fails with-32001— the session continues and the denial is audited (frame-too-large). Only an oversize answer to the Auditor's own internaltools/liststill aborts, with a reason- Unsupported
initializeversions are diagnosed on three surfaces — client error, stderr, and the audit record all carry the negotiated and supported versions (unsupported-version); a correctedinitializecan renegotiate - The race where an internal
tools/listabort stranded in-flight client requests is closed — they are answered under their original ids
Schema / manifest
args_schemacoversanyOf/oneOf/allOf/const/minItems/maxItems/uniqueItems/multipleOf,typearrays, boolean schemas, and same-document$ref; evaluation is bounded so a hostile schema cannot stall the Auditor. v2 refuses unsupported keywords at load; v1 warns and stays fail-closed at call time- CC-011 no longer conflicts on explicit
openWorldHint=true; the 9-server / 109-tool corpus runs clean
Hardening (fail-closed)
- Write grants covering policy sources (extends/include ancestors,
@fileschemas) or the--reportdestination refuse the launch - Info-leak oracles closed: tools/call denials collapse hidden-vs-unknown, tools/list errors return a constant message, plan output is terminal-sanitized
- Containers: ONBUILD triggers refused,
COPY --chmod, build networking denied, pinned-share identity re-verified with a parent-directory watch - Audit/egress sinks: the DNS gate exits on a latched
writer_failed; denied-datagram telemetry is sub-budgeted so it cannot starve authorize records; inspect/plan/Dockerfile writes are atomic; the Windows sink verifies reparse-free ancestors and post-open ownership - Peer-controlled values in flat audit fields are percent-encoded — malicious strings can no longer forge
supported=-style fields - Windows granted paths carry non-inherited traverse/read-attribute ACEs on ancestors so realpath-style consumers (git,
Path.resolve) stat through
Compatibility / migration
- Linux
rundefaults to--linux-mechanism auto(namespaced preferred);nativeis the rollback path. Policies that relied on unenforceable requests now refuse instead of launching partially enforced - UNIX-socket servers (docker.sock, PostgreSQL, …) must declare
unix=(policy version=2) - Audit
detailsrenamedversion=torevision=— update external log parsers - v2 policies with misspelled/duplicate nodes or malformed profile arguments may now refuse at load, naming the location
Validation
linux_mechanism_e2e (6 legs on a real kernel — selection, UDP relay, TCP allow/deny, native UDP refusal, no-fallback refusal, live proxy-loss kill); real_servers_e2e (generate → review → run on the five pinned official servers incl. fetch, frame-limit bracketed); check-server ordering on POSIX + Windows; release-preflight.sh gates the tag on six verification workflows at the exact commit.
Remaining limitations
ebpf-run/macos-proxy-runremain opt-in PoCs; the namespaced mechanism is adopted whilenamespaced-runstayspocin the capability matrix- namespaced: names sharing an IP are indistinguishable; DoH via an allowed destination and DoT remain structural limits; link-local v6 is refused; external v6 needs host reachability
- Node
entrypoint-hashpins cannot satisfy ESM servers (the memfd/staged payload cannot resolvenode_modulesancestors) — drop the pin in review;binary-hash/tools-list-hashunaffected - Windows unchanged from v0.4.0: no destination pinning under AppContainer,
psecconditional,os.fs=unknownby default - Landlock ABI < 6 → AF_UNIX/signal
not_applied; pathunix=needs ABI ≥ 9; ABI-5IoctlDevdeliberately unhandled (terminal workloads) - Kernel-internal denials remain unobservable (
file_denied/process_deniedstay reserved event types) - TOCTOU between RPC checks and internal server behavior remains a design boundary; SIGKILL can lose the audit tail — use
--audit-sync
v0.4.0
Controls guaranteed in this release (v0.4.0)
Egress
Destination control is now real on all three OSes (all opt-in routes; the default run path is unchanged and never substitutes silently):
namespaced-run(Linux, unprivileged opt-in PoC): launches the workload in fresh user/net/mount/pid namespaces. A privateresolv.confpins resolution to the embeddeddns-gate; the only outward route is a parent-held TUN fd spliced into a userspace proxy that judges every TCP/UDP destination (static CIDR rules,proto=/port=qualifiers, TTL-scoped dynamic grants minted before the answer is returned, deny wins). Proxy death closes the fd — egress fails closed structurally, not by cleanup.sandbox.network_denied/sandbox.network_allowedrecordlayer=ip, proto, dest, port and the decision basis. Hardcoded resolvers are caught by a port-53 intercept (UDP+TCP)ebpf-run(Linux, privileged opt-in): cgroup eBPF socket-addr programs (INET4/6_CONNECT,UDP4/6_SENDMSG) evaluateconnect()and per-datagram UDP destinations in-kernel and deny withEPERM; kernel-side denials are ring-buffered intosandbox.network_deniedwith pid/session correlation. Setup privilege is dropped inpre_execand never reaches the workload. Any missing capability refuses the launch with a named stage — no silent degrade tounotifyor the plain pipelinemacos-proxy-run(macOS, opt-in PoC): the SBPL profile allows onlyremote tcp "localhost:<port>"; an in-process CONNECT proxy judges name/IP rules per CONNECT and splices bytes after200. Denials emitsandbox.network_deniedlayer=name|ip;sandbox.network_allowedis emitted only once a flow is actually established. Absolute-form DNS queries close the resolver search-domain bypass; WHATWG numeric authorities collapse to their embedded literal-IP judgment
Policy
- v0.3.0 known defect fixed —
allow host="443"-style bare ports now resolve to a port rule; all-digithost=deny entries andproto=/port=qualifiers a backend cannot express are refused at load (fail-closed) instead of being silently widened mode="exec"filesystem grants: executable code maps are a distinct grant class; writable paths are carved out of the exec map rather than refused outright
Hardening (fail-closed)
- Launch is refused when a workload write grant would cover its own audit sink; the sink open path rejects unresolvable spellings and (Windows) reparse-pointed ancestors, and is protected by an owner+SYSTEM DACL
- Paths whose ancestors grant replace access to broad principals are refused (
MCP_WRIT_ALLOW_REPLACEABLE_PATHSdocuments the opt-out); verbatim/device-namespace spellings are rejected consistently - OS helpers and drivers resolve to trusted absolute paths (System32) before spawn
- The child's environment is default-restricted — variables must be explicitly allowed by policy
- A client
tools/listis held until the internally verified tool inventory exists; tool calls arrive only after verification. Tools declaredread_onlyrefuse host/URL arguments at the Auditor
Windows
- PSEC evaluated for default promotion — decision recorded: stays opt-in (
--windows-mechanism psec). Machine architecture is probed (GetNativeSystemInfo); non-AMD64 is refused at capability-probe. FQDN egress is documented as impossible (the v1.0 contract has no loopback exemption); qualified egress rules refuse rather than widen os.fsnow reports honestly:unknownunder the default AppContainer token (ambientALL_APPLICATION_PACKAGESaccess is an observation limit, not a tolerated weakening);verifiedrequiresMCP_WRIT_WINDOWS_LPAC=1or PSEC. Control validation still refusesfailed/skipped/partially_applied
Reporting
mcp-writ capability-matrix: machine-readable mechanism catalog (schema_version: "1");docs/capability-matrix.jsonis a pinned copy byte-compared in CI — implementation/doc drift fails the build- Positioning documented: the native warden is the Linux mainline; stronger boundaries route through
--isolation(Kata / Apple Container / Hyper-V / Windows Sandbox / WSLc / OCI)
Remaining limitations
namespaced-run,ebpf-run,macos-proxy-runare opt-in PoCs. They are validated on real targets (records indocs/validation/), not yet the default pathnamespaced-run: no distinction between names sharing an IP; DoH via an allowed destination and DoT remain structural limits; recorded unexercised legs includesendmmsgmixed destinations, a real QUIC client, mid-connection TTL expiry, cross-session grant separation, v6 extension-header crafting, and proxy/gate SIGKILL mid-trafficebpf-runneedsCAP_BPF/CAP_SYS_ADMIN,CAP_NET_ADMIN, a writable cgroup v2 hierarchy, and kernel cgroup-BPF socket-addr hooks — i.e. a privileged launcher (validated in a privileged container on WSL2 kernel 6.18)macos-proxy-runcovers TCP CONNECT only — UDP and in-sandbox DNS resolution stay denied. The proxy is trusted launcher code; where the supervisor itself is untrusted, use the documented Apple Container NAT/host-gate route- Windows: AppContainer cannot pin destinations —
psecremains conditional (single-build validation on 25H2 26200.9457, preview contract, no environment allow-list, no loopback exemption, ARM64 unverified therefore refused). Under the default mechanismos.fsreportsunknown - Kernel-internal denials (Landlock / seccomp / Job Objects / AppContainer / sandbox-exec) still produce no userspace notification —
file_denied/process_deniedremain reserved event types (unobservable is a specification, not "nothing was denied") - Landlock ABI V4 is tracked as an optional condition and never promoted to
verified - TOCTOU between RPC argument checks and internal server behavior is a design boundary; for
npx-style launches pin the entrypoint hash and the interpreter together - SIGKILL: buffered mode can still lose the audit tail (host-dependent bounds). Use
--audit-syncwhere no loss is acceptable
v0.3.0
Controls guaranteed in this release (v0.3.0)
Audit completeness
- Lifecycle events emitted:
session.started/session.ended,guard.started/guard.stopped(with exit reason anddropped/writer_failedaccounting),policy.loaded/policy.error(policy version, hash,fail_onvalue),server.disconnected - Weakening of controls is audited:
MCP_WRIT_SKIP_SANDBOX,FAIL_ON=none,--dry-run,allow_degraded— a launch with no such record means it ran under full control server.connectedcarries the structuredenforcementmember (backend / restriction / controls / grants + PSEC state) — generated from the same source as--report- SIGKILL resilience:
high+ severity records are flushed+fsynced immediately,--audit-sync(EveryEvent) mode added, tail loss is measured and documented
Egress
- Two-layer egress schema:
cidr=(IP layer) separated fromhost=(name layer);planreports per-layer disposition viaegress_layers - New
dns-gatesubcommand: policy-evaluating resolver; refusals return NXDOMAIN/REFUSED and emitsandbox.network_deniedlayer=name; TTL-scoped dynamic allowlist unotify-run(opt-in PoC): seccomp user notification inspectsconnect()destination IPs; emitssandbox.network_deniedlayer=ip/sandbox.network_alloweddenial_audit_e2epins denial-audit regressions end to end
Remaining limitations
- Kernel-internal denials (Landlock / seccomp / Job Objects / AppContainer / sandbox-exec) produce no userspace notification and cannot be emitted —
file_denied/process_deniedremain reserved event types (unobservable is a specification, not "nothing was denied") unotify-runis a PoC:connect()only,AF_INET/AF_INET6only, sockaddr TOCTOU,sendmsg/sendto/io_uringout of scope, not wired into the default launch path- Known defect — bare-port normalization:
allow host="443"-style entries never emit aNetPortrule (fix scheduled for v0.4 / PR-09). On Landlock ABI V4 kernels this can make every TCPconnectfail with EACCES - The PSEC-state JSONL emit has not yet been exercised on a real Windows launch — the
windows-isolationjob owns re-recording on the merge commit - Residual risks (documented): DoH via an allowed destination doubling as a resolver, ECH, hardcoded resolvers (fail-closed by spec), TTL races, symmetric evaluation of CNAME delegation, shared IPs, userspace proxy reliability
- TOCTOU between RPC argument checks and internal server behavior is a design boundary (filesystem checks are mitigated by Landlock enforcing at
open()time). Fornpx-style launches, pin the entrypoint hash and the interpreter together - SIGKILL: buffered mode can lose the tail (measured bounds are host-dependent). Use
--audit-syncwhere no loss is acceptable
v0.2.0
Controls guaranteed in this release (v0.2.0)
First tagged release — establishes the baseline that later notes build on.
Policy & Auditor
- KDL policy: per-tool
allow/deny(default deny), filesystem and host argument constraints,args_schema,side_effectdeclarations - Denied or unlisted tools are filtered out of
tools/list(tools_list.filteredaudit event) — list visibility andtools/callverdicts are driven by the same predicate - Launch binding:
binary-hash/entrypoint-hashpin the workload;tools-list-hashpins advertised tool definitions and is revalidated acrosstools/list_changed - Bidirectional control: server responses and notifications are policy-checked, not only client requests
- MRTR
input_requiredadditional requests are gated: bound to the tracked originating request, limited totools/call/resources/read/prompts/getorigins and declared elicitation/sampling/roots capabilities; one disallowed entry refuses the whole response (no partial rewriting);requestStateis treated as opaque. Policy schema v2 is the generated form;input_responsesmodes areauto/deny/allow/inspect - Confused-deputy protection (opt-in):
list_files/list_directorydiscovery plusread_fileuse on the fixed names only;../(including percent-encoded forms) is always refused; calls whose path cannot be extracted are refused - The child environment is restricted to an explicit allowlist (
defaults.environment)
Enforcement & reporting
- One enforcement model: control plan / observations / process grants —
planand--reportread the same source - Per-OS applied state is reported honestly; a method that cannot express a policy refuses instead of degrading. The execution-method matrix records
adopted/conditional/candidate/refusedwith the verified environment each claim rests on - Warden: Linux Landlock default-deny filesystem + seccomp allowlist +
no_new_privs; macOSsandbox-execSBPL; Windows AppContainer + Job kill-on-close + DACL grants.--windows-mechanism psec(ProcessSecurityEnvironment v1.0) is an opt-in mechanism: capability is probed before every launch and never falls back to AppContainer - Isolation backends, each declaring its host capability and refusing mismatches rather than substituting silently: OCI container (docker/podman) via
wrap-image/containerize/run-image, Kata (Linux), Apple Container (macOS arm64), Hyper-V isolated Windows containers (+ Windows guest runner), Windows Sandbox behind the stdio relay, WSLc engine (--engine wslc, explicit opt-in only)
Analysis
- Inspector decodes syscall sites in ELF x86-64 and AArch64 (
syscall/rax,svc/x8) and Mach-O arm64 including universal binaries (svc #0x80/x16, XNU BSD syscall + Mach trap tables); scripts are analyzed by source/AST, not native decoding. Unsupported formats reportunsupported/partial/failed— never "no syscalls" generate-policyproduces reviewable drafts with self-tests and dry-run auditing
Platform coverage
- The CLI builds and runs on Windows, Linux, and macOS on x86-64 and ARM64 — six release archives
- AArch64 Linux enforcement is verified on real hardware (
ubuntu-24.04-armleg); x86-64 decode stays on iced-x86 after a decoder comparison
Remaining limitations
- Name-layer egress is Auditor-only on Linux: Landlock ABI 4 controls TCP ports, not hostnames — non-numeric entries are skipped with a warning
- Windows
appcontainercannot pin destinations — outbound is deny-all or unrestricted; a mixed allow list is refused at load psecis conditional: preview-documented wire contract, bare IPv4 destinations only, no loopback exemption, no environment allow-list — validated on a single host build (25H2 26200.9457)- macOS SBPL cannot express remote destinations — only loopback ports carry OS rules; remote hostnames refuse the spawn
- Kernel-internal denials produce no userspace notification;
file_denied/process_deniedremain reserved event types — unobservable is a specification, not "nothing was denied" - Confused-deputy protection is opt-in, covers three fixed tool names, and shares
known_pathsper process — one client / one child is the recommended shape - Windows arm64 and macOS x86-64 build archives exist but sandbox enforcement is unverified on those targets
- Kata / Hyper-V / Apple Container / Windows Sandbox / WSLc are conditional — each claims only its recorded verified environment (
docs/validation/) - Audit records are buffered in-process; a SIGKILL of the supervisor can lose buffered tail records
- TOCTOU between RPC argument checks and internal server behavior is a design boundary; for
npx-style launches pin the entrypoint hash and the interpreter together - Data-plane inspection (response DLP, HTTP/SSE gateways) is out of scope — deploy mcp-writ in series with such inspectors