Skip to content

Response, New York. Noah Park: Check Point Patches Actively Exploited Management Server Path Traversal. Detection, Dallas. Ava Okello: Report Finds Nearly Half of Deployed Detections Need Attention Before SOCs Can Trust Them.

SOCtember

Always First. Fast SOC News.

The Google Project Zero blog post titled VirtualBox Process Hardening on Windows 2026 Edition: What's a Single Bit Between Friends?, dated Nov. 23, 2026 and written by James Forshaw, opening with his 2017 research into Oracle VirtualBox's protection of its virtual machine processes on Windows.
Image: Google Project Zero (fair use), its Nov. 23, 2026 post.

Detection

Google Project Zero Shows How Flipping One Bit in a .NET File Let Untrusted Code Past Windows Application Control and Into Protected Processes; Microsoft Fixed the WDAC Hole in October, but the Protected Process Route Stays Open

James Forshaw found that .NET Framework 4 quietly falls back to loading an assembly as plain data when Windows refuses to map it as an image, skipping the code integrity check. On Windows 11 S Mode he ran arbitrary code through a built-in .NET tool without admin rights, and reached Protected Process Light through a COM hijack.

Ava Okello, DetectionMountain View, Calif.6 min read

MOUNTAIN VIEW, Calif. - Changing a single bit in the header of a .NET assembly was enough to make the .NET Framework run code that Windows' own code integrity checks never saw, a researcher at Google's Project Zero said this week, in a write-up that also shows the same trick reaching into protected Windows processes, a route Microsoft does not treat as a security boundary it services.

James Forshaw, who published the research on Monday, said Microsoft fixed the Windows Defender Application Control part of the problem in October as CVE-2026-108398, a security feature bypass listed in the Oct. 13 .NET Framework cumulative update. The bug sits in .NET Framework 4, which is built into current versions of Windows, and requires local code execution and a program willing to load the assembly. It is not a remote attack. But for security teams that lean on WDAC and user-mode code integrity to stop unsigned code, it is a reminder that the guarantee depended on one check in the .NET loader.

A fallback nobody was watching

When .NET Framework 4 loads an assembly from a file, it first asks Windows to map it as an executable image, the step where code integrity and other image-load checks run. If Windows refuses with an invalid-format error, the runtime does not give up. It falls back to mapping the file as ordinary read-only data and runs the managed code from memory. "Any protection code which is expecting to check the loaded image section will not see the load and untrusted arbitrary code would be executed," Forshaw wrote.

The trigger was almost trivial, he said. Clearing the IMAGE_FILE_EXECUTABLE_IMAGE flag in the file header makes Windows refuse to map the file as an image, but .NET ignores that flag. "This single bit change is all you need to load an untrusted .NET assembly." No checksum needs fixing; a hex editor is enough.

The runtime did have a guard: before falling back, it asks the Windows Lockdown Policy APIs whether code integrity is being enforced. On Windows 11 S Mode, which enables user-mode code integrity but not the separate Dynamic Code Security option, that check compared the policy flags the wrong way and let loading continue. Forshaw compiled an assembly with code in its unregister function, cleared the bit and passed it to regasm.exe, the Assembly Registration Tool in the .NET runtime directory, with the /unregister switch, which does not need administrator rights. "In theory this should have failed, but it didn't," he wrote. The modified assembly loaded and ran arbitrary code with user-mode code integrity enabled.

A passage of the Project Zero post showing sample C# code for a .NET class with a ComUnregisterFunction method, and the instruction to remove the IMAGE_FILE_EXECUTABLE_IMAGE flag from the compiled assembly and pass it to RegAsm from the .NET runtime directory with the /unregister option, which does not require administrator privileges.
Image: Google Project Zero (fair use), the regasm test against Windows 11 S Mode.

Protected processes: still open

Protected Process Light, the Windows mechanism that shields security and system processes from tampering, relies on the same code integrity machinery, and Forshaw said the WLDP check does not even come into play there on a default installation. He found that WerSecureFault.exe, a Windows Error Reporting component, loads a COM object at runtime; by hijacking that registration and pointing it at the modified .NET DLL, he got arbitrary code running as PPL at the TCB level without administrator privileges. Full Protected Processes are not affected, because they require page hashes in signatures that the .NET runtime DLLs lack.

Microsoft's fix corrects the lockdown check so that loading from memory is refused when user-mode code integrity is enforced. "However this wouldn't change the behavior in PPL therefore that should still be bypassable," Forshaw wrote. Under the Microsoft Security Response Center's servicing criteria, he noted, PPL bypasses are not in scope.

The fix described in the Project Zero post: the corrected .NET check that throws ERROR_BAD_EXE_FORMAT when code integrity is enforced or when WldpGetLockdownPolicy reports that lockdown is on and WLDP_LOCKDOWN_IS_ENFORCE is true, with the author noting the change would not alter behavior in Protected Process Light.
Image: Google Project Zero (fair use), the October fix to the lockdown check.

The disclosure path was unusual. Forshaw said he first assumed the behavior fell outside Microsoft's criteria because enabling the Dynamic Code Security policy blocked it, so he presented it at the 44Con conference instead of reporting it. After .NET developers told him that blocking was accidental and asked him to report it, he did so in late September; because the details were already public, Microsoft treated it as a zero-day and shipped a fix in October, "less than a month after reporting."

Where it started: VirtualBox

The research began with Oracle VirtualBox, which hooks the Windows DLL loader to keep untrusted code out of its virtual machine processes. Forshaw said he found three new bypasses of that protection, plus a previously fixed one broken by changes in Windows. In the one he detailed, CVE-2026-87268, an ordinary .NET assembly compiled as AnyCPU made VirtualBox's own check return the invalid-format error, which sent .NET down the same data-loading path with no file modification at all; a COM registration in the current user's registry hive got the assembly loaded into a hardened VirtualBox process. VirtualBox fixed it by never returning that error and by disabling current-user COM lookups.

Microsoft Learn release notes for the October 2026 .NET Framework cumulative update, listing CVE-2026-108398 as a Security Feature Bypass vulnerability alongside other CVEs addressed in the release.
Image: Microsoft Learn (fair use), the Oct. 13, 2026 .NET Framework cumulative update notes.

What defenders can do

The first step is the patch: make sure the October 2026 .NET Framework cumulative update, or a later one, is on every machine that depends on WDAC or user-mode code integrity, and check that S Mode and kiosk images are not lagging. Forshaw notes that the Dynamic Code Security option blocks the technique but is off by default and disables all dynamic code loading in .NET, which may break important applications, so test before turning it on.

Because the PPL route remains, detection has to carry more weight. The write-up points at the behaviors worth watching: .NET registration utilities such as regasm.exe loading assemblies from user-writable paths, especially with /unregister; new or changed COM registrations in the current user's registry hive, which both the VirtualBox and PPL routes used, and in particular any that would be loaded by WerSecureFault.exe; and .NET DLLs on disk whose header has the executable-image flag cleared, which a normal compiled assembly would not. The technique applies to .NET Framework 4; Forshaw said older frameworks fail to load the file later in the process, and he did not test .NET 5 and later.

"In this case the .NET code tried to adhere to policy but the developers just made a mistake," he wrote.

About the Author

Ava Okello

Ava Okello covers detection engineering, EDR telemetry, and SOC hunting for SOCtember from London.

Related stories

Detection desk