Skip to content

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Oct 11:47
· 322 commits to main since this release

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