Bypassing Administrator Protection by Abusing UI Access
UI Access, the token flag Windows Vista added so accessibility tools could bypass User Interface Privacy Isolation, silently gives a limited user a High-integrity process. From there any administrator process with a window can be compromised, which makes UI Access the root cause of 5 of 9 Administrator Protection bypasses. Ways to get code running in such a process include defeating appinfo.dll's secure-directory check with NTFS named streams, writable directories like Tasks_Migrated, or MSIX installs into WindowsApps. Others repurpose existing uiAccess-signed binaries or abuse the limited user's shared profile, registry and drive mappings. The post also explains how Microsoft is now fixing these issues.
Related posts
- A Deep Dive into the GetProcessHandleFromHwnd API
Google Project Zero hardMaster
GetProcessHandleFromHwnd has changed substantially since Vista. It started as a user-mode windows hook in oleacc.dll that duplicated a limited process handle back to the caller. In Windows 10 1803 it became the Win32k kernel call NtUserGetWindowProcessHandle, which opened processes with KernelMode access and so skipped access checks entirely. That let UI Access holders, and any caller at equal or higher integrity, open sandboxed or protected processes that own a window (CVE-2023-41772). The partial fix and the Windows 11 24H2 changes (process protection in UIPI checks, a UIPIAlwaysOn feature flag, and a ResponsiblePid path requiring UI Access) close some gaps but leave quirks such as PPL App processes being able to open one another.
- Building a safe, effective sandbox to enable Codex on Windows
OpenAI hardMaster
Codex on Windows lacked an OS-level sandbox, so OpenAI built one from Windows primitives after rejecting AppContainer (too narrowly scoped for open-ended dev workflows), Windows Sandbox (separate VM, unavailable on Home SKUs) and Mandatory Integrity Control labels (turns the workspace into a low-integrity sink). The first unelevated prototype used synthetic SIDs plus write-restricted tokens and ACLs to confine writes to the workspace. Its network blocking relied only on poisoned proxy environment variables and PATH stubs, which any process could bypass. The current elevated design runs commands as dedicated local users (CodexSandboxOffline/Online) so Windows Firewall rules can block outbound traffic per principal, at the cost of an admin-required setup step that creates users, stores DPAPI-encrypted credentials and installs firewall rules.
- Replit’s Architecture Behind Secure Agent Work
Replit easyNoviceReplit's Agent Habitat secures agent work through four layers: least-privilege connectors with a credential broker that injects vault secrets only into authorized requests, microVM isolation with a hardened kernel, production changes gated behind engineering review and combined static, dependency and AI security scanning, and audit logs that stream to a SIEM. The microVM design blocked exploitation of recently disclosed Linux kernel flaws. Replit also patched affected Node.js, Python and PHP tooling centrally and deployed WAF rules. The post is largely a product overview, with modest architectural detail and a note on planned eBPF-based detection of suspicious agent activity.
- Improved Process Isolation in Firefox 100
Mozilla Hacks hardMasterFirefox 100 enables Win32k Lockdown on Windows, using PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY to block web content processes from calling the historically exploitable win32k.sys kernel APIs. Getting there meant moving every graphics and widget operation out of the content process. Painting moved to WebRender in the GPU process, Canvas 2D is recorded and replayed over IPC, and WebGL gained a validating child/parent API. Form controls are now drawn by Firefox itself instead of as native widgets, complex-script line breaking is forwarded over IPC with caching, and a fix stops injected third-party DLLs from breaking COM. Skipping those DLLs also made opening new tabs about 15% faster, and equivalent lockdowns of WindowServer on macOS and X11 on Linux sped process startup by 30-70% on Mac.
- Sandboxing
Zed mediumAdeptZed's agent panel now sandboxes the terminal and fetch tools by default (from 1.14) using OS-enforced restrictions: Seatbelt on macOS, Bubblewrap namespaces on Linux, and WSL on Windows. Default rules block writes outside project directories, writes to .git (which could plant hooks that run unsandboxed), and network access, and agents must request escalation with a stated reason. Instruction-following and command-matching rules like banning `git .*` are trivially bypassed via shells, env vars or other interpreters, and a symlink-swap TOCTOU race between user approval and bwrap bind mounting could grant write access to arbitrary readable directories, which Zed detects and fails closed on. The sandbox is one defense layer and does not cover the edit tool, ACP agents, LSP/MCP servers, build.rs, proc macros or git hooks run outside it.