Skip to content

test(windows): expose cross-session read grant leakage - #56

Draft
m62624 wants to merge 2 commits into
mainfrom
fix/windows-concurrent-read-isolation
Draft

m62624 wants to merge 2 commits into
mainfrom
fix/windows-concurrent-read-isolation

Conversation

@m62624

@m62624 m62624 commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Confirmed native regression

The new concurrent_read_grant_does_not_widen_an_existing_sandbox test demonstrates a Windows isolation failure: a long-running guardian cannot read a file before a second sandbox receives a read grant, but can read it while that other sandbox runs. The second Windows CI run confirms this on the real backend.

Current status

Draft investigation, not a verified fix and not ready for release. The initial attempt to replace the installation-wide read SID with a per-profile SID does not prevent the leak; the native test remains red. CreateRestrictedToken currently uses WRITE_RESTRICTED, under which restricting SIDs do not constrain reads. The runner account/group ACL grant is shared by concurrent launches. A correct fix must change that normal-token read authority or the process/account boundary, without breaking Windows session startup and existing native tests.

BOSS currently rejects dynamic additional-permission launches on Windows before native preparation. Initial sessions and Linux/macOS escalation remain available. Do not publish a Cageforge release from this draft until the native test passes.

Co-authored-by: codex <codex@openai.com>
@github-actions github-actions Bot added the fix label Sep 23, 2026
Co-authored-by: codex <codex@openai.com>
@m62624 m62624 changed the title fix(windows): isolate concurrent filesystem read grants test(windows): expose cross-session read grant leakage Sep 23, 2026
@github-actions github-actions Bot added the test label Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant