AI for HumanIT
All posts
12 Oct 2026 · 6 min read

Microsoft's MXC and the missing layer in agent governance

Microsoft Execution Containers make agent containment an operating system job, with separate agent identity and enforced least privilege. What it changes, what it doesn't, and where to start.

AgentsGovernanceSecurityMicrosoft
Man looking at cats

Most of the conversation about AI agents in the enterprise has been about capability: what they can do, how fast, and how cheaply. The harder question has always been control. Once you give an agent the ability to read files, run code and click around a desktop, what stops it doing something you didn't intend?

Until now the honest answer has been "whatever the agent vendor built". Every agent shipped its own sandbox, its own permission prompts and its own idea of what "safe" means. On 7 October 2026, Microsoft made Microsoft Execution Containers (MXC) generally available on Windows 11, and that changes the answer. For the first time, agent containment is something the operating system does, not something each app improvises.

What MXC actually is

MXC is a policy-driven sandbox for AI agents and the code they run. It works in three steps:

  1. Declare. A developer or administrator writes a policy describing what an agent, or a specific action it takes, is allowed to touch. That includes which files and folders, which network destinations and which apps or system resources. Outbound network access is denied by default.
  2. Match. MXC checks that request against system and IT policy, so an agent can't grant itself more than the organisation allows.
  3. Enforce. The result is translated into native OS isolation and enforced while the agent runs. Nothing relies on the agent behaving well.

The isolation isn't one-size-fits-all. At the lightweight end, the agent runs in the user's own session but inside a restricted container. On Windows this builds on AppContainer, the same technology that sandboxes Store apps. At the heavy end, the agent runs fully separated from the user's desktop, clipboard and input devices, up to and including a dedicated virtual machine. MXC chooses the appropriate isolation for the job based on the policy and what the host supports.

It is also open source and cross-platform. The runtime and its TypeScript SDK are on GitHub under the MIT licence and run on Windows, Linux and macOS. GitHub Copilot's local sandbox is already built on it. OpenAI Codex, OpenClaw, Replit and LM Studio support it, and Anthropic's Claude Code is among those planning support.

Why this matters for governance

Governance frameworks for AI tend to stall at the same point. You can write a policy saying agents must operate with least privilege, but you can't enforce a sentence in a PDF. MXC matters because it turns several governance principles into enforceable technical controls.

1. Agents get their own identity

This is arguably the most important shift. Under MXC an agent is identified by the operating system as itself, separate from the person it's working for. Today, when an agent acts on a user's behalf, the logs usually show the user doing it. That makes it almost impossible to answer the first question in any incident review: was that a person or the agent?

Separate identity makes attribution possible, and attribution is the foundation of accountability. Without it you can't audit, investigate or meaningfully assign responsibility.

2. Least privilege becomes enforceable, not aspirational

Most agents today inherit everything the user can do. If you can read the finance share, so can your coding assistant. MXC inverts that. The agent gets only what its policy grants, and the boundary is enforced by the OS at runtime.

The useful way to think about this is blast radius. The question is no longer only "will the agent make a mistake?" It is "when it does, or when it's manipulated by a malicious web page or prompt injection, how much damage can it do?" Containment doesn't make agents smarter, but it does make their failures smaller.

3. Policy moves to where IT already lives

Microsoft is connecting MXC to its existing enterprise stack through Agent 365: Intune, Entra, Defender and Purview. For endpoint and identity teams, that is the difference between agent governance being a new discipline with new tooling and being an extension of what they already run.

If agent containment policies can be deployed, monitored and reported on through the same management plane as device compliance and conditional access, governance stops being a project and becomes an operational process.

4. A common standard instead of vendor-by-vendor trust

The alternative to an OS-level layer is evaluating every agent's homegrown sandbox individually, with no consistent way to express or verify policy across them. A shared, open containment layer that multiple vendors adopt gives organisations a single policy model to reason about, and gives auditors something consistent to inspect.

What MXC doesn't solve

It's worth being clear-eyed about the limits.

It's still maturing. MXC's own repository has carried a warning that some generated policies are too permissive and that its profiles shouldn't yet be treated as hard security boundaries. That caveat may have been addressed alongside GA, but check the current state before treating MXC as a guaranteed boundary in a threat model.

It governs access, not judgement. MXC limits what an agent can touch. It says nothing about whether the agent should take a given action within those limits. An agent with permission to send email can still send the wrong email. Human-in-the-loop approvals, output review and clear accountability for agent decisions remain necessary.

It covers the endpoint, not the whole estate. Many agents run in the cloud and act through APIs and connectors. Governing those requires identity, API permissions and data controls elsewhere in the stack. MXC is one important layer, not the whole picture.

Containment and capability pull in opposite directions. The strongest isolation modes separate the agent from the desktop and input devices. That's excellent for safety, but it conflicts with computer-use agents that need to see the screen and drive the mouse and keyboard. For those workloads, the practical pattern is likely to be a fully isolated VM or Cloud PC that the agent controls end to end, with MXC policy constraining its file and network reach.

What to do now

If you're responsible for endpoint management or AI governance, there are a few sensible first steps:

  • Inventory your agents. Find out which coding assistants, desktop agents and automation tools are already running on your estate, and which of them support MXC or plan to.
  • Start writing policies before you need them. Work out what "least privilege" means for your most common agent use cases: which folders, which network destinations, which apps.
  • Pilot on non-critical devices. Test MXC with a supported agent, and watch for where policies are too tight to be useful or too loose to be meaningful.
  • Fold agent identity into your audit model. Decide how agent actions will appear in your logs, how they'll be reviewed, and who is accountable for them.
  • Track the Intune and Agent 365 integration. The management story is where this becomes operational at scale, so it's worth following closely as it develops.

The bigger picture

For the past few years, agentic AI has moved faster than the controls around it. Organisations have been forced to choose between blocking agents and accepting risks they couldn't measure. MXC doesn't remove that tension entirely, but it gives governance something it has badly lacked: an enforcement point in the operating system, with identity, policy and audit built in.

That's not the end of the governance conversation. It's what makes the conversation practical.

Containment doesn't make agents smarter, but it does make their failures smaller.
Bruce Cullen
Keep reading

More from the blog