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