DEV Community

John Menerick
John Menerick

Posted on Originally published at securesql.info

The gLinux Problem: Why DeepMind Ignored the MacBook on Your Desk

Summary: While DeepMind's CaMeLS research formalized dual-model privilege separation, hyperscaler gLinux and cloud ReBAC assumptions leave macOS developer laptops running thin cloud wrappers. Heimdall-Enclave implements dual-LLM capability separation directly atop Darwin Mach ports, MLX unified memory, and an offline <=45us Cedar engine.

Conway's Law governs security tooling just as ruthlessly as compilers: organizations ship architectures that mirror their internal workstation fleets.

Google DeepMind's CaMeLS paper laid out a compelling formal argument for separating privileged planning from untrusted data extraction. Yet if you inspect the developer tooling shipped by cloud-native labs, local execution on macOS remains a Node.js or Python CLI forwarding context over HTTPS.

HYPERSCALER ASSUMPTION (gLinux + Always-On Datacenter):
[Thin CLI] === HTTPS (800ms) ===> [Cloud Model + Zanzibar ReBAC]

HEIMDALL DARWIN-NATIVE ENCLAVE (100% Offline Capable):
[UID 501 Planner] <== Mach Port ==> [UID 502 Untrusted Reader]
        |                                    |
[Cedar Lean 4 <=45us]               [MLX Unified RAM Arena]
Enter fullscreen mode Exit fullscreen mode

Three Places Linux-First Tooling Breaks on macOS

  1. No seccomp-bpf or User Namespaces on XNU: Tools that rely on Linux container primitives silently degrade on macOS—either running unsandboxed on the host or spinning up a heavyweight Linux VM.
  2. Ignored On-Die Coprocessors: Android's Tensor NPU receives bespoke on-device runtime investment while the 16-core Apple Neural Engine and Secure Enclave (SEP P-256) sit idle under generic POSIX ports.
  3. Cloud Authorization Latency: Calling remote policy services adds hundreds of milliseconds per tool step and breaks completely on air-gapped or travel networks.

First-Class Darwin Primitives

Heimdall binds directly to XNU and Apple Silicon hardware:

  • Darwin Seatbelt + Dedicated UIDs: Zero Linux VM layer; sub-millisecond process isolation.
  • Embedded Cedar Engine (p99 <= 45us): Evaluates fine-grained principal/action/resource policies completely offline, backed by 94 Lean 4 modules.
  • Biscuit Attenuation Tokens: Offline cryptographic delegation tokens attenuate permissions across sub-tasks without contacting a central coordinator.

Operational Trade-Offs & Where Not To Deploy This

  • Darwin Specialization: Native Mach port and CoreAuthUI bindings mean Heimdall's daemon is deliberately macOS-specific; cross-platform teams need a separate Linux Landlock/TPM2 runner in CI.

Verify Offline Policy Evaluation

git clone https://github.com/w8mej/heimdall-enclave.git
cd heimdall-enclave && cargo bench -p heimdall-cedar
Enter fullscreen mode Exit fullscreen mode

Top comments (0)