Skip to content

Releases

v0.5.2

Choose a tag to compare

@github-actions github-actions released this 11 Nov 15:25
09b0d7c

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 -S multi-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-run enforces the require_lifetime_boundary gate 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.rs is 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/arguments JSON pointers, audit
    counts them separately, and plan reports their limits
  • generate-policy --policy-version 3 emits a draft whose only difference
    is the declared policy version=3 line

Filesystem grants (macOS exec)

  • mode="exec" on a global defaults.filesystem allow marks a directory
    the workload may map code from: macOS emits file-read* +
    file-map-executable so dyld loads non-system dylibs; Linux treats it as
    read (Landlock read rights already include Execute); 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, /tmp bridges) is
    refused before spawn instead of dying at exec; the exec ENOENT stage hint
    names the masked tree and the --linux-mechanism native fallback
  • Workload-masked tokens no longer leak into probe-attributed refusal prose

CLI / discovery

  • --unsafe-discovery-best-effort-lifetime keeps 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-only and
    --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, fuzzing feature gate,
    fuzz.yml workflow) 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.md is 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 opaque
  • mode="exec" is global-only and incompatible with writable overlaps —
    an overlap refuses at load
  • The darwin-amd64 archive 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 3 stamps
    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-run remain opt-in PoCs; namespaced-run stays
    poc in 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 = unknown by default
  • Landlock ABI < 6 → AF_UNIX/signal not_applied; path unix= needs
    ABI ≥ 9
  • Kernel-internal denials remain unobservable (file_denied/
    process_denied stay reserved event types)
  • defaults.environment gaps are diagnosed, not auto-corrected
  • No darwin-amd64 archive — 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

Choose a tag to compare

