Repository navigation
MXC SDK v1.2.0 adds WSLC built-in proxy support for lifecycle (state-aware) containers, merged stdout/stderr pipes for ProcessContainer, experimental policy-preparation APIs, and custom Mach/IOKit/shared-memory rules for Seatbelt.
Crates.io: https://crates.io/crates/mxc-sdk/1.2.0
NPM: https://www.npmjs.com/package/@microsoft/mxc-sdk/v/1.2.0
NuGet: https://www.nuget.org/packages/Microsoft.Mxc.Sdk/1.2.0
See the Assets section for mxc-release-binaries.zip, which contains release binaries that can be useful for testing.
What's Changed
Experimental features
-
Policy Preparation APIs: When Windows ProcessContainer refuses a policy, these APIs return a corrected request JSON plus a list of the changes made. The corrected request never grants more access than the original. The caller decides whether to accept and retry. See documentation here
-
Seatbelt Custom Lists: New
customMachLookups,customMachRegisters(global and local),customIoKitsandcustomPosixShmsettings in the 1.1.0-alpha development contract.
To use these new experimental behavior from the SDKs, you must use the v1::dev namespace.
Behavior changes
-
WSLC Built-in Proxy
- In both create-and-run and lifecycle modes, the WSLC built-in proxy enables a mix of egress, ingress, and hostLoopback defaults. These modes also now fully support TCP egress rules by CIDR and port, port mappings, and a custom proxy.
- network.ingress.hostLoopback: "allow" allows containers to reach Windows
127.0.0.1athost.wslc.internal; this needs WSL 3.0.5 or later.
-
Merged stdout/stderr pipes:
MergedPipesin Rust andSpawnStdio.MergedPipesin .NET. Can now be used in the spawn_with_extended_options API. This option makes stdout and stderr share one pipe, in the order the process wrote them. This capability is currently Process container only. -
Seatbelt Custom Lists
guiAccessandextraMachLookupsare now deprecated in favor of these new fields. Users ofguiAccessare encouraged to use learning mode to determine what specific grants should be given. View guide.
-
Policy paths
- ProcessContainer rejects filesystem policy paths that aren't fully qualified Windows paths, including in dry runs when using wxc-exec.exe.
- Bubblewrap and LXC reject paths containing
..
-
WSLC bridged lifecycle sandboxes
- Each one gets its own network, so sandboxes can't reach each other's container addresses.
- A session holds at most 256 bridged sandboxes, and bridged sandboxes need WSL 3.0.5.
-
Linux hardening
- Bubblewrap workloads have all capabilities removed, can't create user namespaces, don't inherit the host environment, and run as reserved subordinate IDs when root.
- LXC containers no longer run privileged.
-
captureDenials (Learning Mode): Saved ETL trace files are deleted after 7 days.
Changelog
- [IsoSession] Document real commandLine execution behavior by Dom Giandinoto (@daamenik) in #1773
- [IsoSession] Environment vars in config without an equals sign ignored by Dom Giandinoto (@daamenik) in #1770
- Fix isolation-session bundle compatibility validation by Dan Legg (@danlegg) in #1786
- [WSLC] Proposal: Built-in proxy for networking by Elliot (@theelliotm) in #1625
- [Bubblewrap] 1/2: Drop all capabilities from the container by Soham Das (@SohamDas2021) in #1734
- [IsolationSession] Run nightly validation on 24H2, 25H2 and 26H2 by adpa-ms in #1801
- [CI] Fix WSLC bugs with scheduled validation tests by Elliot (@theelliotm) in #1798
- [WSLC] (2/2) Preserve structured errors from process waits by Soham Das (@SohamDas2021) in #1711
- [WSLC] Port mappings for the built-in proxy by Elliot (@theelliotm) in #1799
- Reject parent components in Linux filesystem policy paths by Safet Hrbinic (@safmswork) in #1675
- [WSLC] Custom proxies and host loopback for the built-in proxy by Elliot (@theelliotm) in #1816
- [IsolationSession] Document what availability depends on by adpa-ms in #1830
- Reject relative ProcessContainer filesystem policy paths by Safet Hrbinic (@safmswork) in #1695
- Add caller-owned policy preparation by Ross Nichols (@rossnichols) in #1718
- [CI] Fix WSLC daemon cleanup and proxy 502 flakes in scheduled validation by Elliot (@theelliotm) in #1833
- Do not run privileged LXC containers. by Darren Hoehna (@dhoehna) in #1688
- [WSLC] Give each bridged lifecycle sandbox its own network by Soham Das (@SohamDas2021) in #1832
- [Bubblewrap] Stop sandboxed workloads from creating user namespaces by Soham Das (@SohamDas2021) in #1808
- fix(bubblewrap): start bwrap with an empty environment by Carlos Alexandro Becker (@caarlos0) in #1807
- [Bubblewrap] 2/2: Map root workloads to reserved subordinate IDs by Soham Das (@SohamDas2021) in #1814
- [IsoSession] Add the isolation_session network test baseline by Ion Vasilian (@ionvasilian) in #1796
- Natural EOF registered for piped input with non-interactive output by Dom Giandinoto (@daamenik) in #1736
- [IsolationSession] Split process-management classes/methods into process.rs by Dom Giandinoto (@daamenik) in #1861
- [Seatbelt] Add custom Mach, IOKit, and shared memory lists by Elliot (@theelliotm) in #1720
- Retry and diagnose LXC address reservation activation by Gudge (@MGudgin) in #1849
- Delay load DLLs to accomodate different backend startup requirements. by shschaefer in #1865
- [WSLC] Built-in proxy for container lifecycle sandboxes by Elliot (@theelliotm) in #1838
- Splitting IsolationSessionManager into GA and Preview implementation files by Dom Giandinoto (@daamenik) in #1871
- chore(deps): bump the github-actions group across 1 directory with 7 updates by Dependabot (@dependabot)[bot] in #1853
- chore(deps): bump minimatch and rimraf in /sdk/node by Dependabot (@dependabot)[bot] in #1877
- [Bubblewrap] Unblock the watchdog's signals in spawned children by Skye Soss (@Skyb0rg007) in #1804
- chore(deps): bump the github-actions group with 3 updates by Dependabot (@dependabot)[bot] in #1890
- [Seatbelt] Deprecate guiAccess by Elliot (@theelliotm) in #1870
- Stabilize the LXC relay capacity test by Gudge (@MGudgin) in #1889
- MicroVM - Clarify lifecycle and validation by Huzaifa Danish (@huzaifa-d) in #1899
- [IsolationSession] Print evidence when the %TEMP% continuity check fails by adpa-ms in #1906
- [IsolationSession] Keep executor process IDs unique in the lifecycle telemetry check by adpa-ms in #1909
- Retry interrupted reads in the LXC relay limit test by Gudge (@MGudgin) in #1905
- Parallelize native CI and share Windows build outputs by Gudge (@MGudgin) in #1852
- Require design approval before implementation merges by Gudge (@MGudgin) in #1911
- Cache and retry npm installs in the Windows SDK test bundle job by Elliot (@theelliotm) in #1915
- Signal the Bubblewrap probe group before its leader by Gudge (@MGudgin) in #1914
- Reduce Azure pipeline delays with parallel builds and tests by Branden Bonaby (@bbonaby) in #1883
- Delete retained captureDenials ETLs after seven days by Jacob Dereje (@jacobdereje-msft) in #1876
- [IsoSession] Adding --use-new-isosession flag to switch between GA and Preview IsoSession at runtime by Dom Giandinoto (@daamenik) in #1892
- Revert npm dependency update blocking Azure builds by Branden Bonaby (@bbonaby) in #1921
- Enable merge of stdio and stderr into a single output pipe. by shschaefer in #1913
- [Docs] Propose typed capture diagnostics design and API by Richie Gomez (@richiemsft) in #1878
- Bump SDK versions to 1.2.0 by Branden Bonaby (@bbonaby) in #1935
New Contributors
- Ion Vasilian (@ionvasilian) made their first contribution in #1796
- Skye Soss (@Skyb0rg007) made their first contribution in #1804
Full Changelog: v1.1.0...v1.2.0