Why System Prompts Fail as Security Boundaries for Prompt Injection
The article argues that prompt-level guardrails and regex filters cannot stop indirect prompt injection when untrusted repository content runs under the same OS user as shell tools. It compares these measures to code comments meant to prevent buffer overflows, offering no real enforcement. The author proposes Heimdall, which runs untrusted synthesis in a quarantined worker under a separate Darwin POSIX user ID, sandboxed with sandbox_init. That worker communicates with a coordinator only through typed Mach IPC, removing ambient authority. The author reports an end-to-end p99 overhead of about 83 microseconds and links to a code repository with tests.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in