microsoft/mxc
Runs untrusted code, including model output and plugins, in policy-defined sandboxes on Windows, Linux, and macOS.
The problem
Once an application executes code it did not write, the host becomes the attack surface. Model-generated scripts, third-party plugins and agent tool calls all need a place to run, and bolting on seccomp on Linux, Seatbelt on macOS and a Windows job object or Sandbox separately means three security models, three failure modes and three debugging stories. MXC addresses this by putting a single request-and-policy model in front of several platform-native containment backends, so the application declares what the workload may touch and MXC picks a backend and launches it.
What's different
Most teams reach for plain OS primitives (bubblewrap or nsjail on Linux, Seatbelt on macOS, Windows Sandbox or AppContainer on Windows) and write per-platform glue themselves. MXC's contribution is the uniform layer: one versioned JSON container-creation request, with filesystem, network and UI policies, plus a lifecycle of provision, start, execute, stop and deprovision for persistent containers. It also spans a wide backend range in one abstraction, from lightweight process containers up to MicroVM-based isolation, and ships typed SDKs for Rust, .NET and Node rather than a CLI-only interface. Diagnostics are treated as first-class: debug output and an audit mode that records denied accesses to help author a policy.
Who it's for
Application and platform engineers building products that run code from models, plugins or user tools, especially those shipping on more than one OS and wanting one policy schema instead of per-platform sandboxes. Teams that only target Linux containers already have mature answers in bubblewrap, nsjail or gVisor-style isolation and may not need the abstraction. Anyone wanting a drop-in Docker replacement or a hosted execution service is looking at the wrong layer; MXC is a library you embed.
Cost of adoption
You embed a native runtime in your app, so build complexity follows: the Rust crate compiles the SDK, engine and chosen backends, while the Node and .NET packages carry native assets. Backend prerequisites differ by platform, and several listed backends (Windows Sandbox, MicroVM, Hyperlight) are marked experimental. Building from source pins Rust 1.93 and Node 24+. Expect real policy-tuning work before arbitrary workloads run cleanly; the README explicitly warns that sandboxed apps will hit access denials until rules are adjusted. Audit mode disables all security and must not touch untrusted code. Official Microsoft builds can emit optional telemetry, off by default and requiring multiple opt-ins; local open-source builds do not route telemetry to Microsoft. License is MIT. The README is fairly complete on usage and prerequisites, but gives no performance characteristics, maturity guarantees for the experimental backends, or comparison against existing sandbox services.
Verdict
MXC is a brand-new project by GitHub age, about 259 days, and its visibility comes largely from a single spike: a Hacker News thread in October 2026 and roughly 1,635 stars gained in one month, ranking ninth on the Rust monthly board, rather than a long track record. Nearly 3,000 stars and a Microsoft-maintained multi-SDK surface are meaningful signals, but no daily trending history means sustained interest is unproven. The multi-platform policy model is genuinely useful if you ship cross-platform code execution, and the MIT license removes the legal question. Still, choose it knowing you are adopting an early library with experimental backends and real integration cost, not a settled security boundary.
Hacker News
Written by AI from the project's README, updated October 24, 2026. The project's own docs are the source of truth.