Skip to content

Add opt-in Windows protected native launch - #561

Draft
JusterZhu wants to merge 4 commits into
justerzhu-ordered-report-lifecyclefrom
justerzhu-protected-native-launch
Draft

JusterZhu wants to merge 4 commits into
justerzhu-ordered-report-lifecyclefrom
justerzhu-protected-native-launch

Conversation

@JusterZhu

@JusterZhu JusterZhu commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Scope

Adds an opt-in Windows-only trusted-system/cooperative-Native-AOT profile, private per-launch SHA-256 snapshots, native launch with no inherited handles and atomic kill-on-close job assignment, owned process/exit lifetime, and identity-checked cleanup. Base: #559 at 7c53fec00be60ddd7eab3a935550db1e413c017c. This is separate from the #560 experiments.

Security boundary

The host trusts the Windows loader, API-set/SxS and system DLLs, and is responsible for historical protection of those system objects from untrusted users. This is not established by ACL checks. The host provides an audited application module name manifest, an exact matching set of individually pinned application files, and a disjoint list of audited system module names for the particular peer. Names and System32 paths are not proof that a file is a trusted system component; an omitted application module incorrectly classified as system cannot be detected from names alone. Normal and delay imports of every staged native PE must appear in one of these lists, and forwarded application exports are rejected; these checks do not prove API-set or SxS resolution. The host must audit the pinned cooperative peer and its application SxS/runtime load behavior. The peer must restrict DLL searches and explicitly load application dependencies from staging before handling sensitive input. This is not a sandbox for arbitrary peer behavior.

Same-user malicious processes and administrators are excluded. No kernel image-section identity, peer authentication, credential transfer, IPC, or Client/Updater integration is claimed. Staging changes the executable directory and working directory; installation context must be provided separately. Crashes can leave protected staging files. See docs/windows-protected-launch.md for ownership, cleanup and deployment limitations.

Validation

Final product head b6a9ddd479437df3faea2de892af191d5192aea9: Windows Native AOT publish/run succeeded, with 22 focused tests passed and none skipped. These cover cross-process pre-existing write/delete handles, held image/ancestor replacement, ACL/reparse rejection, malformed PE directories, missing/replaced/conflicting dependencies and zero-start cases, SQLite loading, restricted inheritance, cancellation, normal release and owner termination. This does not independently exercise every possible Windows job nesting policy or failure of every native API. The first product run failed in publish with NETSDK1207 because PublishAot reached netstandard2.0; the workflow now restricts the publish framework. The separate #560 experiment is not product validation.

JusterZhu and others added 4 commits November 23, 2026 18:01
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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