npm / microsandbox
microsandbox
What changed in microsandbox 0.3 to 0.7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
50 breaking17 security188 new APIs and options11 performance29 behavior and defaults3 tooling186 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmicrosandbox 0.7123 changes
Breaking changes 9
The SDK refuses env values the guest cannot boot with.
Network policy denials return JSON by default.
The SDK refuses reserved label keys in modify.
Disk restores that would silently drop host mounts are refused.
Denied HTTP/HTTPS egress now receives a 403 instead of a connection reset.
Readable denial responses are opt-in.
Renames the SDK option allow_passthrough_for to allow_placeholder_for.
Enables the strict hostname policy by default.
Guest filesystem flush policies are now explicit, changing how developers specify snapshot flush behavior.
Security 4
Truncated HPACK blocks are rejected before decoding.
Applies exec limits before switching users.
Prevents secret leaks and corrects adapter behavior.
Secret scanning is scoped to request locations.
New APIs and options 33
Services are added to the SDKs and CLI.
Adds opt-in candidate installs and publishing.
Admission metrics are exposed for monitoring network admission.
Secrets can be modified on cloud sandboxes.
The SDK exposes HTTP CONNECT proxy authentication.
The Go SDK allows anonymous registry authentication.
Configuration can restrict backends.
Context commands are added.
HTTP CONNECT proxy basic authentication is supported.
Published ports can be added and removed.
The SDK exposes retained sandbox exit outcomes.
An opt-in helper provides application certificate trust.
Filesystem state limits can be configured for snapshots.
Secret substitution can be scoped to specific header fields.
The msb restore command accepts --mount-disk.
Detached jobs can be owned by the runtime.
Adds cache cleanup functionality.
Adds controls for command tree depth and display.
Adds DAX support to the filesystem.
Adds an option to disable guest clock synchronization.
Adds support for an HTTP CONNECT outbound proxy.
Makes the filesystem init binary optional.
Adds storage usage reports.
The SDK adds fork naming and deprecated compatibility aliases.
The exec and run commands add --no-stdin.
The published-port TCP accept queue size is configurable.
Core errors in the Ruby SDK are mapped to typed exception classes.
Adds managed administrator overrides to configuration.
Adds a command for waiting on a sandbox.
Adds shared contracts for cloud snapshots.
Adds request compatibility for cloud use.
Adds opt-in startup and network traces for profiling.
Adds configuration for TCP and UDP connection limits.
Performance 3
Cuts per-file host operations on passthrough mounts.
Reduces host CPU usage for paused sandboxes.
Improves network and temporary-storage reliability.
Behavior and default changes 5
Inbound TCP is queued, allowing connections to wait for admission.
Sandboxes support nested virtualization.
Label modifications apply live to running sandboxes.
Published ports support ranges.
Control operations gain generation-two CBOR parity.
Tooling 1
Simplifies snapshot commands.
Fixes and other changes 68
Bulk cleanup bursts no longer stop the guest.
The SDK decodes every cloud sandbox status.
SNI DNS bindings are revalidated on reconnect.
Failures involving stdin, logs, init, image, and ports are repaired.
Cloud SDK cleanup and CLI onboarding issues are repaired.
Failed command outcomes are preserved over SSH.
Legacy sandbox storage is recovered safely.
Directory listings skip Windows reparse points.
Guest sparse seek modes are translated on macOS.
Bare host copy destinations are resolved against the current directory.
Sandbox cleanup recovers when creation is interrupted.
Keyring is enabled in CLI builds.
The Node SDK validates kill and connect timeouts before calling native code.
Windows bind mounts follow host-side renames.
Preserves caller overrides across rebuilds.
Allows detached jobs to idle.
Makes empty exec stdin writes a no-op.
Keeps pruning safe without blocking unrelated work.
Prevents terminal sessions from hanging after output.
The bootstrap trampoline rootfs is reclaimed after the VM exits.
The runtime now honors custom filesystem backends.
Node and Go can modify the set secret policy.
IPv4 fallback is preserved when IPv6 stalls.
Live legacy startup endpoints are preserved.
Relative install paths are resolved before changing directory.
The last entry of a repeated env key is set.
Secret substitution is preserved for plain modify.
Import no longer creates duplicate catalog entries.
Default storage usage output is shorter.
Cached paths are updated after Windows directory renames.
Disk-only restores from snapshot archives are allowed.
Memory limits and usage now follow live memory resizes.
The relay keeps running if a local client's arena closes mid-route.
SQLite locks are preserved during Linux identity checks.
Storage cleanup and snapshot recovery are repaired.
Windows cleanup and usage accounting are completed.
Keeps earlier DNS answers bound to a domain.
Surfaces guest initialization failures.
Accepts reordered image metadata when importing an archive.
Regenerates the image VMDK descriptor when importing an archive.
Provides a utoipa schema for nat64_prefixes.
Publishes ports without host routes.
Includes the peer's message in rejected operation errors.
Reads restored resource targets while the sandbox is still starting.
Allows removing a sandbox that never started.
Supports secret policy modification options in Python.
Creates SFTP files and directories as the session user.
Reports symlinked bind mount roots at create time.
Drains TCP responses before closing.
Patch parents retain lower directory metadata.
Piped exec no longer hangs on stdin.
Guest FIN is propagated on published ports.
Snapshot patches are rejected before storage is created.
Placeholders are allowed on trusted secret hosts.
Surviving macOS hard links remain writable.
Fixes forwarding of binary first flights.
Preserves SDK and runtime compatibility across versions.
Finds libkrunfw through symlinks.
Fixes compilation on musl.
Detects the native Linux musl target.
Enables TLS interception when modify adds a secret.
Catalog upgrades are allowed while older runtimes are running.
CLI upgrades are separated from SDK compatibility in the catalog.
Owned block disks now honor the guest flush policy.
Metrics now read legacy registry ABIs.
Stops macOS fallocate from truncating larger files.
Prevents suffix matching from panicking on multibyte SNI.
Creates standard stream symlinks during initialization.
microsandbox 0.6120 changes
Breaking changes 12
Deferred domain allows require DNS pins.
Guest bootstrap is moved off the kernel command line.
Python SDK closed values are now standardized as enums, changing how developers represent these values.
Cloud backend selection must now be explicit.
Snapshot payload integrity is now opt-in.
The SDK unifies the cloud backend and paginated listings, changing how developers use those SDK capabilities.
The failure-message field is renamed.
Guest paths are typed as strings, and Windows path handling is fixed.
Mount-root symlink protection is enabled by default, with an opt-out.
The oci-upper-size setting is replaced by a structured root-disk specification.
Snapshot attempts for tmpfs or disk-image root disks return purposeful errors.
Stopping execution now kills the process group rather than only the direct child.
Security 2
Single-file mounts are isolated.
Bind rootfs patches are contained.
New APIs and options 43
Adds support for outbound SOCKS4 and SOCKS5 proxies.
Adds support for proxy credentials.
Adds SOCKS5 UDP support.
The Go SDK resolves its install directory from MSB_HOME.
Adds a fallible lazy local backend builder for SDK users.
Adds a mod alias to the CLI.
The CLI adds plural aliases for resource list commands.
The SSH inactivity timeout is configurable.
The SDK exposes the active backend context.
The SDK supports default volume files in cloud environments.
Deployment profiles can be configured from config.json.
The SDK adds explicit default workload execution.
The runtime adds deployment profiles.
Root filesystems can use flat OCI root disks.
Go and Python SDKs expose insecure and CA certificate registry overrides.
A production-ready Ruby SDK gem is added.
The CLI adds a command for generating shell completion scripts.
Placement profiles can account for NUMA.
Network egress and ingress rate limits can be set per sandbox.
SDK bindings now expose root disk resizing.
The runtime adds scoped sockets and host vsock routes.
The SDK supports sparse patches to sandbox configuration.
A shared LogRegistry is available for followed streams.
A top-level downgrade alias is added.
The SDK exposes tty resizing for exec sessions.
Image.load is exposed for loading local image archives; support is extended to the Node and Go SDKs.
Image.save is exposed for saving local image archives; support is extended to the Node and Go SDKs.
Composable network profiles are added.
Bidirectional migration for the v0.6.6 snapshot format is added.
A sandbox status_reason field is added.
The Go SDK supports tty exec sessions.
A top-level update alias is added.
A top-level upgrade alias is added.
The Go SDK adds Windows support.
Running sandboxes can now be modified and resized live.
Shows sandbox state and adds watch/follow modes to metrics.
Shows resource allocations for sandboxes.
The shutdown flush timeout can now be overridden.
The doctor feature adds cross-platform host checks with safe auto-fixes.
Adds a CLI option for execution without a TTY.
The CLI adds a self-downgrade capability.
The SDK now supports a host-directory bind rootfs.
Windows is now supported.
Performance 5
On Windows, allocated file ranges are copied on NTFS.
The runtime integrates a measured host optimization stack.
Files with holes are stored as GNU sparse tar entries on export.
Image loading is faster with an early cache gate and zlib-rs decoding.
Image pulling is faster with an early cache gate and zlib-rs decoding.
Behavior and default changes 9
Sandbox configuration is now overlaid by field presence.
Directory mounts now have fallback ownership.
The Go SDK supports AttachWith for non-default guest users.
Placement degrades under pressure.
Offline builds can use staged agentd.
Writeback pressure is shared live.
Scopes upstream TLS verification.
Shows progress while loading.
Bind mounts are now supported on Windows.
Tooling 1
A precompiled platform gem build pipeline was added for Ruby.
Fixes and other changes 48
Log retrieval is routed through SDK backends.
An empty MSB_HOME is treated as unset.
Network slots are recycled.
On Windows, host DNS is routed through the system resolver.
Readonly mounts no longer trigger write probes.
Removes backend notices from the CLI.
Supports resizing legacy ext4 upper disks.
Temporary exec sandboxes are stopped when errors occur.
Preserves the executable mode of the bundled msb executable so it can be run as intended.
Bind mount paths are formatted correctly.
Errors are cleared when a bind-mount host directory is permission-denied.
Networking falls back between host loopback families.
Nested mount destinations are ordered parent first.
Interactive attach on Windows uses WriteConsoleW and ReadConsoleW.
Go uses an alternate signal stack on macOS.
Cloud agent WSS now trusts system CAs.
Cloud compatibility gaps in the SDK are fixed.
DNS network rules are parsed in release builds.
DNS now fails over to subsequent upstreams.
Guest TCP half-closes are propagated to proxy tasks, with additional half-close races handled.
Host policy is kept out of cloud resources.
Sandbox label projection is kept consistent.
Saved archives preserve long link targets.
Nested OCI image indexes are loaded.
Image inspection preserves OCI config labels.
Backpressured data on published ports is preserved.
Flush is skipped for read-only handles to avoid spurious EACCES on close.
Stale sandbox gauge series are dropped.
Secret placeholder defaults are unified.
Windows release swaps are deferred until process exit.
Cloud sandboxes reconnect for exec and ssh.
A default export condition is added for CommonJS consumers of the Node SDK.
The Go SDK forwards guest-write quota to bind mounts.
Image defaults run in detached mode.
Compatibility with Python 3.10 is restored for typed enums.
Sandbox specification types are made more explicit.
Duplicate secret placeholders are allowed.
Virtiofs shares can survive host file-descriptor exhaustion.
Snapshot entries from readdir are streamed.
The SDK now accepts ephemeral cleanup during stop waits.
Fixes handling of fragmented UDP and PMTU relay traffic.
IPv6 DNS edge cases are handled.
Restores local feature parity in the SDK.
Runtime diagnostics are aligned.
Help colors now account for terminal capabilities.
Fixes stale sandboxes by stopping them.
The winget package now declares VCRedist 2015+ as a dependency.
The SDK stops waiting on zombie sandbox runtimes.
microsandbox 0.5107 changes
Breaking changes 10
Removes the always-on heartbeat staleness kill behavior.
Attached sandboxes stop when the creator process exits.
The Go SDK removes CreateSandboxDetached; detached creation now uses a builder flag.
Detached creation uses a builder flag.
Policy-denied DNS queries return NXDOMAIN so stub resolvers fail closed.
The sandbox builder rejects zero resource limits.
Purges libkrunfw library path setup.
Sandbox names are limited by byte length.
Network policy flags are consolidated around --net-default and *.foo.com suffix.
The Python SDK simplifies its sandbox execution API.
Security 8
Secret boundaries for HTTP CONNECT tunnels are hardened.
Snapshot archive import is hardened.
Heartbeat idle detection is hardened.
Body-continuation chunks are handled across rustls reads.
Secret handling in the network layer is hardened.
UDP ports in the network layer are hardened.
Volume mount options are hardened.
SNI deny-domain policy evaluation is hardened.
New APIs and options 41
Adds non-PTY bidirectional streaming exec.
Adds guest-write quotas for virtiofs mounts.
Auto init entrypoints can run detached.
The SDK adds routing between local and cloud backends.
A shared microsandbox types crate is added for use by developers.
A sandbox spec contract is added.
Metrics now include upper disk usage.
The SDK exports AgentSocketPath for raw agentd transport.
The agent client adds connect_stream for byte-stream transport.
The CLI adds explicit mount kind flags for specifying mount kinds.
Metrics now report guest runtime metrics.
Adds idempotent named volume mounts.
Adds an API to atomically create per-sandbox named volumes.
Convergent sandbox lifecycle APIs are now available.
Introduces a foundation for agent protocol versioning.
Adds Homebrew tap support for macOS installation.
Adds an image management API to the Python SDK.
Adds --exclude-label-key to exclude a label key from msb-metrics.
OCI image labels are imported as sandbox labels.
Sandboxes can have labels and be selected by label.
Adds TCP forwarding through the guest agent.
Adds pruning for unused cached images.
Adds support for loading and saving archives.
Adds an msb-metrics sidecar.
A CLI command for copying is added.
A shorthand for secrets backed by environment variables is added to the CLI.
A CLI command for patching the root filesystem is added.
The Node/TypeScript SDK adds createWithProgress for image pull events.
A Go SDK with full API parity is available.
The agent relay wires in id_range_step.
IPv4 and IPv6 pools can now be configured.
Live metrics are available via a shared-memory registry.
The start command now accepts variadic arguments.
The OCI upper size can now be configured.
Passthrough mounts gain per-mount stat-virt and host-perms policies.
Port bind addresses can now be configured.
A raw agent client is available across SDKs.
A rotation-aware log streaming engine and SDK bindings are added.
Sandbox SSH client and server support is added.
The CLI adds --script-raw.
A passthrough secret violation type is added.
Performance 1
Redundant MSB_PATH reads are dropped from the Python and Node SDK layers.
Behavior and default changes 8
The runtime takes ownership of ephemeral sandbox cleanup.
Secret handling over plain HTTP now covers more request shapes and substitutes secrets.
Secret violation logs are enriched, providing more information when a violation occurs.
Emitted metrics include per-sandbox labels.
Groups top-level help commands.
The agent relay maximum client count is raised to 128.
Ingress policy enforcement is wired into the publisher.
The CLI makes --script more ergonomic.
Fixes and other changes 39
Mounts named kind=disk volumes as virtio-blk.
Restores live sandbox lifecycle APIs.
Restores named volume mount semantics in the SDK.
Detached startup semantics are preserved.
Guest hostnames stay within the UTS limit when a sandbox name exceeds it.
Image init entrypoint commands are preserved.
Secrets are now substituted through CONNECT proxies.
Volume operations no longer remove the volume root directory.
DAD is disabled for IPv6 addresses in the virtual network.
Early proxy exits are handled explicitly.
Sandbox runs now inherit the global log level.
Sandboxes with running execs are now excluded from idle reclamation.
The metrics collector skips sandboxes whose slot stopped updating.
The publisher is woken after the host channel is drained.
Restores default guest privileges.
Raises boot argument limits.
Prevents restart races related to idle timeouts.
Accepts legacy mount configuration.
Improves msb-metrics reporting.
Shows CLI timestamps in local time.
Bind mount ownership is mapped for guest users.
DNS UDP responses are delivered to guests.
The guest clock is synchronized with the host's.
HOME is set for implicit root execs.
Stale Node typings are refreshed.
Upstream writes in TLS interception are flushed.
Agent sockets now support long sandbox names.
The SDK now parses bare IP network destinations.
The upgrade path now supports old sandboxes upgrading to 0.5.
The release binary now enables the ssh feature.
AllSandboxMetrics no longer reports zero uptime incorrectly.
Cached TLS intercept certificates are refreshed before expiry.
Dot paths are treated as local inputs.
Follow mode now emits JSON Lines too.
Published-port stalls are fixed by waking smoltcp after the host accepts.
Root filesystem writes are flushed on stop.
Encoded request bodies are preserved during secret substitution.
Split irqchip is re-enabled on x86 Linux.
TLS CA certificates are installed into trust directories.
microsandbox 0.447 changes
Breaking changes 9
DNS queries are now subject to egress policy.
A replacement that exceeds its grace period is now terminated with SIGKILL.
Domain rules are enforced at DNS, SNI, and policy layers.
The CLI renames the file-form script option to --script-path.
The Node SDK builders were redesigned as native napi classes, changing the builder API developers use.
The installer now rejects unsupported glibc, preventing installation on unsupported systems.
Rewrites the --net-rule grammar and flag set.
Redesigns the network policy schema to specify direction per rule.
The TypeScript SDK is redesigned with a builder API and bundled binaries.
Security 3
Secret handling now supports Basic authentication.
Secret handling now detects encoded and split bypasses.
The --no-net option now actually air-gaps the guest.
New APIs and options 20
Adds a metrics sampling interval.
Adds an environment variable override for isolated state.
Boot errors are recorded in boot-error.json.
Execution logs are captured in exec.log.
ExecFailed is now typed.
File-first disk snapshots are available across the CLI, Rust, TypeScript, and Python.
The packaging installs the msb alias alongside the microsandbox CLI.
The CLI adds an inline script option.
OCI root filesystems are block-backed via VMDK and EROFS fsmeta.
Image handling supports custom TLS certificates and insecure registries.
Volumes support disk-image mounts and a unified readonly option.
DNS intercepts TCP port 53 and DoT port 853 queries.
Adds execStreamWithConfig to the TypeScript SDK.
Sandbox guests can trust host certificate authorities when opted in.
Adds the host.microsandbox.internal network alias.
Adds a keyring feature flag.
Adds a per-sandbox override for libkrunfw_path.
Adds policy and DNS builders with a lazy-parse error model.
Adds guest resource limits that apply sandbox-wide.
Adds secret injection options to the Node TypeScript SDK, similar to the Rust SDK.
Performance 1
Optimizes image persistence queries.
Behavior and default changes 2
The prebuilt download path now honors MSB_HOME.
PID 1 is handed off to a guest init binary.
Fixes and other changes 12
Digest path components are now validated.
The SDK path bridge is now compatible with Bun.
Large stdin payloads are now delivered, and broken-pipe errors are surfaced.
Prebuilt downloads now trust system certificates.
Address families are gated on host route availability.
Bounds relay handshake reads and prefers boot-error.json on timeout.
The Node SDK npm platform package ships libkrunfw under its canonical name.
The CLI help text now says REFUSED rather than NXDOMAIN, clarifying the DNS blocking response.
Improves enforcement of domain and domain suffix rules.
On macOS, nameservers are fetched via scdynamicstore.
SDK shims self-heal when the msb binary is missing.
Restores VM boot.
microsandbox 0.387 changes
Breaking changes 10
The msb shell command is removed.
Network configuration adds upstream CA trust and renames the TLS CA configuration.
Microsandbox was rewritten with an embeddable SDK, giving developers an SDK they can embed.
Merges attach into shell.
Renames Patch overwrite to replace.
Encapsulates ExecOutput in the SDK.
Replaces SandboxInfo with SandboxHandle in the SDK.
Groups functionality was removed and flag validation simplified.
ProxyFs and the hook/backend API surface were removed.
The workspace was consolidated into a single microsandbox crate, and workspace crates were moved under crates/.
New APIs and options 51
Adds CLI entry points for cargo, npx, and pipx, giving developers additional ways to use the microsandbox CLI.
Adds a CLI flag for NetworkPolicy::allow_all to allow private IPs.
The TypeScript SDK adds attach support.
Sandbox volume mounts can now target individual files.
The TypeScript SDK adds metricsStream.
A Python SDK is added with pyo3 bindings.
The TypeScript SDK adds filesystem readStream support.
Added the inject_init configuration option.
Adds per-command exec flags to msb run.
The rewrite includes a composable filesystem.
Adds a Node.js/TypeScript SDK, giving developers an SDK for using microsandbox from Node.js and TypeScript.
Adds gateway ping support.
Adds ICMP echo relay support.
Adds batch attach output.
Adds guest hostname support.
Adds guest user support.
Adds IntoExecOptions and IntoAttachOptions traits for ergonomic exec and attach.
Adds live metrics sampling and enhances the status command.
Adds image subcommands with database persistence.
Adds install and uninstall commands, and reuses sandboxes for named runs.
Adds registry authentication.
Adds rootfs patches.
The rewrite includes smoltcp networking.
Adds a background reaper for stale sandboxes.
Adds a relay for cross-process sandbox access.
Adds volume management and guest mounts, allowing developers to configure volumes for sandboxes.
Adds a quiet mode to the CLI.
Adds detached sandbox mode.
Adds pull progress bars for each layer.
Adds state reconciliation.
Core SDK infrastructure was added.
Disk image root filesystems are supported for qcow2, raw, and vmdk images.
The SDK gained exec, attach, and streaming execution capabilities.
Filesystem and volume management capabilities were added to the SDK.
Support was added for using GitHub Container Registry.
An initial Go SDK implementation was added.
A guest agent and protocol were added.
CLI support for --host was added, allowing developers to specify a host.
ImageSource was added for smart rootfs detection.
The memfs, proxyfs, and dualfs filesystem backends were added.
Tmpfs mount support can be configured via the MSB_TMPFS environment variable.
The msbnet networking stack was added with policy, DNS, and published ports.
OCI image pulling was added with OverlayFs rootfs support.
An overlay filesystem backend with copy-on-write semantics was added.
A passthrough filesystem backend was added.
Overlay gained a read-only mode with an optional upper layer.
Runtime infrastructure and CLI subcommands were added.
User-facing CLI commands were added for managing the sandbox lifecycle.
TLS interception was added to the msbnet networking stack.
Type-safe byte-size units were added for SDK APIs.
A Backend variant was added to VolumeMount, alongside mount hooks.
Performance 1
The image layer extraction pipeline was parallelized.
Behavior and default changes 5
The uninstall command gains an interactive multi-select.
Provisions loopback and /etc/hosts on every boot.
Sandboxes inherit OCI image configuration.
Prebuilt is now the default, so developers no longer need to select it explicitly.
Runtime dependencies are now installed automatically.
Tooling 1
A benchmark harness compares Docker and Microsandbox filesystem performance.
Fixes and other changes 19
Fixes intermittent CERT_NOT_YET_VALID errors on fast-booting sandboxes.
Content-Length is updated after body secret substitution.
The command is optional when msb exec runs in interactive mode.
Fixes Node.js TLS 1.3 connections hanging through the MITM proxy.
Prevents data loss in the TLS MITM proxy under parallel connections.
Run execution options are applied only when using --tty attach mode.
Fixed listxattr initialization.
Fixed symlink xattr operations.
The CLI now downloads the latest version bundle during self update.
Removes O_RESOLVE_BENEATH from macOS /.vol inode reopen.
Routes VM logs to guest.log and runtime.log.
Timed-out exec operations now return ExecTimeout.
Zero inode numbers are resolved during overlay readdir.
Sandbox creation validates that the workdir exists.
Fixes environment merging.
Adds an O_SYMLINK fallback for symlink lookup on macOS.
Backslashes are now allowed in filename validation.
The Go module path was corrected, and the SDK now generates a default Request ID.
The MCP protocol version was downgraded.