Google Researcher Shows How a Single Bit Change in .NET Files Bypassed Windows Code Integrity
Forshaw showed that changing one bit in a .NET file could defeat a check intended to limit which user-mode code runs. The surprising part is that the file was rejected by Windows’ normal image-loading path but still ran through .NET Framework version 4. That mismatch let untrusted code pass a protection boundary. He cleared the IMAGE FILE EXECUTABLE IMAGE flag in the file header. Windows then rejected the system call that maps the file as an executable image, but .NET’s loading path still accepted the assembly. Forshaw tested the technique with User Mode Code Integrity enforced in Windows 11 S Mode. He also used COM hijacking to load test code into a Protected Process Light process. Microsoft fixed the UMCI policy-check flaw on October 13, under CVE-2026-108398. The researcher said the fix corrects that policy check but does not change loading for protected processes, so the PPL route should still work. It was not an internet attack: the Windows flaw needs a program willing to load the assembly.
What did James Forshaw show could happen after changing a single bit in a .NET file?
Forshaw showed that changing one bit in a .NET file could defeat a check intended to limit which user-mode code runs. The surprising part is that the file was rejected by Windows’ normal image-loading path but still ran through .NET Framework version 4. That mismatch let untrusted code pass a protection boundary.
He cleared the IMAGE_FILE_EXECUTABLE_IMAGE flag in the file header. Windows then rejected the system call that maps the file as an executable image, but .NET’s loading path still accepted the assembly. Forshaw tested the technique with User Mode Code Integrity enforced in Windows 11 S Mode. He also used COM hijacking to load test code into a Protected Process Light process.
Microsoft fixed the UMCI policy-check flaw on October 13, under CVE-2026-108398. The researcher said the fix corrects that policy check but does not change loading for protected processes, so the PPL route should still work. It was not an internet attack: the Windows flaw needs a program willing to load the assembly.
What is a .NET assembly, and how can the .NET Framework run one?
In general, a .NET assembly is a compiled unit of code and related information that a .NET runtime can load. It may be a program or a component used by another program. The article refers to .NET program files and assemblies, but does not give a formal definition; this description is general background.
The article’s key point is how the .NET Framework loads the file. Normally, Windows maps a program file as an executable image, where image checks apply. But .NET Framework version 4 has a fallback for one specific error: it can make a plain copy of the file in memory and run it. That memory-copy path skips checks that would apply to a loaded image.
Forshaw found that this fallback was central to both reported bypasses. VirtualBox’s check returned the triggering error for .NET files compiled as AnyCPU, while clearing a header flag made Windows reject image mapping but did not stop .NET from running the file. Microsoft fixed its UMCI policy-check flaw in October, but the article says the separate PPL route should still work.
Which two security protections did this loading behavior bypass?
Forshaw demonstrated that one .NET loading behavior could get past two separate protections. One was VirtualBox process hardening on Windows hosts, which monitors system calls that load program files into virtual machine processes. Its purpose is to stop a less-trusted user on the same computer from pushing code into those processes. The other was Windows code integrity, which decides what user-mode code is allowed to run.
The key was the .NET Framework’s fallback. If normal image loading failed in the relevant way, .NET could run the file from a plain memory copy, a path the checks did not inspect in the same manner. For VirtualBox, AnyCPU .NET files triggered the error. For Windows, clearing a single executable-image flag caused image mapping to fail while .NET still loaded the assembly.
The VirtualBox issue is CVE-2026-87268; Oracle fixed it in September. The Windows issue is CVE-2026-108398; Microsoft fixed it on October 13. The article also describes code entering a PPL process through a related route, but says that route has no separate CVE.
What could an attacker do inside the protected VirtualBox process, and why is that different from escaping a virtual machine?
The demonstrated result was code running inside a protected VirtualBox process while a virtual machine was started. Oracle’s advisory says a successful attack can result in the “takeover of Oracle VM VirtualBox.” That matters because process hardening is meant to stop less-trusted users on the same computer from pushing code into those processes.
Forshaw used COM hijacking: he registered a COM object in the current user’s settings, and a protected VirtualBox process loaded it. The .NET loading behavior then let the file run by a route the hardening did not inspect. The attack required local access, but Oracle rated it low privilege and requiring no user interaction.
This is distinct from escaping a guest virtual machine. The code ran in VirtualBox’s protected host-side process; it did not break out of a guest onto the host. The attacker begins as an ordinary user on that host. Oracle fixed the flaw in September, and the article advises checking the installed VirtualBox version rather than assuming an older build contains the fix.
How broad was the exposure: what attacker access was needed, and which VirtualBox versions and Windows protections were affected?
The VirtualBox issue was a local attack, not a remote one. Oracle rated it as needing low privileges and no user interaction, and the article says the attacker begins as an ordinary user on the host. The Windows code-integrity flaw also requires local access and a program willing to load the assembly; it is not a way to seize any Windows machine over the internet.
Oracle’s advisory lists VirtualBox 7.2.16 on Windows hosts as affected. The patch guidance says VirtualBox 7.2.18 shipped on September 15 with the September fixes. The article also cautions that an upstream code fix is not the same as a released binary, so administrators should check the running version.
On Windows, the affected protection was code integrity, including UMCI, which Forshaw tested in Windows 11 S Mode. The article separately describes a PPL route using a COM object loaded by WerSecureFault.exe. Microsoft corrected the UMCI policy check on October 13, but the researcher says the PPL loading route should still work.
What do Windows code integrity, User Mode Code Integrity, and Protected Process Light aim to protect?
Windows code integrity decides what user-mode code is allowed to run. User Mode Code Integrity, or UMCI, is the policy that limits which user-mode programs can run. The article notes that Windows 11 S Mode enables UMCI, and Forshaw used that setting to test whether the .NET file could still run despite the policy.
Protected Process Light, or PPL, serves a different protective role. It is a kind of Windows process that ordinary programs are not meant to enter, even programs running with administrator rights. Forshaw used a hijacked COM object loaded by WerSecureFault.exe to run test code inside a PPL process at the highest protection level, without administrator rights.
The article also distinguishes the older Protected Process type: it resisted this technique because .NET runtime files lack the page hashes it requires. Microsoft’s October fix corrected the policy check for UMCI. According to Forshaw, it did not change loading for protected processes, so the PPL route should still work; that route has no separate CVE.
Why can security checks fail when they inspect one way of loading a program but the runtime can load it through a different path?
Security checks often watch a particular operation, such as Windows mapping a file as an executable image. That works only if the program must use that operation to run. If a runtime can load the same code through another route, the check may not see the code in the form it was designed to inspect.
That is what Forshaw found in .NET Framework version 4. When normal image loading failed with the relevant error, .NET could make a plain memory copy and run the program file. VirtualBox’s check returned that error for AnyCPU .NET files. In the Windows case, clearing IMAGE_FILE_EXECUTABLE_IMAGE made image mapping reject the file, but .NET still loaded it.
The practical lesson is that protections must account for all supported loading paths, not just the usual one. Microsoft fixed a logic error in .NET’s UMCI policy check on October 13. But the researcher said the fix did not change loading for protected processes, so the related PPL route should still work. The article reports no separate CVE for that route.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web