Microsoft Execution Containers (MXC): A Complete Guide to AI Agent Isolation in Windows
Quick Answer Microsoft Execution Containers (MXC) is an open-source, policy-driven execution technology that helps applications run AI agents, generated code...
Quick Answer
Microsoft Execution Containers (MXC) is an open-source, policy-driven execution technology that helps applications run AI agents, generated code, scripts, plugins and other potentially untrusted workloads within controlled environments.
On Windows 11, MXC uses operating system isolation mechanisms to restrict the resources that an agent or its associated workload can access. These restrictions can include files, folders, network connections, processes and desktop resources, depending on the selected containment backend and its supported capabilities.
Instead of allowing an AI agent to operate with all the permissions of the signed-in Windows user, MXC enables developers and organizations to define a narrower execution boundary appropriate for the task.
Microsoft announced the general availability of MXC in October 2026. However, individual containment backends, management capabilities and application integrations may have different availability and compatibility requirements.
What Are Microsoft Execution Containers (MXC)?
Microsoft Execution Containers, commonly abbreviated as MXC, provide a structured approach to executing potentially untrusted workloads within defined security boundaries.
Traditional applications frequently operate using permissions associated with the Windows account that launches them. Depending on the application's security architecture, these permissions may provide access to personal documents, application data, network resources and other information available to the user.
AI agents introduce an additional security challenge because they can dynamically decide which tools to invoke, commands to execute and resources to access.
MXC addresses this challenge by providing a containment layer that separates the permissions required by a particular workload from the broader permissions available to its host application or user.
Although AI agent security is a major application of MXC, the technology can also be used for other workloads, including:
- Automatically generated application code.
- Third-party scripts and tools.
- Application plugins and extensions.
- Automated software development tasks.
- Document-processing workflows.
- Background automation services.
- Potentially untrusted executable workloads.
MXC is not an artificial intelligence model, chatbot or virtual assistant. It is an execution and containment technology that developers can integrate into applications that run such workloads.
Why AI Agents Need Isolation in Windows
Unlike conventional chatbots that primarily generate responses, AI agents can interact with applications, invoke tools and perform operations on behalf of users.
Depending on their design and permissions, AI agents may be capable of:
- Reading and modifying local documents.
- Creating, renaming and deleting files.
- Executing scripts and operating system commands.
- Running software development tools.
- Accessing websites and application programming interfaces (APIs).
- Interacting with business applications.
- Automating repetitive computer tasks.
- Processing confidential business information.
These capabilities make AI agents useful, but they also create security and privacy concerns when agents receive more permissions than their tasks require.
Accidental System Changes
An AI agent may incorrectly interpret a request or select an inappropriate operation. An automated file-management agent, for example, might attempt to modify files outside the folder it was instructed to organize.
A properly configured execution boundary can prevent that operation from affecting unauthorized locations.
Unauthorized Data Access
An agent performing a software development task generally does not need access to unrelated personal photographs, financial documents, email archives or confidential business records.
Restricting filesystem permissions helps reduce the amount of information exposed to the workload.
Prompt Injection Attacks
Prompt injection occurs when content encountered by an AI system contains instructions intended to manipulate its behavior.
Such instructions may appear in websites, documents, emails or other external information processed by the agent.
MXC does not prevent an AI model from interpreting malicious instructions. However, an independently enforced execution boundary can restrict the operations that resulting tool calls or generated code are permitted to perform.
Untrusted Tools and Generated Code
AI-generated scripts and third-party tools may contain programming errors, unexpected behavior or security vulnerabilities.
Running these workloads within appropriately restricted environments can reduce their potential impact on the host system.
How Microsoft Execution Containers Work
MXC separates the definition of workload permissions from the underlying operating system mechanisms used to enforce them.
A host application describes the workload, its execution requirements and its permitted resources. MXC then uses a compatible containment backend to establish the execution environment.
A typical MXC-enabled workflow involves the following stages:
- Task selection: The user or application identifies an operation that an agent needs to perform.
- Workload definition: The host application determines which code, command or tool must run.
- Policy creation: The application defines the resources and capabilities required by the workload.
- Backend selection: An appropriate containment mechanism is selected based on the workload and platform capabilities.
- Contained execution: The workload runs inside the configured environment.
- Policy enforcement: Supported resource restrictions are enforced through the selected backend.
- Result handling: The host application receives the execution results and determines the next action.
The important security principle is that the workload is not responsible for enforcing its own permissions. Restrictions are established outside the contained workload and enforced independently of the AI model's decisions.
Main Components of Microsoft Execution Containers
1. Host Application
The host application is the trusted software responsible for initiating contained execution.
It may be an AI assistant, software development environment, automation application or another program that integrates MXC.
The host application selects the workload and defines its permitted execution environment. Its own security remains important because containment does not automatically protect operations performed outside the container.
2. MXC Software Development Kit (SDK)
The MXC SDK provides programming interfaces through which developers can integrate containment into their applications.
Microsoft provides SDK options for .NET, TypeScript and Rust. These interfaces allow applications to describe workloads, request containment and handle execution results.
3. Execution Policy
An execution policy defines what a contained workload requires and which resource access should be permitted or restricted.
MXC uses a versioned JSON-based configuration model to describe workload execution and security requirements.
Actual policy fields and supported controls depend on the MXC release and selected backend. Developers should use the configuration schema supplied with their installed SDK rather than relying on examples written for unrelated versions.
4. Containment Backend
A containment backend is the underlying technology used to establish and enforce the execution boundary.
MXC supports multiple backend types instead of requiring every workload to run inside a traditional virtual machine.
Different backends provide different combinations of performance, compatibility, resource separation and security.
5. Execution Results and Activity Information
The host application needs to determine whether a workload completed successfully or encountered an execution failure.
Supported Windows process-container modes can also provide activity information to assist developers and administrators in investigating resource access and refining policies.
Activity reporting capabilities should not be assumed to be identical across all MXC backends.
Types of Microsoft Execution Containers
MXC provides several containment approaches for different workload requirements. The term container does not necessarily refer to a conventional Docker container or virtual machine.
| Containment Type | Isolation Approach | Typical Use Case |
|---|---|---|
| Process Container | Operating system process sandboxing | Generated code, scripts and responsive agent tools |
| Session Container | Separate Windows account and operating system session | Long-running agents and desktop automation |
| WSL Container (WSLc) | Linux execution environment through Windows Subsystem for Linux | Linux development tools and Linux-oriented workloads |
| MicroVM | Hardware-backed virtualized environment | Workloads requiring stronger separation |
Backend availability depends on the operating system, hardware architecture, installed components and MXC release. MicroVM support is experimental in the referenced release documentation.
Process Containers
On Windows, the process-container backend uses Windows AppContainer technology to establish a restricted process environment.
This approach is appropriate for workloads that benefit from relatively lightweight execution without requiring a complete independent operating system.
Examples include evaluating generated code, running command-line tools and processing files within an approved workspace.
Because process isolation operates within the host operating system, its security characteristics differ from hardware-backed virtualization.
Session Containers
Session containment is a Windows-specific option that separates agent execution from the interactive user's Windows session.
The agent operates under a distinct Windows account in a separate session, providing separation of desktop-related resources such as user interface, keyboard and mouse input, and clipboard access.
This approach is useful when an agent requires a desktop environment or must perform extended automation without operating directly within the user's active session.
Windows Subsystem for Linux Containers
The WSL container backend, also known as WSLc, supports workloads that depend on Linux-oriented tools and execution environments.
It is particularly relevant to software development workflows that use Linux utilities, package managers or development frameworks.
WSL availability and backend-specific security requirements must be evaluated before selecting this option.
MicroVM-Based Containment
A micro virtual machine, or MicroVM, uses virtualization to establish a hardware-assisted separation boundary.
This approach can be appropriate when a workload requires greater separation from the host operating system than process-level sandboxing provides.
MicroVM support should be evaluated carefully because its availability, supported architectures and production-readiness status may differ from other MXC backends.
The official MXC repository also documents additional backend options, including experimental integrations. Developers should consult the current backend compatibility documentation before deployment.
How MXC Restricts Access to Windows System Resources
Resource isolation is a central purpose of Microsoft Execution Containers. Instead of automatically granting the full access available to the user, an MXC-integrated application can establish permissions appropriate to a workload.
Filesystem Access Control
Filesystem policies can distinguish between locations that a workload may modify, locations that it may only read and locations that it must not access.
Consider an AI agent that generates monthly sales reports. Its workload may require access to a folder containing source data and another folder where generated reports will be saved.
| Resource | Illustrative Permission | Purpose |
|---|---|---|
C:\BusinessData\Sales |
Read-only | Read source information without changing it |
C:\BusinessData\Reports |
Read and write | Create and update generated reports |
C:\BusinessData\Payroll |
Denied | Protect unrelated confidential information |
| User's personal documents | Not granted | Prevent unnecessary personal data access |
These paths illustrate a possible policy design. They are not standard MXC directories or predefined Windows settings.
Filesystem isolation can help protect information from unauthorized reading, modification and deletion, provided the selected backend supports the requested restrictions and the policy is correctly enforced.
Network Access Control
Network connectivity introduces additional security considerations because a workload may communicate with external systems or services running on the host computer.
Depending on backend support, MXC policies can govern network capabilities such as inbound communication, outbound communication and access to host loopback services.
For example, a workload performing offline calculations may not require any network connectivity. Another workload may require access to an approved business service.
Restricting unnecessary network communication can help reduce unintended data transfers and unauthorized interactions with network resources.
Administrators should verify whether their selected backend supports the required destination-level restrictions. Network isolation should not be assumed to provide every capability of an enterprise firewall, proxy or data loss prevention system.
Process Execution Settings
MXC allows host applications to describe how a workload is launched. Relevant execution settings can include:
- The executable or command to run.
- Command-line arguments.
- The working directory.
- Environment variables.
- The selected containment environment.
These settings help establish a predictable execution context. They should not be confused with a universal application allowlisting system that automatically blocks every executable not explicitly named in a policy.
Desktop and User Interface Access
Some AI workloads only need to process data or execute command-line tools. They do not require access to the user's desktop.
Other agents may need to interact with graphical applications to perform automation tasks.
MXC provides containment options that account for these differences. Windows session containment is particularly relevant when an agent needs its own desktop environment while remaining separated from the user's active session.
Credentials and Sensitive Information
AI workloads should not receive unrestricted access to credentials, application secrets, authentication tokens or confidential configuration information.
Resource containment can reduce exposure to sensitive information stored in restricted locations. However, applications must also avoid passing unnecessary credentials directly to workloads through environment variables, command-line arguments or application interfaces.
MXC should not be treated as a complete credential management or secret storage solution.
Understanding the Principle of Least Privilege
The principle of least privilege states that a user, application or workload should receive only the permissions necessary to complete its intended function.
MXC helps developers apply this principle to dynamically executed workloads.
For example, an AI agent tasked with converting documents to PDF may require:
- Read access to the selected source documents.
- Write access to an approved output directory.
- Access to the required document-conversion software.
It may not require internet connectivity, access to unrelated documents, administrator privileges or interaction with the user's desktop.
Restricting unnecessary capabilities reduces the potential damage caused by unexpected workload behavior.
Least privilege does not mean that every agent must have the same restrictions. Permissions should reflect the requirements and risk level of each workload.
Microsoft Execution Containers Operating Modes
Microsoft documents three operating modes for supported Windows process-container scenarios. These modes help developers and administrators develop, investigate and enforce workload policies.
| Mode | Access Not Granted by Policy | Activity Reporting | Primary Purpose |
|---|---|---|---|
| Enforcement Mode | Blocked | No mode-specific activity report | Normal restricted execution |
| Learning Mode | Blocked and recorded | Available | Investigating access restrictions |
| Permissive Mode | Allowed and recorded, subject to other applicable restrictions | Available | Observing workload resource requirements |
Enforcement Mode
Enforcement Mode applies the configured workload restrictions during execution. It is appropriate when the policy has been reviewed, tested and approved for the intended task.
Learning Mode
Learning Mode maintains the configured restrictions while recording denied resource requests.
This information can help identify why a workload fails and determine whether additional permissions are genuinely necessary.
A recorded access attempt does not automatically establish that the requested access is legitimate or should be granted.
Permissive Mode
Permissive Mode allows developers to observe resource requests that an enforcing MXC policy would otherwise restrict.
Other operating system and organizational restrictions continue to apply.
Important: Permissive Mode should not be treated as equivalent to enforced containment. Use an appropriately isolated testing environment when examining workloads whose behavior is not fully understood.
Practical Examples of MXC in Windows
Example 1: AI Coding Assistant
A software developer uses an AI coding assistant to update a website application.
The application establishes an execution policy that permits modifications inside the project repository while restricting access to production configuration files and unrelated personal information.
If generated code attempts to perform an unauthorized operation outside the permitted workspace, the containment mechanism can restrict that operation.
This allows the coding assistant to remain productive without automatically receiving unrestricted access to the entire Windows computer.
Example 2: Automated Financial Report Generation
A business uses an AI agent to prepare reports from exported accounting information.
The workload receives read-only access to approved input files and permission to write reports into a designated output folder.
It does not receive access to unrelated payroll records, authentication credentials or network destinations that are unnecessary for report generation.
The organization can additionally require a human to review generated reports before they are distributed.
Example 3: AI-Powered File Organization
An AI application helps a user organize downloaded documents into appropriate folders.
The host application limits the workload to the selected workspace instead of granting access to every storage location belonging to the user.
Even within the permitted workspace, important file changes should remain subject to appropriate confirmation and recovery mechanisms.
Example 4: Desktop Automation
An organization uses an AI agent to perform repetitive operations within a graphical business application.
A session-container approach can provide a desktop environment for the agent that is separate from the employee's interactive Windows session.
The organization must still control which business accounts, applications and data the agent is authorized to use.
MXC and the Windows Agent Security Architecture
Microsoft's approach to agent security extends beyond workload containment. It considers identity, execution restrictions and organizational governance as complementary security responsibilities.
Containment
Containment determines the resources a workload can reach and the operations it can perform within its execution environment.
MXC provides technology for establishing these boundaries.
Identity
Identity determines which account, application or agent is associated with an operation.
Distinguishing agent activity from human activity is important when enforcing access permissions, investigating security incidents and reviewing automated operations.
MXC session containment can use a distinct Windows account. Broader integration with enterprise agent identity services is a separate capability whose availability must be verified.
Manageability
Manageability allows organizations to establish policies, supervise deployments, investigate incidents and maintain control over agent-enabled applications.
A secure enterprise implementation may combine MXC with device management, identity management, endpoint security, information protection and application-level approval workflows.
Containment alone does not provide every element of enterprise agent governance.
MXC Integration with Microsoft Enterprise Security Services
Microsoft positions MXC within a broader ecosystem for deploying and governing AI agents on Windows.
| Technology | Security Responsibility |
|---|---|
| Microsoft Execution Containers | Workload containment and scoped execution permissions |
| Microsoft Intune | Endpoint configuration and organizational policy management |
| Microsoft Entra | Identity and access management |
| Microsoft Defender | Endpoint protection and security threat detection |
| Microsoft Purview | Information protection, governance and compliance |
| Microsoft Agent 365 | Enterprise agent management and governance |
| Windows 365 | Cloud-hosted Windows execution environments |
These technologies serve different purposes. The table describes their general security responsibilities rather than guaranteeing that every listed service supports every MXC backend or agent application.
Microsoft's October 2026 announcement identified additional Intune policy management and agent identity capabilities as forthcoming. Organizations should confirm their current release status, licensing requirements and tenant availability before designing production deployments around them.
Microsoft Execution Containers vs. Other Isolation Technologies
Windows already includes multiple isolation and virtualization technologies. MXC does not necessarily replace these technologies. Instead, it provides a workload-oriented integration layer that can use suitable containment mechanisms.
| Technology | Primary Purpose | Key Distinction |
|---|---|---|
| Microsoft Execution Containers | Policy-controlled workload execution | Provides a common integration model across multiple isolation backends |
| Windows AppContainer | Restricted application and process execution | Provides an underlying Windows sandbox mechanism used by MXC process containment |
| Windows Sandbox | Temporary isolated Windows desktop | Provides a disposable environment for running applications |
| Hyper-V | Hardware-assisted virtualization | Runs virtual machines with separate guest operating systems |
| Docker Containers | Containerized application packaging and execution | Focuses on application deployment, dependencies and container lifecycle management |
| Windows Subsystem for Linux | Running Linux tools and environments on Windows | Provides Linux compatibility rather than automatically establishing a task-specific MXC policy |
MXC vs. Windows Sandbox
Windows Sandbox provides a temporary Windows desktop environment in which users can run applications separately from their normal desktop.
MXC is primarily designed for programmatic workload containment. An integrated application can use its SDK and policy model to request an execution environment suitable for a particular task.
The official MXC repository also documents Windows Sandbox as an experimental backend. Therefore, the two technologies are not necessarily mutually exclusive.
MXC vs. Traditional Virtual Machines
A traditional virtual machine typically runs a separate operating system with its own virtual hardware environment.
MXC can support lighter process-based execution or virtualized containment when required. This allows developers to select an execution approach without treating every workload as a full virtual machine deployment.
The appropriate choice depends on workload requirements, supported capabilities and the necessary security boundary.
MXC vs. Docker
Docker is widely used to package and deploy applications together with their dependencies.
MXC focuses on describing and enforcing execution restrictions around workloads that may not be fully trusted.
Both technologies involve isolated execution, but their primary integration models and intended use cases differ. Using one does not automatically provide all the capabilities of the other.
System Requirements and Platform Compatibility
MXC supports multiple operating systems, although not every containment backend is available on every platform.
| Platform | Documented Default Backend |
|---|---|
| Windows 11 | ProcessContainer |
| Linux | Bubblewrap |
| macOS | Seatbelt |
For Windows users and developers, important compatibility considerations include:
- A supported Windows 11 version.
- A compatible processor architecture.
- A supported MXC SDK and runtime release.
- An application capable of integrating MXC.
- Availability of the required containment backend.
- Any optional operating system components required by that backend.
- Virtualization support where required by the selected isolation mechanism.
Microsoft's Windows 365 MXC documentation specifies Windows 11 version 24H2 or later for its documented process-isolation scenario.
That requirement should not be interpreted as a universal compatibility guarantee for every MXC backend or physical Windows computer.
Windows 10 compatibility is not established by the referenced Windows platform documentation. Users should not assume that MXC supports Windows 10 without checking the current official compatibility information.
Similarly, the referenced documentation does not establish a blanket requirement for a Copilot+ PC, a Neural Processing Unit (NPU), TPM 2.0 or Hyper-V across every MXC workload. Requirements must be evaluated for the selected containment environment.
How Developers Can Integrate Microsoft Execution Containers
MXC is available through SDK packages and an official open-source repository. Developers can incorporate it into existing applications instead of designing every isolation mechanism independently.
| Development Platform | Official Package | Package Repository |
|---|---|---|
| .NET | Microsoft.Mxc.Sdk |
NuGet |
| TypeScript / Node.js | @microsoft/mxc-sdk |
npm |
| Rust | mxc-sdk |
crates.io |
Recommended Integration Process
- Identify the workload: Determine which application operations involve dynamically generated code, external tools or potentially untrusted execution.
- Review the security requirements: Identify sensitive resources and define the permitted scope of each task.
- Select the SDK: Choose the package appropriate to the application's programming language and runtime.
- Check platform support: Verify that the required containment backend is available on the target computer.
- Define a restrictive policy: Grant only the resources necessary for the workload.
- Test expected operations: Confirm that legitimate activities complete successfully.
- Test prohibited operations: Confirm that access outside the intended boundary is restricted.
- Investigate failures: Review available execution errors and activity information before modifying permissions.
- Validate production settings: Ensure that testing-only or permissive configurations have not been carried into production.
- Maintain the integration: Review policies and backend behavior when updating the application, SDK or operating system.
Microsoft documents the MxcSandbox.GetPlatformSupport() discovery interface for .NET and getPlatformSupport() for TypeScript.
These interfaces help applications determine available runtime capabilities. Developers must still handle execution failures because successful platform discovery does not guarantee that every requested policy will be supported.
For exact implementation syntax and configuration fields, use the documentation corresponding to the installed MXC SDK release.
Can Users Enable Microsoft Execution Containers in Windows Settings?
MXC should not be understood as a universal Windows Settings switch that automatically places every installed AI application inside a restricted container.
It is an application integration and execution technology. The application or agent runtime must use the appropriate containment capabilities, and the necessary platform requirements must be satisfied.
Ordinary Windows users who want contained agent execution should:
- Keep Windows and their applications up to date.
- Review the application's official documentation for sandboxing or MXC support.
- Use documented workspace and resource permission controls provided by the application.
- Avoid granting unnecessary administrative privileges.
- Consult their IT administrator when using an organization-managed device.
Installing an MXC SDK on a computer does not automatically convert unrelated applications into MXC-contained workloads.
Microsoft Execution Containers Security Benefits
Reduced Security Attack Surface
Limiting the resources exposed to a workload reduces the number of locations, services and capabilities that unintended behavior can affect.
Improved Data Protection
Correctly configured filesystem and network restrictions can help protect sensitive information from unnecessary agent access or transfer.
Reduced Impact of Application Errors
Errors in generated scripts or automation tools can have a smaller impact when execution is restricted to an approved environment.
Flexible Isolation Options
Developers can select an isolation approach appropriate to the workload instead of applying identical execution environments to every task.
More Predictable Automation
Explicitly defined resource boundaries help developers understand the scope within which automated operations are permitted.
Support for Enterprise Governance
Containment can complement organizational policies, endpoint management, identity controls and security monitoring when deploying agent-based applications.
Limitations of Microsoft Execution Containers
Although MXC can improve workload security, it does not eliminate every risk associated with AI agents or untrusted code.
Incorrect Permissions Can Reduce Protection
A policy that grants unnecessary access may allow harmful or unintended operations within its authorized scope.
For example, granting unrestricted write access to an entire business data directory may expose more information to modification than an individual reporting task requires.
Authorized Actions Can Still Cause Damage
Containment determines whether an operation is permitted, not whether it is correct or beneficial.
An agent with legitimate write access to a project can still introduce software defects or overwrite important project files.
Version control, backups and human review remain important.
Containment Backends Have Different Security Properties
Process isolation, separate operating system sessions and virtualized environments do not provide identical security guarantees.
Organizations should choose a containment backend based on the expected workload behavior and threat model rather than assuming that all containers offer equivalent protection.
Application Integration Is Required
MXC cannot automatically control operations that a host application performs outside its configured execution boundary.
If an application exposes privileged services or performs unrestricted operations on behalf of a contained workload, those interfaces must also be secured.
Prompt Injection Remains a Concern
MXC does not determine whether the instructions processed by an AI model are trustworthy.
Applications must still apply appropriate input handling, tool authorization, output validation and approval mechanisms.
Feature Availability Can Vary
Individual backend capabilities, supported architectures, management features and SDK interfaces may change between releases.
Experimental functionality should not be assumed to offer the same support commitments or deployment readiness as generally available capabilities.
MXC Does Not Replace Other Security Controls
MXC does not replace Microsoft Defender Antivirus, firewalls, access management, software updates, encryption, backups or organizational security policies.
It should form one layer of a broader defense-in-depth strategy.
Security Best Practices for MXC-Enabled AI Agents
- Use least-privilege policies: Grant only the permissions necessary for the assigned task.
- Separate input and output directories: Make source information read-only whenever appropriate.
- Restrict unnecessary network access: Permit communication only where there is a legitimate workload requirement.
- Avoid unnecessary elevation: Do not provide administrator privileges simply to resolve a containment-related failure.
- Protect credentials: Avoid exposing passwords, tokens and other secrets directly to workloads.
- Review sensitive operations: Require appropriate human authorization for significant file changes, external communications and other consequential actions.
- Choose suitable isolation: Match the containment backend to the workload's security requirements.
- Validate execution boundaries: Test permitted and prohibited operations before production deployment.
- Maintain backups: Preserve recovery options for information that agents are authorized to modify.
- Keep software updated: Maintain the operating system, MXC SDK, application and associated runtime components.
- Use supported production settings: Review experimental features and remove inappropriate testing configurations.
- Monitor agent activity: Use supported application, endpoint and organizational monitoring mechanisms.
Troubleshooting MXC-Enabled Applications
Applications that use MXC may encounter execution failures when workload requirements do not match available permissions or platform capabilities.
The following table describes general diagnostic scenarios rather than official MXC error-code definitions.
| Symptom | Possible Cause | Recommended Investigation |
|---|---|---|
| Agent cannot open a required file | Missing filesystem permission or incorrect path | Verify the file location and applicable workload policy |
| Agent cannot save generated output | Destination is read-only or outside the permitted workspace | Check the designated output directory and write permissions |
| Agent cannot connect to a service | Network restriction, firewall policy or service failure | Review the required connection and relevant network controls |
| Container fails to initialize | Unsupported backend, missing prerequisite or configuration problem | Review platform support, SDK compatibility and application errors |
| Desktop automation does not work | Incompatible containment type or missing UI capability | Determine whether the workload requires a supported session environment |
| Workload stops working after an update | Changed application requirements, runtime behavior or policy compatibility | Review release notes, execution logs and previously validated policies |
Begin with supported application diagnostics, runtime capability checks and policy review. Where available, Learning Mode can provide additional evidence of blocked resource requests.
Do not disable containment or grant unrestricted system access merely to make an agent complete its task. First determine whether the requested access is legitimate and necessary.
Frequently Asked Questions
Is MXC available in Windows 11?
Yes. Microsoft announced general availability of MXC in October 2026, and its official Windows security documentation identifies Windows 11 as a supported platform. Individual backend requirements must still be checked.
Is Microsoft Execution Containers open-source?
Yes. Microsoft maintains the MXC source code, documentation and development resources in its public GitHub repository.
Does MXC protect every AI application installed on Windows?
No. An application's workloads must use the appropriate containment mechanism. Installing Windows or the MXC SDK does not automatically isolate every AI application.
Does MXC require a Copilot+ PC?
The referenced MXC documentation does not identify a Copilot+ PC as a universal requirement. Actual requirements depend on the application and selected containment backend.
Does MXC always require Hyper-V or hardware virtualization?
No. Lightweight process-container isolation does not require a separate guest virtual machine. Virtualization requirements depend on the chosen backend.
Can an AI agent change its own MXC permissions?
MXC is designed so that the contained workload does not control the policy enforcing its execution boundary. However, the trusted host application and any external permission-management interfaces must also be securely designed.
Can MXC prevent an AI agent from accessing personal files?
Yes, when the relevant workloads are correctly contained and access to those files is restricted by the selected backend and policy. Files explicitly exposed through other application interfaces require separate protection.
Can MXC prevent an AI agent from accessing the internet?
Supported containment backends can enforce network restrictions. The exact controls and their scope depend on the selected backend and policy configuration.
Does MXC prevent all prompt injection attacks?
No. MXC restricts workload execution rather than detecting or eliminating malicious instructions. It can help limit the consequences of certain prompt injection attacks when the resulting operations are subject to containment.
Can MXC run AI agents without internet connectivity?
Yes, provided the application, model, tools and workload dependencies support offline operation. MXC can help restrict network access, but it does not convert an internet-dependent AI application into an offline application.
Does MXC replace Microsoft Defender?
No. MXC and Microsoft Defender address different aspects of security. Containment restricts workload capabilities, while endpoint protection helps detect and respond to security threats.
Is MXC the same as a virtual machine?
No. MXC supports multiple containment mechanisms, including process sandboxes, separate sessions and virtualized environments. A virtual machine is only one possible approach to isolated execution.
Does MXC automatically delete all workload-generated files after execution?
No universal automatic deletion behavior should be assumed. File persistence and cleanup depend on the selected backend, configured storage access and host application's lifecycle management.
Can MXC be used on Windows 365 Cloud PCs?
Yes. Microsoft documents MXC support on Windows 365 Cloud PCs. Process isolation has different virtualization requirements from session-based or virtualized containment, so administrators should evaluate the intended backend before deployment.
Is Microsoft Execution Containers exclusive to Windows?
No. MXC also supports Linux and macOS through platform-specific containment technologies. Some capabilities, including Windows session containment, are specific to Windows.
Is MXC a complete security solution for AI agents?
No. Secure agent deployment also requires appropriate identity controls, trustworthy application design, monitoring, data protection, human oversight and operating system security.
Key Takeaways
- Microsoft Execution Containers provide policy-controlled execution environments for AI agents and other potentially untrusted workloads.
- MXC helps separate workload permissions from the broader permissions available to the host application or signed-in user.
- Windows supports multiple containment approaches, including process-based and session-based isolation.
- Resource policies can restrict filesystem access, network communication and desktop-related capabilities, subject to backend support.
- MXC supports the principle of least privilege and helps reduce the consequences of unintended agent behavior.
- Applications must integrate the appropriate containment technology; MXC does not automatically protect every installed AI application.
- Microsoft announced general availability of MXC in October 2026, but individual features and experimental backends have separate availability considerations.
- Effective security requires correctly configured policies, suitable isolation mechanisms and complementary security controls.
Microsoft Execution Containers represent an important development in the security architecture of agent-enabled applications. By establishing execution boundaries independently of an AI agent's decisions, MXC helps developers and organizations delegate automated tasks while retaining control over the resources those tasks can access.
Official References
- Microsoft Learn: Microsoft Execution Containers (MXC) — Official overview of MXC, supported execution models and SDK integration.
- Microsoft Execution Containers Official GitHub Repository — Source code, SDK documentation, supported backends, configuration information and development resources.
- Windows Developer Blog: Microsoft Execution Containers — Policy-Driven Containment for AI Agents — Microsoft's October 2026 announcement covering general availability, containment models, execution policies and operating modes.
- Microsoft Developer: Build and Run Agents Locally on Windows — Windows agent development platform and application integration scenarios.
- Microsoft Learn: Agent Governance — Guidance on governing and securely deploying agent workloads on Windows.
- Microsoft Learn: Windows 365 Support for MXC — Requirements and considerations for MXC execution on Cloud PCs.
Documentation and compatibility note: This article reflects official Microsoft documentation available as of December 1, 2026. MXC is an evolving technology. Exact SDK versions, Windows build requirements, backend capabilities, enterprise management availability and licensing conditions should be verified against the latest official documentation before deployment. Illustrative permission examples are conceptual rather than executable MXC configurations. No unverified internal knowledgebase links or undocumented configuration commands have been included.
Was this guide useful?
Your answer helps us keep BISONKB accurate and practical.