microsoft--mxc
Microsoft eXecution Container — sandboxed execution cho untrusted code (model output, plugins, tools). Policy-driven, cross-platform (Win/Linux/macOS), TypeScript SDK, Rust binary.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-14
- Stars
- ★ 13
- Forks
- 2
01 前言 Front Matter
- name
- microsoft--mxc
- description
- Microsoft eXecution Container — sandboxed execution cho untrusted code (model output, plugins, tools). Policy-driven, cross-platform (Win/Linux/macOS), TypeScript SDK, Rust binary.
- allowed-tools
- Bash, Read, Write
- user-invocable
- true
03 SKILL.md 正文
MXC (Microsoft eXecution Container): chạy code không tin tưởng — model output, plugins, tools — trong sandbox có policy granular. Cross-platform, multiple isolation backends.
Install
npm install @microsoft/mxc-sdk
Usage (TypeScript SDK)
import { MXCClient } from '@microsoft/mxc-sdk'
const client = new MXCClient()
const result = await client.exec({
command: ['python', 'untrusted_script.py'],
filesystem: {
readOnly: ['/data/input'],
readWrite: ['/tmp/output']
},
network: {
outbound: false // no network access
},
timeout: 30000
})
JSON Config Schema (v0.6.0-alpha)
{
"version": "0.6.0-alpha",
"command": ["node", "agent_generated_code.js"],
"filesystem": {
"readOnly": ["./context"],
"readWrite": ["./output"]
},
"network": {
"proxy": null,
"outbound": false
},
"timeout": 30
}
Isolation Backends
| Backend | Platform | Strength |
|---|---|---|
| ProcessContainer | Windows (default) | lightweight |
| Bubblewrap | Linux (default) | namespace isolation |
| Seatbelt | macOS (default) | sandbox profiles |
| Windows Sandbox | Windows | full VM-lite |
| LXC | Linux | container |
| MicroVM (NanVix) | Linux | full VM |
| Hyperlight | Cross | micro-VM |
Sandbox Lifecycle
provision → start → exec → stop → deprovision
Hỗ trợ long-running sessions, không chỉ one-shot.
Dùng khi nào
- Chạy model-generated code an toàn
- Sandbox plugin/tool calls của agent
- CI/CD: test untrusted PR code
- Security research: execute malware sample
Caveat
"No MXC profiles should be treated as security boundaries currently" Đang alpha — dùng cho dev/research, không dùng làm hard security boundary.
Source
https://github.com/microsoft/mxc · MIT · +64⭐ today
04 同仓库更多 Skills
openai--sentry--sentry
Use when the user asks to inspect Sentry issues or events, summarize recent production errors, or pull basic Sentry health data via the Sentry API; perform read-only queries with the bundled script and require `SENTRY_AUTH_TOKEN`.
ito-basket-compare
Compare Itô prediction-market baskets against a user's knowledge base, portfolio notes, financial context, watchlist, or research thesis. Use for read-only basket comparison and gap analysis without investment advice or live trading.
implementing-network-traffic-baselining
Build network traffic baselines from NetFlow/IPFIX data using Python pandas for statistical analysis, z-score anomaly detection, and hourly/daily traffic pattern profiling
detecting-evasion-techniques-in-endpoint-logs
Detects defense evasion techniques used by adversaries in endpoint logs including log tampering, timestomping, process injection, and security tool disabling. Use when investigating suspicious endpoint behavior, building detection rules for evasion tactics, or conducting threat hunting for stealthy adversary activity. Activates for requests involving evasion detection, defense evasion analysis, log tampering detection, or MITRE ATT&CK TA0005.
implementing-microsegmentation-with-guardicore
Implementing microsegmentation using Akamai Guardicore Segmentation to map application dependencies, create granular network policies, visualize east-west traffic flows, and enforce least-privilege communication between workloads across data centers and cloud.
ramdisk-tmpfs-patterns
暂无简介