Changing one bit in a .NET file bypassed Windows code integrity checks

Executive Briefing
“Google Project Zero researcher James Forshaw showed that a change to a .NET file header...”
Key Takeaways
- 1.Forshaw cleared one bit in a .NET file header, causing Windows to reject the file as an executable image. In a Windows 11 S Mode test, .NET Framework 4 still loaded it, and an error in its policy check allowed the code to run despite user-mode code integrity being enforced.
- 2.The .NET Framework’s fallback loading behavior also let Forshaw bypass VirtualBox process hardening on Windows hosts. For a .NET file compiled as AnyCPU, the VirtualBox check produced an error that sent the framework to an in-memory copy outside the usual inspection path.
- 3.To get code into a protected VirtualBox process, Forshaw registered a COM object in the current user’s settings. The attack starts from an account on the Windows host. It is not an escape from a guest virtual machine to the host.
- 4.Oracle fixed the VirtualBox flaw, CVE-2026-87268, in September. Microsoft fixed the Windows code-integrity bypass, CVE-2026-108398, on October 13 and lists it as publicly disclosed but not used in attacks.
- 5.Forshaw also used COM hijacking to run test code inside a Protected Process Light process without administrator rights. According to the researcher, the October fix does not change the relevant loading path, so this route should still work. It has no separate CVE.
Google Project Zero researcher James Forshaw showed that a change to a .NET file header could make Windows reject the usual loading method while .NET Framework still ran the code. Microsoft has patched this code-integrity bypass. The technique requires local access and a program that loads the file.
Two loading paths and two bypassed protections
Forshaw cleared one bit in a .NET file header, causing Windows to reject the file as an executable image. In a Windows 11 S Mode test, .NET Framework 4 still loaded it, and an error in its policy check allowed the code to run despite user-mode code integrity being enforced.
The .NET Framework’s fallback loading behavior also let Forshaw bypass VirtualBox process hardening on Windows hosts. For a .NET file compiled as AnyCPU, the VirtualBox check produced an error that sent the framework to an in-memory copy outside the usual inspection path.
To get code into a protected VirtualBox process, Forshaw registered a COM object in the current user’s settings. The attack starts from an account on the Windows host. It is not an escape from a guest virtual machine to the host.
Oracle fixed the VirtualBox flaw, CVE-2026-87268, in September. Microsoft fixed the Windows code-integrity bypass, CVE-2026-108398, on October 13 and lists it as publicly disclosed but not used in attacks.
Forshaw also used COM hijacking to run test code inside a Protected Process Light process without administrator rights. According to the researcher, the October fix does not change the relevant loading path, so this route should still work. It has no separate CVE.
What to check after updating
The two flaws illustrate how checks focused on ordinary executable loading can miss code loaded through the .NET Framework fallback. The findings do not mean an attacker can compromise any Windows machine over the internet.
Administrators should check the VirtualBox build actually running on a Windows host and select the October update for the specific Windows and .NET Framework versions in use. An upstream code fix alone does not establish that an installed binary has been patched.
What remains unclear
The supplied information does not establish which Windows builds, if any, still allow the Protected Process Light route after the patch. The assessment that it should still work is Forshaw’s.
Microsoft lists the Windows flaw as not used in attacks. The supplied information does not establish whether the VirtualBox flaw has been exploited.







