← Lab /Security & privacy

VirtualBox and Windows code-integrity can be bypassed by loading a .NET assembly via a single bit change

A .NET assembly compiled as AnyCPU can evade VirtualBox’s protected-process checks and Windows code-integrity policies by triggering a FlatImageLayout load path.

Security & privacy Google Project Zero 23 Nov 2026 Disclosure Real-world evidence

Published as “VirtualBox Process Hardening on Windows 2026 Edition: What’s a Single Bit Between Friends?”

Why it matters

The finding shows that Windows code-integrity and VirtualBox’s protected-process hardening can be subverted by a trivial .NET assembly tweak, undermining a key security boundary.

Summary

The researcher revisited VirtualBox’s protected-process hardening and discovered that .NET Framework v4 can load assemblies from a memory buffer using FlatImageLayout when CreateFileMapping fails with ERROR_BAD_EXE_FORMAT. By compiling a .NET DLL as AnyCPU (producing a 32-bit PE) the first mapping attempt fails, causing the runtime to use the data-only layout and bypass image-signature checks. Using COM hijacking to trigger the load inside a VirtualBox VM, the attacker gains arbitrary code execution, and the same technique works against WDAC/UMCI when the IMAGE_FILE_EXECUTABLE_IMAGE flag is cleared. The issue was disclosed as CVE-2026-87268 and patched in October 2026.

Caveats 7

  • The bypass is ineffective when Windows Dynamic Code Security is enabled, as it blocks all dynamic .NET loading.
  • Only .NET Framework v4 is vulnerable; newer .NET runtimes (v5+) were not tested.
  • The attack relies on COM registration in the current user hive, which can be mitigated by disabling such lookups.
  • Works only on .NET Framework v4, not on older v2/v3.5 or newer .NET runtimes.
  • Requires the target process to load a COM object that the attacker can hijack.
  • Bypass of WDAC/UMCI fails if the Dynamic Code Security policy is enabled.
  • Protected Process Light (PPL) can be attacked, but the original Protected Process (PP) cannot because .NET DLLs lack page-hash signatures.

What’s new here 4

  • Identifies a new .NET Framework v4 FlatImageLayout bypass for protected processes.
  • Shows that compiling a .NET assembly as AnyCPU triggers the bypass without modifying the file format.
  • Demonstrates COM-registration hijacking to load the malicious assembly into VirtualBox’s hardened VM process.
  • Finds that clearing a single IMAGE_FILE_EXECUTABLE_IMAGE flag defeats WDAC/UMCI enforcement.

In the news