Repository navigation
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