Summary: Prompt-level guardrails and regex classifiers cannot create a security boundary when untrusted repository data shares an OS user ID with shell tools. Isolating untrusted synthesis under a dedicated Darwin POSIX UID with sandbox_init and typed Mach IPC eliminates ambient authority at an 83us end-to-end p99 cost.
Every week, another developer tool ships a patch for an indirect prompt injection CVE by appending uppercase warnings to its system prompt or bolting a regex filter in front of child_process.spawn .
From a systems security standpoint, both mitigations are equivalent to placing a comment in C source code asking strcpy not to overflow the stack.
BROKEN: Single-Context / Ambient Authority (UID 501) +---------------------------------------------------------------+ | [Poisoned README.md] + [System Prompt] -> [LLM] -> /bin/zsh | | Has full ambient access to ~/.ssh, ~/.aws, Keychain, LAN | +---------------------------------------------------------------+
HEIMDALL: Dual-Model Kernel Separation…