MXC - a sandboxed code execution system
Recorded: Oct. 9, 2026, 2:10 p.m.
| Original | Summarized |
GitHub - microsoft/mxc: Policy-driven, layered isolation and containment · GitHub Skip to content Navigation MenuSign inAppearance settingsPlatformAI CODE CREATIONGitHub CopilotWrite better code with AIGitHub Copilot appDirect agents from issue to mergeMCP RegistryIntegrate external toolsDEVELOPER WORKFLOWSActionsAutomate any workflowCodespacesInstant dev environmentsIssuesPlan and track workCode ReviewManage code changesCode QualityEnforce quality at mergeAPPLICATION SECURITYGitHub Advanced SecurityFind and fix vulnerabilitiesCode securitySecure your code as you buildSecret protectionStop leaks before they startEXPLOREWhy GitHubDocumentationBlogChangelogMarketplaceView all featuresSolutionsBY COMPANY SIZEEnterprisesSmall and medium teamsStartupsNonprofitsBY USE CASEApp ModernizationDevSecOpsDevOpsCI/CDView all use casesBY INDUSTRYHealthcareFinancial servicesManufacturingGovernmentView all industriesView all solutionsResourcesEXPLORE BY TOPICAISoftware DevelopmentDevOpsSecurityView all topicsEXPLORE BY TYPECustomer storiesEvents & webinarsEbooks & reportsBusiness insightsGitHub SkillsSUPPORT & SERVICESDocumentationCustomer supportCommunity forumTrust centerPartnersView all resourcesOpen SourceCOMMUNITYGitHub SponsorsFund open source developersPROGRAMSSecurity LabMaintainer CommunityGitHub StarsArchive ProgramREPOSITORIESTopicsTrendingCollectionsEnterpriseENTERPRISE SOLUTIONSEnterprise platformAI-powered developer platformAVAILABLE ADD-ONSGitHub Advanced SecurityEnterprise-grade security featuresCopilot for BusinessEnterprise-grade AI featuresPremium SupportEnterprise-grade 24/7 supportPricingSearch/Sign inSign upAppearance settings You signed in with another tab or window. Reload to refresh your session. Dismiss alert microsoftmxcRepository navigationCodeIssues38 (38)Pull requests14 (14)ActionsProjectsSecurity and qualityInsightsMore items mxcPublicNotificationsYou must be signed in to change notification settingsFork115 (115)Star2.2k (2.2k)You must be signed in to star a repositoryAboutPolicy-driven, layered isolation and containment ResourcesReadmeMIT licenseCode of conductCode of conductContributingContributingSecurity policySecurity policyActivityCustom propertiesStars2.2k starsWatchers10 watchingForks115 forksReport repositorymainBranchesTagsGo to fileCodeOpen more actions menuLatest commit History490 Commits490 CommitsFolders and filesNameNameLast commit messageLast commit date.azure-pipelines.azure-pipelines .cargo.cargo .config.config .github.github docsdocs external/windows-sdkexternal/windows-sdk samplessamples schemasschemas scriptsscripts sdksdk srcsrc teststests .editorconfig.editorconfig .gitattributes.gitattributes .gitignore.gitignore CONTRIBUTING.mdCONTRIBUTING.md LICENSE.mdLICENSE.md README.mdREADME.md SECURITY.mdSECURITY.md SUPPORT.mdSUPPORT.md TRADEMARKS.mdTRADEMARKS.md build-mac.shbuild-mac.sh build.batbuild.bat build.shbuild.sh es-metadata.ymles-metadata.yml global.jsonglobal.json View all filesRepository files navigationREADMECode of conductContributingMIT licenseSecurityMore itemsMicrosoft eXecution Container (MXC) Cross-platform: Windows, Linux, and macOS support with Filesystem policy: Read-only, read-write, and denied path lists State-aware lifecycle: Provision, start, execute, stop, and deprovision What is MXC? flowchart LR Loading Your application specifies: The container type MXC validates the request, selects the backend, and launches the workload in Runtime platform Windows 11 x64 / ARM64 Linux x64 / ARM64 macOS ARM64 / x64 * These backends are experimental. SDK Rust .NET Node The Node and .NET packages include the native runtime assets. The Rust crate const request: ContainerRequest = { const child = await spawn(request); Warning: --audit turns off all sandbox security for the workload being Audit mode helps a policy author find access-denied failures and reconstruct a Rust, pinned to version 1.93 by Build Document SDK samples SDK API reference Container lifecycle Logging access denied Telemetry Backend guides Repository contributors should start with the Footer © 2026 GitHub, Inc. Footer navigation Terms Privacy Security Status Community Docs Contact Manage cookies Do not share my personal information You can’t perform that action at this time. |
The Microsoft eXecution Container (MXC) is a sandboxed code execution system designed to run untrusted code, including models, plugins, and tools, across Windows, Linux, and macOS platforms. It achieves this through a unified containment model that employs layered isolation and containment techniques, supported by typed Software Development Kits (SDKs) and multiple containment backends. MXC operates by receiving requests from an application that specifies the container type, the containment rules, and the workload command. The system validates this request, selects an appropriate containment backend, and launches the workload within the resulting container. The core functionality is driven by policy-based sandboxing, which controls access across various dimensions. This includes filesystem policies defining read-only, read-write, or denied path lists, network policies managing proxy support and outbound controls, and UI policies limiting access to clipboard, display, and GUI elements. The system supports a wide array of containment backends, which are platform-appropriate depending on the runtime operating system. For Windows, supported backends include processcontainer, Windows Sandbox, LXC, Bubblewrap, Seatbelt, MicroVM (Nanvix), Hyperlight, IsolationSession, and WSLC. On Linux, the recognized backends are bubblewrap, LXC, MicroVM, and Hyperlight, while macOS supports seatbelt. These backends provide the physical mechanism for isolating the execution workload. MXC incorporates a state-aware lifecycle management, allowing for the full provisioning, starting, executing, stopping, and deprovisioning of persistent containers. It provides versioned APIs via SDKs for Rust, .NET, and Node, enabling state-aware and one-shot execution capabilities. The SDKs, along with the Rust crate, build the MXC SDK, the engine, and selected backends directly into the consuming application. Diagnostics are integrated into the system to help users understand access-denied failures within a container. Execution modes include standard operation, a debug console mode, and an audit mode. The audit mode provides a mechanism for policy authors to analyze observed access failures and reconstruct ProcessContainer policies that accurately grant the necessary files and capabilities to a trusted tool. Furthermore, telemetry options are available, though collection requires explicit consent and administrative policy permissions. Developers can interact with the system through the SDKs or by using platform-specific executor binaries, such as wxc-exec.exe, to submit JSON container-creation requests adhering to a stable schema. For development and custom builds, the system can be compiled from source, which necessitates prerequisites like Rust, Node.js 24 or later, and npm, depending on the selected backend. The repository provides extensive documentation covering the SDK API reference, container lifecycle details, logging access denied diagnostics, telemetry controls, and backend prerequisites. |