Securing stdio-based Model Context Protocol (MCP) integrations with OS-native sandboxing to block prompt-injection data exfiltration.
The Model Context Protocol (MCP) connects LLMs to local data tools. However, because integrations run as subprocesses piping JSON-RPC over stdio, they run with the user's full permissions and bypass all network security controls. AegisMCP addresses this by wrapping servers in kernel-enforced sandboxes.
A prompt-injected LLM can trigger a local file tool to read sensitive information (SSH keys, environment files) and exfiltrate them via an internet-connected tool. Corporate firewalls cannot see stdio traffic.
We built a Rust proxy that spawns the server inside a native sandbox (using Apple Seatbelt on macOS and Landlock on Linux). If a compromised tool tries to access blocked paths, the kernel denies the syscall.
AegisMCP implements Hexagonal Architecture to separate domain logic from OS-level integration:
Inspect how `aegis-proxy` parses JSON-RPC `tools/call` frames and evaluates deny-default Seatbelt / Landlock path and network rules in the browser.
Click "Evaluate Policy Frame" to simulate aegis-core inspection and Seatbelt/Landlock enforcement.
Uses native OS kernels to block unauthorized system calls at runtime, ensuring zero overhead security enforcement.
Parses JSON-RPC packets in user space to log tool execution while leaving the actual blocking to the kernel.
Explore the Rust source code on GitHub or reach out to discuss OS-level tool sandboxing and agent execution harnesses.