Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Oct 02:44
· 224 commits to main since this release

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