Unsloth integrates Microsoft's open-source mxc sandbox on Windows
OS-level sandboxing now ships by default on Windows 11 24H2+, so developers building agents no longer need Docker or third-party isolation to run untrusted model output safely. The mxc SDK supports Rust, .NET and Node, and Unsloth's cross-platform setup (bubblewrap on Linux, Seatbelt on macOS) offers a reference for wiring sandboxes into agent toolchains. Windows-based agent developers can adopt it directly from the Unsloth GitHub repo.
Unsloth and the Windows team integrated Microsoft's open-source sandboxing system mxc (Microsoft eXecution Container, MIT-licensed) as an OS-level sandbox for isolating AI agent code execution.
On Windows 11 24H2+, where mxc comes preinstalled, the default backend is ProcessContainer, with Windows Sandbox, WSL containers and experimental Hyperlight also supported.
Unsloth adds less than 100 ms of overhead and offers two security tiers: Low uses language-level checks to block shell escapes and network exfiltration, while High provides full OS isolation.
Both tiers strip secret environment variables, refuse access to credential files, and enforce limits including 8GB memory, 600 seconds CPU time and 100MB per file.
Unsloth 与 Windows 团队合作,把微软开源的跨平台沙箱系统「mxc」集成为 Windows 上的操作系统级沙箱,用于隔离 AI Agent 的代码执行 @UnslothAI @Windows mxc (Microsoft eXecution Container) 是什么? 微软开源(MIT 协议)的沙箱化代码执行系统,定位就是隔离“不可信代码:模型输出、插件和工具”。几个关键设计: · 统一抽象、多后端:应用通过 SDK(Rust / .NET / Node)声明容器类型、隔离规则和工作负载,mxc 负责校验并选择后端启动。Windows 上默认后端是 ProcessContainer,另有 Windows Sandbox、WSL 容器,以及实验性的 Hyperlight(轻量级 microVM)和 Nanvix 等。 · 策略驱动:文件系统(只读/读写/拒绝路径列表)、网络(代理、出站控制、主机过滤)、UI(剪贴板、显示访问)均可细粒度配置。 · 完整生命周期管理:provision → start → execute → stop → deprovision,支持持久化容器,并带调试与审计模式。 Unsloth 的集成方式 Unsloth 按平台各接入了官方沙箱:Windows 用 mxc(Win11 24H2+ 预装)、Linux 用 bubblewrap、macOS 用 Seatbelt。提供两档安全模式: · Low(软件沙箱):在语言层做字符串、AST、正则检查;拦截危险命令(磁盘、提权、网络、进程类),分析 Python 代码阻断 shell 逃逸(os.system、subprocess)、网络外传、敏感文件读取等。 · High(系统级沙箱):真正的操作系统隔离,工具调用被限制在指定目录内,无法对系统造成实际伤害。 两档模式下都有纵深防御:剥离密钥环境变量、拒读 Studio 凭据文件,以及资源限额(进程数、单文件 100MB、内存 8GB、CPU 时间 600 秒),即使 fork 炸弹也会撞上进程数上限加调用超时。 Unsloth AI @UnslothAI Windows now has sandboxing! Microsoft released an open-source repo, mxc, for sandboxed code execution. We collaborated with Windows to add mxc OS level sandboxing to Unsloth which adds just <100 ms of overhead. GitHub: htt github.com/unslothai/unsl… ide: https://t.co/mhgPeh9Fld 🔗 View Quoted Tweet📊 1 ⚡
This report is categorized under AITOP's "Products" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows and US-China foundation model benchmarks and commercialization comparison. Key entities and technical topics under continuous tracking include Unsloth, mxc, Windows, sandbox.
Source attribution: curated from shao__meng (@shao__meng). Cross-source corroboration: 4 independent sources have covered this development (including Geek, arXiv cs.AI, Andrew Curran), confirming industry-wide signal strength.