Repository navigation
Implement mandatory desktop audit and hardening for guarded processes - #40
Conversation
|
Test it hard if it's working or not |
…ion and security boundaries
|
I have added cross-platform unit tests in |
|
This branch has conflicts with merge. See what is the issue. Fix it |
|
I have successfully resolved the merge conflicts by pulling the latest changes from |
|
Check failed |
|
[CI/CD Fix Attempt 1] I have resolved the issue causing the "Build & Test on windows-latest" CI check to fail. The problem was a type mismatch compilation error on Windows targets in |
|
The CI checks have now completed successfully. The type mismatch compilation error on Windows targets in |
|
[CI/CD Fix Attempt 1] The To fix this, I called |
|
I have addressed the check failure. The issue was a type mismatch in |
Summary
This PR implements critical security hardening for guarded processes to ensure complete UI isolation. By making desktop initialization and verification mandatory steps during the process lifecycle, we prevent untrusted applications from leaking onto the primary user desktop.
Rationale and Key Decisions
The primary goal was to address security escapes where processes occasionally bypassed isolation due to unverified initialization. We chose a "fail-closed" approach: if any part of the secure environment setup or verification fails, the process is terminated before it can execute a single instruction or render UI.
Key changes include:
crates/vm-orch/src/guard.rs, we replaced standard allocation withVec::try_reserve()for theVesselDesktopidentifier. This prevents panics or undefined behavior during memory pressure, ensuring the desktop string is valid before we attempt to spawn the process.audit_process_desktopcheck. This occurs while the process is in a suspended state.VesselDesktop. If the audit reveals the process is attached to the default desktop, the orchestrator now logs a failure and terminates the process immediately, preventing "UI flashes" on the primary desktop.Success Criteria Verification