@github-actions github-actions released this 03 Nov 19:29

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.cfg home bases), node_modules ancestor roots, PATH-resolved helper prefixes, /etc/ssl/**, and a /dev/null write — matching the documented runtime profiles
  • The probe's syscall surface follows the documented interpreter baselines (uname, eventfd2, timerfd_*, socketpair, …), so Node's uv_loop_init and CPython startup work under seccomp
  • --unsafe-unsandboxed-discovery is the documented opt-out (implies --live-discovery, ambient environment); --self-test never uses it
  • Carve walks run on the blocking pool under a shared deadline; a timed-out or failed walk refuses the spawn with an Inconclusive verdict — 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-hash pinned scripts now launch by their real path instead of a snapshot spelling — Node ESM servers with relative imports and node_modules ancestor 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.connected distinguishes exe_exec=fd|staged from entrypoint_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 /tmp when 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 with replace=#true. defaults.syscalls gains deny entries that deny-wins prune everywhere (aliases share the syscall number — a denied fork closes clone); a tool may name multiple profiles; bare allow none=#true requires replace=#true. The spawn execve gate requires a literal execve grant. v1/v2 documents keep their semantics, guarded at parse, schema, and validation
  • policy resolve --version-diff reports each effective field the rule change moves; check replays the load under v3 and reports an informational migration member (unchanged/fields_differ/simulation_failed) — status, reason_code, and the exit code never move
  • // REVIEW markers carry kinds (header, schema-unsupported, blocked-capability, unbound-tool, hash-pin-host, regenerate-on-update, unbound-workload, runtime-seed) with per-kind remediation in check output and in generated drafts
  • generate-policy seeds runtime fs/environment defaults for interpreted workloads — interpreter prefix, venv/pyvenv.cfg home validated against a real base install, package trees — plus the interpreter seccomp baseline, marked runtime-seed REVIEW
  • defaults.environment names absent from the parent environment (or holding a dangling absolute path) surface as names-only diagnostics on launch.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 truncated flags; the denial tally counts target-policy denials only. The launch report forwards the tally and correction candidates
  • The tools/list verified-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/list page bytes in both the discovery accumulator and the Auditor relay — page/frame caps alone no longer admit unbounded tool definitions
  • tools_list.filtered now records outcome=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/call refusals for unadvertised names stay membership-blind on the wire but audit as authorization denials
  • js_bind: TypeScript return-type annotations in arrow heads parse, keyword matching is whole-identifier, dynamic child_process re-aliases resolve as unresolved, ...rest imports 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_id unique within the same millisecond; policy.loaded orders session_id before the percent-encoded source so byte-budget truncation cannot clip the identifier; secret_overlay=false is recorded when the overlay is off; allow_replaceable_paths:true is 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_NEWPID is probed at selection and pidns is reported as measured evidence; /proc remount readiness is probed so auto no 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 execve deny is refused under allow_degraded

Security hardening (fail-closed)

  • Trusted policy sources: the root document and every file it reaches (extends/include ancestors, @file schemas) must sit on owned, write-restricted, replacement-resistant paths on every launch route — replaceable sources refuse. MCP_WRIT_ALLOW_REPLACEABLE_PATHS is the documented opt-out, is recorded on the launch report, and marks the gate unverified in plan
  • 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-gate job requires the tag commit reachable from the default branch and a pusher holding admin/maintain

CLI

  • <subcommand> --help now 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_id added to every record; policy.loaded token order changed; source percent-encoded — update external log parsers
  • --live-discovery is sandboxed by default; pass --unsafe-unsandboxed-discovery to 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-hash launches 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-policy output 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-run remain opt-in PoCs; namespaced-run stays poc in the capability matrix
  • namespaced: names sharing an IP are indistinguishable; DoH via an allowed destination and DoT remain structu...
Read more

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 02:44

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 (default auto, CLI only — the mechanism is host-dependent, not policy semantics): auto prefers 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. Explicit namespaced never falls back; explicit native checks 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-upstream upstreams 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_applied instead of claiming enforcement
  • Under a deny posture socket() is family-pinned to AF_INET/AF_INET6, socketpair(AF_UNIX, SOCK_DGRAM) is refused, and MSG_FASTOPEN is pinned clear on destination-bearing sends
  • Schema-v2 unix= opt-in: unix="*" grants the family; path-scoped unix= needs Landlock ABI ≥ 9 (ResolveUnix) and refuses below; non-Linux and the namespaced route refuse it at load/selection

Policy

  • mcp-writ check re-verifies bound pins (tools-list/binary/entrypoint/lockfile/docker-manifest hashes) against live files — per-pin verified/mismatch/unreadable/unverified, plan-style exit codes (clean 0 / drifted 1 / invalid 2), CI-usable. // REVIEW markers are scanned at load (MCP_WRIT_REVIEW_MODE, warn default)
  • mcp-writ policy resolve prints merged KDL with per-field provenance (file, node, set/union/replace/prune)
  • Inheritance fixes: redeclared tools keep parent fs/network allowlists, defaults can no longer widen a tool's allow none, when-derived and ancestor-declared fields survive include, posture/inbound move only when declared, and an unknown ancestor policy version is refused. Weakening directions emit named load warnings
  • v2 strictness: unknown/duplicate nodes, malformed profile(s), extra extends/include args, 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 internal tools/list still aborts, with a reason
  • Unsupported initialize versions are diagnosed on three surfaces — client error, stderr, and the audit record all carry the negotiated and supported versions (unsupported-version); a corrected initialize can renegotiate
  • The race where an internal tools/list abort stranded in-flight client requests is closed — they are answered under their original ids

Schema / manifest

  • args_schema covers anyOf/oneOf/allOf/const/minItems/maxItems/uniqueItems/multipleOf, type arrays, 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, @file schemas) or the --report destination 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 run defaults to --linux-mechanism auto (namespaced preferred); native is 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 details renamed version= to revision= — 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-run remain opt-in PoCs; the namespaced mechanism is adopted while namespaced-run stays poc in 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-hash pins cannot satisfy ESM servers (the memfd/staged payload cannot resolve node_modules ancestors) — drop the pin in review; binary-hash/tools-list-hash unaffected
  • Windows unchanged from v0.4.0: no destination pinning under AppContainer, psec conditional, os.fs = unknown by default
  • Landlock ABI < 6 → AF_UNIX/signal not_applied; path unix= needs ABI ≥ 9; ABI-5 IoctlDev deliberately unhandled (terminal workloads)
  • Kernel-internal denials remain unobservable (file_denied/process_denied stay 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

Choose a tag to compare

@github-actions github-actions released this 15 Oct 11:47

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 private resolv.conf pins resolution to the embedded dns-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_allowed record layer=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) evaluate connect() and per-datagram UDP destinations in-kernel and deny with EPERM; kernel-side denials are ring-buffered into sandbox.network_denied with pid/session correlation. Setup privilege is dropped in pre_exec and never reaches the workload. Any missing capability refuses the launch with a named stage — no silent degrade to unotify or the plain pipeline
  • macos-proxy-run (macOS, opt-in PoC): the SBPL profile allows only remote tcp "localhost:<port>"; an in-process CONNECT proxy judges name/IP rules per CONNECT and splices bytes after 200. Denials emit sandbox.network_denied layer=name|ip; sandbox.network_allowed is 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-digit host= deny entries and proto=/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_PATHS documents 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/list is held until the internally verified tool inventory exists; tool calls arrive only after verification. Tools declared read_only refuse 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.fs now reports honestly: unknown under the default AppContainer token (ambient ALL_APPLICATION_PACKAGES access is an observation limit, not a tolerated weakening); verified requires MCP_WRIT_WINDOWS_LPAC=1 or PSEC. Control validation still refuses failed/skipped/partially_applied

Reporting

  • mcp-writ capability-matrix: machine-readable mechanism catalog (schema_version: "1"); docs/capability-matrix.json is 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-run are opt-in PoCs. They are validated on real targets (records in docs/validation/), not yet the default path
  • namespaced-run: no distinction between names sharing an IP; DoH via an allowed destination and DoT remain structural limits; recorded unexercised legs include sendmmsg mixed destinations, a real QUIC client, mid-connection TTL expiry, cross-session grant separation, v6 extension-header crafting, and proxy/gate SIGKILL mid-traffic
  • ebpf-run needs CAP_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-run covers 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 — psec remains conditional (single-build validation on 25H2 26200.9457, preview contract, no environment allow-list, no loopback exemption, ARM64 unverified therefore refused). Under the default mechanism os.fs reports unknown
  • Kernel-internal denials (Landlock / seccomp / Job Objects / AppContainer / sandbox-exec) still produce no userspace notification — file_denied/process_denied remain 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-sync where no loss is acceptable

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 04:00

Controls guaranteed in this release (v0.3.0)

Audit completeness

  • Lifecycle events emitted: session.started/session.ended, guard.started/guard.stopped (with exit reason and dropped/writer_failed accounting), policy.loaded/policy.error (policy version, hash, fail_on value), 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.connected carries the structured enforcement member (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 from host= (name layer); plan reports per-layer disposition via egress_layers
  • New dns-gate subcommand: policy-evaluating resolver; refusals return NXDOMAIN/REFUSED and emit sandbox.network_denied layer=name; TTL-scoped dynamic allowlist
  • unotify-run (opt-in PoC): seccomp user notification inspects connect() destination IPs; emits sandbox.network_denied layer=ip / sandbox.network_allowed
  • denial_audit_e2e pins 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_denied remain reserved event types (unobservable is a specification, not "nothing was denied")
  • unotify-run is a PoC: connect() only, AF_INET/AF_INET6 only, sockaddr TOCTOU, sendmsg/sendto/io_uring out of scope, not wired into the default launch path
  • Known defect — bare-port normalization: allow host="443"-style entries never emit a NetPort rule (fix scheduled for v0.4 / PR-09). On Landlock ABI V4 kernels this can make every TCP connect fail with EACCES
  • The PSEC-state JSONL emit has not yet been exercised on a real Windows launch — the windows-isolation job 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). For npx-style launches, pin the entrypoint hash and the interpreter together
  • SIGKILL: buffered mode can lose the tail (measured bounds are host-dependent). Use --audit-sync where no loss is acceptable

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 07 Oct 11:18

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_effect declarations
  • Denied or unlisted tools are filtered out of tools/list (tools_list.filtered audit event) — list visibility and tools/call verdicts are driven by the same predicate
  • Launch binding: binary-hash/entrypoint-hash pin the workload; tools-list-hash pins advertised tool definitions and is revalidated across tools/list_changed
  • Bidirectional control: server responses and notifications are policy-checked, not only client requests
  • MRTR input_required additional requests are gated: bound to the tracked originating request, limited to tools/call/resources/read/prompts/get origins and declared elicitation/sampling/roots capabilities; one disallowed entry refuses the whole response (no partial rewriting); requestState is treated as opaque. Policy schema v2 is the generated form; input_responses modes are auto/deny/allow/inspect
  • Confused-deputy protection (opt-in): list_files/list_directory discovery plus read_file use 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 — plan and --report read 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/refused with the verified environment each claim rests on
  • Warden: Linux Landlock default-deny filesystem + seccomp allowlist + no_new_privs; macOS sandbox-exec SBPL; 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 report unsupported/partial/failed — never "no syscalls"
  • generate-policy produces 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-arm leg); 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 appcontainer cannot pin destinations — outbound is deny-all or unrestricted; a mixed allow list is refused at load
  • psec is 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_denied remain 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_paths per 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