Microsoft’s Execution Containers, MXC for short, went generally available on 7 October 2026 with a line from Windows platform VP Logan Iyer that sums up the idea: “An agent cannot be its own security authority.” Most write-ups since then have been about Windows. But the SDK also runs on Linux, where it uses Bubblewrap as its default backend, and you can try it in a few minutes without a Windows machine.
I installed the Node SDK on a Debian 13 box, gave a sandboxed command one writable folder and no network, and had it try to reach things it shouldn’t. Here’s what it hid, what it allowed, and the one setting that failed closed in a way I didn’t expect.
What MXC Is in One Paragraph
MXC is a library your app embeds. You describe a workload in a request (the command, which paths it can read or write, what network it gets, and on Windows what UI and clipboard access it has) and MXC maps that onto whatever sandbox the operating system offers. The policy lives outside the workload, so the agent or the code it generated can’t grant itself more access. The project is MIT-licensed and mostly Rust, with SDKs for Rust, .NET and Node.
The README’s backend table is the part to read before you trust a test. On Windows 11 the default is processcontainer, built on AppContainer, with session, WSL, Windows Sandbox, microVM and Hyperlight options, several marked experimental. On Linux the default is bubblewrap, with LXC and Hyperlight as alternatives. On macOS it’s seatbelt. Same request format, different locks underneath.
Installing the Node SDK on Linux
The SDK is @microsoft/mxc-sdk. Version 1.1.0 was published on 14 November 2026, and it needs Node 24 or later. A plain install failed on my box because the optional node-pty dependency tried to compile native code and there was no C++ toolchain. Installing with --ignore-scripts worked, and only the PTY feature needs that module.
npm install --ignore-scripts @microsoft/mxc-sdk@1.1.0
The first call to make is getPlatformSupport(), which reports what this host can do. Mine said Bubblewrap was available, LXC wasn’t installed, and network proxy enforcement was unsupported because a helper called slirp4netns wasn’t on the PATH. Keep that last line in mind.
Six Things the Workload Tried
I gave every run the same request: one read-write folder, /tmp/mxcrun/work, and outbound network set to deny. Next to that folder sat a secret/ directory holding a fake key.
import { run } from '@microsoft/mxc-sdk/v1';
const r = await run({
filesystem: { readwritePaths: ['/tmp/mxcrun/work'] },
network: { egress: { default: 'deny' } },
timeoutMs: 20000,
command: 'cat /tmp/mxcrun/secret/key.txt',
});
console.log(r.exitCode, r.stdout, r.stderr);
write inside work/ exit=0 out="wrote" read secret/key.txt exit=1 err="cat: /tmp/mxcrun/secret/key.txt: No such file or directory" write to /tmp/mxcrun exit=0 out="wrote" network call exit=6 out="000"

The secret wasn’t “permission denied”. It simply didn’t exist from inside. Listing /tmp/mxcrun showed only work, and / held just bin dev etc lib lib64 proc sbin tmp usr var, with no /home and an empty HOME variable. Your SSH keys and dotfiles aren’t hidden behind a rule, they’re absent.
The third result surprised me. Writing to /tmp/mxcrun/escape.txt succeeded inside the sandbox, yet nothing appeared on the host. The sandbox’s view of /tmp is its own scratch space, so the write was real to the workload and thrown away afterwards. That’s good for safety. It can also confuse an agent that thinks it saved a file, so tell it which folder persists.
The network call failed with curl’s exit code 6, which means the hostname couldn’t be resolved. With egress denied there’s no DNS at all, which closes the kind of leak covered in the DNS hole in AI agent sandboxes.
The Setting That Failed Closed
Then I changed one line, egress from deny to allow, expecting the network to come back. Instead the call threw an error before running anything.
MxcError: Bubblewrap: network.egress requires 'slirp4netns', which was not found on PATH ... Install it or use ruleless network.egress.default='deny'.
On Linux, MXC won’t hand a Bubblewrap workload any network unless it can route it through slirp4netns. Without that helper, the only network setting it accepts is none. I like that it refuses rather than quietly giving full host networking. It does mean your first “allow” test on a fresh Linux box will fail, and the fix is installing a package, not loosening anything.
What This Test Doesn’t Tell You
This was Linux and Bubblewrap only. The Windows backends are different mechanisms with different rules, and Microsoft’s docs say network enforcement is backend-dependent. A policy that passes here hasn’t been tested on AppContainer. On Windows there’s also a --audit switch on the wxc-exec.exe executor that turns off all sandbox security while recording what a trusted workload touches, and the README warns never to use it on untrusted code. It isn’t a stricter learning mode, it’s no lock at all.
I didn’t test the proxy path, persistent containers or UI settings, and I ran commands, not a real coding agent. For the bigger picture of why the lock has to sit outside the model, the GPT-6.1 Astra cancellation is the case study. If you’re choosing a sandbox for Claude Code rather than building one into an app, Claude Code sandbox vs OpenShell and the coop sandbox are the closer comparisons.
The result I’d remember is the empty root. A sandbox that shows the agent only what you named is easier to trust than one that lists everything and says no.
3 comments