Skip to content

feat(sandbox): prototype Windows process confinement#11589

Draft
marius-kilocode wants to merge 2 commits into
mainfrom
research-windows-filesystem-sandbox
Draft

feat(sandbox): prototype Windows process confinement#11589
marius-kilocode wants to merge 2 commits into
mainfrom
research-windows-filesystem-sandbox

Conversation

@marius-kilocode

@marius-kilocode marius-kilocode commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Windows currently reports process confinement as unavailable even when the experimental sandbox is enabled, so model-originated commands cannot consume the OS-neutral write profile on native Windows.

This draft prototypes a Kilo-owned native helper that translates the normalized filesystem profile into a write-restricted token, root-specific restricting SIDs and NTFS ACLs. It launches a target suspended inside a kill-on-close Job Object with an explicit inherited-handle list. The TypeScript backend remains a command wrapper, preserving the same tool-independent integration used by Seatbelt. Unsupported filesystems, missing helpers and setup failures remain fail-closed.

The first boundary deliberately targets local fixed NTFS volumes and protects existing nested deny paths such as .git. It does not add network enforcement or claim support for UNC, WSL, ReFS, Dev Drive, unknown reparse layouts or ambiguous hard links.

This remains a proof of concept rather than a distributable Windows backend. The helper is built only for the Windows integration gate and is not yet placed into CLI or VSIX artifacts. The minimal native cmd.exe path demonstrates selected writes and nested denial, but PowerShell currently cannot initialize the CLR with the deliberately narrow restricting-SID set. That compatibility/security tradeoff, ACL lifecycle recovery, broader escape coverage, arm64 execution, packaging and signing remain release blockers tracked by #11542.

@marius-kilocode marius-kilocode force-pushed the research-windows-filesystem-sandbox branch from 760e27b to 2465164 Compare June 23, 2026 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant