Skip to content

v0.3.0

Choose a tag to compare

@github-actions github-actions released this 10 Oct 04:00
· 359 commits to main since this release

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